1DPNS_OPENDIRG(3) DPNS Library Functions DPNS_OPENDIRG(3)
2
3
4
6 dpns_opendir - open a DPNS directory, having the specified GUID, in the
7 name server
8
10 #include <sys/types.h>
11 #include "dpns_api.h"
12
13 dpns_DIR *dpns_opendir (const char *path, const char *guid)
14
15 dpns_DIR *dpns_opendirxg (char *server, const char *path, const char
16 *guid)
17
19 dpns_opendir opens a DPNS directory, having the specified GUID, in the
20 name server to be used in subsequent dpns_readdir operations. A
21 dpns_DIR structure and a buffer to cache the directory entries are
22 allocated in the client API.
23
24 guid specifies the Grid Unique IDentifier.
25
26 path specifies the logical pathname relative to the current DPNS
27 directory or the full DPNS pathname.
28
30 This routine returns a pointer to be used in the subsequent directory
31 function calls if the operation was successful or NULL if the operation
32 failed. In the latter case, serrno is set appropriately.
33
35 ENOENT A component of path prefix does not exist or path is a
36 null pathname.
37
38 EACCES Search permission is denied on a component of the path
39 prefix or read permission is denied on path.
40
41 EFAULT path is a NULL pointer.
42
43 EINVAL The length of the guid component exceeds CA_MAXGUIDLEN.
44
45 ENOTDIR A component of path prefix is not a 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
56 ENSNACT Name server is not running or is being shutdown.
57
59 Castor_limits(4), dpns_chdir(3), dpns_closedir(3), dpns_readdir(3),
60 dpns_rewinddir(3)
61
63 LCG Grid Deployment Team
64
65
66
67DPNS $Date: 2005/11/22 15:59:39 $ DPNS_OPENDIRG(3)