1RFIO_MKDIR(3) Rfio Library Functions RFIO_MKDIR(3)
2
3
4
6 rfio_mkdir - create a new directory
7
9 #include <sys/types.h>
10 #include "rfio_api.h"
11
12 int rfio_mkdir (const char *path, mode_t mode);
13
15 rfio_mkdir creates a new directory.
16
17 An entry is created and the directory's owner ID is set to the effec‐
18 tive user ID of the requestor. The group ID of the directory is set to
19 the effective group ID of the requestor.
20
21 path specifies the logical pathname relative to the current directory
22 or the full pathname.
23
25 This routine returns 0 if the operation was successful or -1 if the
26 operation failed. In the latter case, serrno is set appropriately.
27
29 ENOENT A component of path prefix does not exist or path is a
30 null pathname.
31
32 EACCES Search permission is denied on a component of the path
33 prefix or write permission on the parent directory is
34 denied.
35
36 EFAULT path is a NULL pointer.
37
38 EEXIST path exists already.
39
40 ENOTDIR A component of path prefix is not a directory.
41
42 ENOSPC No space to store the new directory.
43
44 ENAMETOOLONG The length of path exceeds CA_MAXPATHLEN or the length of
45 a path component exceeds CA_MAXNAMELEN.
46
47 SENOSHOST Host unknown.
48
49 SENOSSERV Service unknown.
50
51 SECOMERR Communication error.
52
54 Castor_limits(4), rfio_chmod(3)
55
57 LCG Grid Deployment Team
58
59
60
61LCG $Date: 2005/03/31 13:13:03 $ RFIO_MKDIR(3)