1DPNS_UNLINK(3)              DPNS Library Functions              DPNS_UNLINK(3)
2
3
4

NAME

6       dpns_unlink - remove a DPNS file entry in the name server
7

SYNOPSIS

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

DESCRIPTION

15       dpns_unlink removes a DPNS file entry in the name server.
16
17       path   specifies  the  logical  pathname  relative  to the current DPNS
18              directory or the full DPNS 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       EPERM        path is a directory.
26
27       ENOENT       The named file does not exist or is a null pathname.
28
29       EACCES       Search  permission  is  denied  on a component of the path
30                    prefix or write permission is denied on the parent  direcā€
31                    tory or the parent has the sticky bit S_ISVTX set and
32
33                      the  effective  user  ID of the requestor does not match
34                      the owner ID of the file and
35
36                      the effective user ID of the requestor  does  not  match
37                      the owner ID of the directory and
38
39                      the file is not writable by the requestor and
40
41                      the  requestor does not have ADMIN privilege in the Cupv
42                      database.
43
44       EFAULT       path is a NULL pointer.
45
46       EEXIST       File has replicas.
47
48       ENOTDIR      A component of path prefix is not a directory.
49
50       ENAMETOOLONG The length of path exceeds CA_MAXPATHLEN or the length  of
51                    a path component exceeds CA_MAXNAMELEN.
52
53       SENOSHOST    Host unknown.
54
55       SENOSSERV    Service unknown.
56
57       SECOMERR     Communication error.
58
59       ENSNACT      Name server is not running or is being shutdown.
60

SEE ALSO

62       Castor_limits(4), dpns_chdir(3), dpns_rmdir(3), Cupvlist(1)
63

AUTHOR

65       LCG Grid Deployment Team
66
67
68
69DPNS                     $Date: 2005/06/30 08:34:03 $           DPNS_UNLINK(3)
Impressum