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

NAME

6       lfc_getcwd - get LFC current directory used by the name server
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "lfc_api.h"
11
12       char *lfc_getcwd (char *buf, int size)
13

DESCRIPTION

15       lfc_getcwd  gets  the  LFC  current  directory used by the name server.
16       This current working directory is stored in a thread-safe  variable  in
17       the client.
18
19       If buf is not NULL, the current directory name will be stored there.
20       If  buf is NULL, lfc_getcwd allocates a buffer of size bytes using mal‐
21       loc.
22
23       size must be at least the length of the directory name to  be  returned
24       plus one byte.
25

RETURN VALUE

27       This routine returns buf if the operation was successful or NULL if the
28       operation failed.  In the latter case, serrno is set appropriately.
29

ERRORS

31       ENOENT       The current directory has not been set  yet  or  does  not
32                    exist anymore.
33
34       ENOMEM       buf is a NULL pointer and memory could not be allocated.
35
36       EINVAL       size is less than or equal to zero.
37
38       ERANGE       size  is  greater  than  0  and  less than size of current
39                    directory name plus 1.
40
41       SENOSHOST    Host unknown.
42
43       SENOSSERV    Service unknown.
44
45       SECOMERR     Communication error.
46
47       ENSNACT      Name server is not running or is being shutdown.
48

SEE ALSO

50       lfc_chdir(3)
51

AUTHOR

53       LCG Grid Deployment Team
54
55
56
57LFC                      $Date: 2001/10/04 12:12:44 $            LFC_GETCWD(3)
Impressum