1RFIO_RMDIR(3)               Rfio Library Functions               RFIO_RMDIR(3)
2
3
4

NAME

6       rfio_rmdir - remove a directory
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "rfio_api.h"
11
12       int rfio_rmdir (const char *path);
13

DESCRIPTION

15       rfio_rmdir removes a directory if it is empty.
16
17       path   specifies the logical pathname relative to the current directory
18              or the full pathname.
19

RETURN VALUE

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

ERRORS

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 is not super-user.
38
39       EFAULT       path is a NULL pointer.
40
41       EEXIST       The named directory is not empty.
42
43       ENOTDIR      A component of path prefix is not a directory.
44
45       EINVAL       path is the current directory.
46
47       ENAMETOOLONG The  length of path exceeds CA_MAXPATHLEN or the length of
48                    a path component exceeds CA_MAXNAMELEN.
49
50       SENOSHOST    Host unknown.
51
52       SENOSSERV    Service unknown.
53
54       SECOMERR     Communication error.
55

SEE ALSO

57       Castor_limits(4), rfio_mkdir(3)
58

AUTHOR

60       LCG Grid Deployment Team
61
62
63
64LCG                      $Date: 2005/03/31 13:13:03 $            RFIO_RMDIR(3)
Impressum