1LFC_MKDIR(3)                      LFC      Library      Functions
2LFC_MKDIR(3)
3
4
5
6[1mNAME[0m
7       lfc_mkdir ‐ create a new LFC directory in the name server
8
9[1mSYNOPSIS[0m
10       [1m#include <sys/types.h>[0m
11       [1m#include "lfc_api.h"[0m
12
13       [1mint lfc_mkdir (const char  *[4m[22mpath[24m[1m,  mode_t
14[4m[22mmode[24m[1m)[0m
15
16[1mDESCRIPTION[0m
17       [1mlfc_mkdir  [22mcreates  a new LFC directory in the name
18server.
19
20       An  entry  is  created  in the name  server  database  and
21the directory’s
22       owner ID is set to the effective user ID of the requestor.
23The  group
24       ID  of  the directory is set to the effective group ID  of
25the requestor
26       or  is  taken  from the parent directory if the latter has
27the [1mS_ISGID [22mbit
28       set.
29
30       The  access permission bits for the  directory  are  taken
31from [4mmode[24m, then
32       all  bits set in the requestor’s file mode  creation  mask
33are  cleared
34       (see [1mlfc_umask[22m(3)).  The [1mS_ISGID[22m, [1mS_ISUID
35[22mand [1mS_ISVTX [22mbits are silently
36       cleared.
37
38       [4mpath[24m    specifies  the  logical  pathname  relative
39to  the  current  LFC
40              directory or the full LFC pathname.
41
42[1mRETURN VALUE[0m
43       This  routine  returns  0  if the operation was successful
44or ‐1 if the
45       operation failed. In the latter case, [1mserrno [22mis set
46appropriately.
47
48[1mERRORS[0m
49       [1mENOENT       [22mA component of [4mpath[24m prefix does
50not exist  or  [4mpath[24m  is  a
51                    null pathname.
52
53       [1mEACCES        [22mSearch   permission  is  denied  on a
54component of the [4mpath[0m
55                    prefix or write permission  on   the   parent
56directory  is
57                    denied.
58
59       [1mEFAULT       [4m[22mpath[24m is a NULL pointer.
60
61       [1mEEXIST       [4m[22mpath[24m exists already.
62
63       [1mENOTDIR       [22mA  component of [4mpath[24m prefix is
64not a directory.
65
66       [1mENOSPC       [22mThe name server database is full.
67
68       [1mENAMETOOLONG [22mThe   length  of  [4mpath[24m  exceeds
69[1mCA_MAXPATHLEN [22mor the length of
70                    a  [4mpath[24m  component  exceeds [1mCA_MAX‐
71NAMELEN[22m.
72
73       [1mSENOSHOST    [22mHost unknown.
74
75       [1mSENOSSERV    [22mService unknown.
76
77       [1mSECOMERR     [22mCommunication error.
78
79       [1mENSNACT      [22mName server is not running or is being
80shutdown.
81
82[1mSEE ALSO[0m
83       [1mCastor_limits(4)[22m,              [1mlfc_chdir(3)[22m,
84[1mlfc_chmod(3)[22m, [1mlfc_umask(3)[0m
85
86[1mAUTHOR[0m
87       [1mLCG Grid Deployment [22mTeam
88
89
90
91LFC                         $Date:    2001/10/04    12:12:45    $
92LFC_MKDIR(3)
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Impressum