1LFC_GETCWD(3)                     LFC      Library      Functions
2LFC_GETCWD(3)
3
4
5
6[1mNAME[0m
7       lfc_getcwd ‐ get LFC current directory used  by  the  name
8server
9
10[1mSYNOPSIS[0m
11       [1m#include <sys/types.h>[0m
12       [1m#include "lfc_api.h"[0m
13
14       [1mchar    *lfc_getcwd   (char   *[4m[22mbuf[24m[1m,   int
15[4m[22msize[24m[1m)[0m
16
17[1mDESCRIPTION[0m
18       [1mlfc_getcwd  [22mgets  the  LFC  current  directory used
19by the name server.
20       This  current working directory is stored in a thread‐safe
21variable  in
22       the client.
23
24       If [4mbuf[24m is not NULL, the current directory name will
25be stored there.
26       If  [4mbuf[24m is NULL, [1mlfc_getcwd [22mallocates a buf‐
27fer of [4msize[24m bytes using [1mmal‐[0m
28       [1mloc[22m.
29
30       [4msize[24m must be at least the length of  the  directory
31name to  be  returned
32       plus one byte.
33
34[1mRETURN VALUE[0m
35       This  routine returns [4mbuf[24m if the operation was suc‐
36cessful or NULL if the
37       operation failed.  In the latter  case,  [1mserrno  [22mis
38set appropriately.
39
40[1mERRORS[0m
41       [1mENOENT       [22mThe current directory has not been set
42yet  or  does  not
43                    exist anymore.
44
45       [1mENOMEM       [4m[22mbuf[24m is a NULL pointer and memo‐
46ry could not be allocated.
47
48       [1mEINVAL        [4m[22msize[24m  is less than or equal to
49zero.
50
51       [1mERANGE       [4m[22msize[24m  is  greater  than  0  and
52less than size of current
53                    directory name plus 1.
54
55       [1mSENOSHOST    [22mHost unknown.
56
57       [1mSENOSSERV    [22mService unknown.
58
59       [1mSECOMERR     [22mCommunication error.
60
61       [1mENSNACT      [22mName server is not running or is being
62shutdown.
63
64[1mSEE ALSO[0m
65       [1mlfc_chdir(3)[0m
66
67[1mAUTHOR[0m
68       [1mLCG Grid Deployment [22mTeam
69
70
71
72LFC                         $Date:    2001/10/04    12:12:44    $
73LFC_GETCWD(3)
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Impressum