1LFC_OPENDIRG(3)              LFC Library Functions             LFC_OPENDIRG(3)
2
3
4

NAME

6       lfc_opendirg  - open a LFC directory, having the specified GUID, in the
7       name server
8

SYNOPSIS

10       #include <sys/types.h>
11       #include "lfc_api.h"
12
13       lfc_DIR *lfc_opendirg (const char *path, const char *guid)
14
15       lfc_DIR *lfc_opendirxg (char *server,  const  char  *path,  const  char
16       *guid)
17

DESCRIPTION

19       lfc_opendirg  opens  a LFC directory, having the specified GUID, in the
20       name server to  be  used  in  subsequent  lfc_readdirg  operations.   A
21       lfc_DIR structure and a buffer to cache the directory entries are allo‐
22       cated in the client API.
23
24       guid   specifies the Grid Unique IDentifier.
25
26       path   specifies the logical  pathname  relative  to  the  current  LFC
27              directory or the full LFC pathname.
28

RETURN VALUE

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

ERRORS

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

SEE ALSO

59       Castor_limits(4),   lfc_chdir(3),   lfc_closedir(3),   lfc_readdirg(3),
60       lfc_rewinddir(3)
61

AUTHOR

63       LCG Grid Deployment Team
64
65
66
67LFC                      $Date: 2005/11/22 15:59:39 $          LFC_OPENDIRG(3)
Impressum