[LinuxBIOS] PATCH: mkdirp() error on new directory outside given parent
Patrick Georgi
patrick at georgi-clan.de
Thu Jul 12 10:24:03 CEST 2007
Peter Stuge wrote:
> -int mkdirp(const char *dirpath, mode_t mode)
> +/**
> + * Create a new directory including any missing parent directories.
> + *
> + * @param parent Return an error if a new directory would be created outside
> + * this directory. Pass "/" to allow new directories to be created anywhere.
> + * @param dirpath The new directory that should be created.
> + * @param mode Permissions to use for newly created directories.
> + */
> +int mkdirp(const char *parent, const char *dirpath, mode_t mode)
conflicts with: (where libgen is a compatibility dummy in solaris 10 at
least, deferring that object to libc, so it always conflicts)
String Pattern-Matching Library Functions mkdirp(3GEN)
NAME
mkdirp, rmdirp - create or remove directories in a path
SYNOPSIS
cc [ flag ... ] file ... -lgen [ library ... ]
#include <libgen.h>
int mkdirp(const char *path, mode_t mode);
[...]
Regards,
Patrick Georgi
More information about the coreboot
mailing list