1LFC_RMDIR(3) LFC Library Functions LFC_RMDIR(3)
2
3
4
6 lfc_rmdir - remove a LFC directory in the name server
7
9 #include <sys/types.h>
10 #include "lfc_api.h"
11
12 int lfc_rmdir (const char *path)
13
15 lfc_rmdir removes a LFC directory in the name server if it is empty.
16
17 path specifies the logical pathname relative to the current LFC
18 directory or the full LFC pathname.
19
21 This routine returns 0 if the operation was successful or -1 if the
22 operation failed. In the latter case, serrno is set appropriately.
23
25 ENOENT The named directory does not exist or is a null pathname.
26
27 EACCES Search permission is denied on a component of the path
28 prefix or write permission is denied on the parent direcā
29 tory or the parent has the sticky bit S_ISVTX set and
30
31 the effective user ID of the requestor does not match
32 the owner ID of the directory and
33
34 the effective user ID of the requestor does not match
35 the owner ID of the parent directory and
36
37 the requestor does not have ADMIN privilege in the Cupv
38 database.
39
40 EFAULT path is a NULL pointer.
41
42 EEXIST The named directory is not empty.
43
44 ENOTDIR A component of path prefix is not a directory.
45
46 EINVAL path is the current directory.
47
48 ENAMETOOLONG The length of path exceeds CA_MAXPATHLEN or the length of
49 a path component exceeds CA_MAXNAMELEN.
50
51 SENOSHOST Host unknown.
52
53 SENOSSERV Service unknown.
54
55 SECOMERR Communication error.
56
57 ENSNACT Name server is not running or is being shutdown.
58
60 Castor_limits(4), lfc_chdir(3), lfc_mkdirg(3), Cupvlist(1)
61
63 LCG Grid Deployment Team
64
65
66
67LFC $Date: 2002/10/16 06:25:40 $ LFC_RMDIR(3)