1DPNS_CHDIR(3) DPNS Library Functions DPNS_CHDIR(3)
2
3
4
6 dpns_chdir - change DPNS current directory used by the name server
7
9 #include <sys/types.h>
10 #include "dpns_api.h"
11
12 int dpns_chdir (const char *path)
13
15 dpns_chdir changes the DPNS current directory used by the name server
16 to expand DPNS pathnames not beginning with /. This current working
17 directory is stored in a thread-safe variable in the client.
18
19 path specifies the logical pathname relative to the current DPNS
20 directory or the full DPNS pathname.
21
23 This routine returns 0 if the operation was successful or -1 if the
24 operation failed. In the latter case, serrno is set appropriately.
25
27 ENOENT The named directory does not exist or is a null pathname.
28
29 EACCES Search permission is denied on any component of path.
30
31 EFAULT path is a NULL pointer.
32
33 ENOTDIR A component of path prefix is not a directory.
34
35 ENAMETOOLONG The length of path exceeds CA_MAXPATHLEN or the length of
36 a path component exceeds CA_MAXNAMELEN.
37
38 SENOSHOST Host unknown.
39
40 SENOSSERV Service unknown.
41
42 SECOMERR Communication error.
43
44 ENSNACT Name server is not running or is being shutdown.
45
47 Castor_limits(4)
48
50 LCG Grid Deployment Team
51
52
53
54DPNS $Date: 2001/10/04 12:12:42 $ DPNS_CHDIR(3)