gfal_mkdir(3) - Linux man page

Name

gfal_mkdir - create a new directory

Synopsis

#include "gfal_api.h"

int gfal_mkdir (const char *dirname, mode_t mode);

Description

gfal_mkdir creates a new directory with permission bits taken from mode.
dirname
specifies the directory name (this can only be a TURL in the current implementation).
mode
the bit pattern is built by an OR of the constants defined in <sys/stat.h>.

Return Value

This routine returns 0 if the operation was successful or -1 if the operation failed. In the latter case, errno is set appropriately.

Errors

ENOENT
A component of dirname prefix does not exist.
EACCES
Search permission is denied on a component of the dirname prefix or write permission on the parent directory is denied.
EFAULT
dirname is a NULL pointer.
ENOTDIR
A component of dirname prefix is not a directory.
EINVAL
dirname has an invalid syntax.
ECOMM
Communication error.
EPROTONOSUPPORT
Access method not supported.

See Also

gfal(3)