1RFIO_RMDIR(3) Rfio Library Functions
2RFIO_RMDIR(3)
3
4
5
6[1mNAME[0m
7 rfio_rmdir ‐ remove a directory
8
9[1mSYNOPSIS[0m
10 [1m#include <sys/types.h>[0m
11 [1m#include "rfio_api.h"[0m
12
13 [1mint rfio_rmdir (const char *[4m[22mpath[24m[1m);[0m
14
15[1mDESCRIPTION[0m
16 [1mrfio_rmdir [22mremoves a directory if it is empty.
17
18 [4mpath[24m specifies the logical pathname relative to
19the current directory
20 or the full pathname.
21
22[1mRETURN VALUE[0m
23 This routine returns 0 if the operation was successful or
24‐1 if the
25 operation failed. In the latter case, [1mserrno [22mis set
26appropriately.
27
28[1mERRORS[0m
29 [1mENOENT [22mThe named directory does not exist or
30is a null pathname.
31
32 [1mEACCES [22mSearch permission is denied on a
33component of the [4mpath[0m
34 prefix or write permission is denied on the
35parent direc‐
36 tory or the parent has the sticky bit S_ISVTX
37set and
38
39 the effective user ID of the requestor
40does not match
41 the owner ID of the directory and
42
43 the effective user ID of the requestor
44does not match
45 the owner ID of the parent directory and
46
47 the requestor is not super‐user.
48
49 [1mEFAULT [4m[22mpath[24m is a NULL pointer.
50
51 [1mEEXIST [22mThe named directory is not empty.
52
53 [1mENOTDIR [22mA component of [4mpath[24m prefix is
54not a directory.
55
56 [1mEINVAL [4m[22mpath[24m is the current directory.
57
58 [1mENAMETOOLONG [22mThe length of [4mpath[24m exceeds
59[1mCA_MAXPATHLEN [22mor the length of
60 a [4mpath[24m component exceeds [1mCA_MAX‐
61NAMELEN[22m.
62
63 [1mSENOSHOST [22mHost unknown.
64
65 [1mSENOSSERV [22mService unknown.
66
67 [1mSECOMERR [22mCommunication error.
68
69[1mSEE ALSO[0m
70 [1mCastor_limits(4)[22m, [1mrfio_mkdir(3)[0m
71
72[1mAUTHOR[0m
73 [1mLCG Grid Deployment [22mTeam
74
75
76
77LCG $Date: 2005/03/31 13:13:03 $
78RFIO_RMDIR(3)
79
80
81
82
83
84
85
86
87
88
89
90
91
92
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