lfc_getcwd man page
LFC_GETCWD(3) LFC Library Functions LFC_GETCWD(3)
lfc_getcwd - get LFC current directory used by the name server
[1mchar *lfc_getcwd (char *[4m[22mbuf[24m[1m, int [4m[22msize[24m[1m)[0m
[1mlfc_getcwd [22mgets the LFC current directory used by the name server.
This current working directory is stored in a thread-safe variable in
If [4mbuf[24m is not NULL, the current directory name will be stored there.
If [4mbuf[24m is NULL, [1mlfc_getcwd [22mallocates a buffer of [4msize[24m bytes using [1mmal-[0m
[4msize[24m must be at least the length of the directory name to be returned
plus one byte.
This routine returns [4mbuf[24m if the operation was successful or NULL if the
operation failed. In the latter case, [1mserrno [22mis set appropriately.
[1mENOENT [22mThe current directory has not been set yet or does not
[1mENOMEM [4m[22mbuf[24m is a NULL pointer and memory could not be allocated.
[1mEINVAL [4m[22msize[24m is less than or equal to zero.
[1mERANGE [4m[22msize[24m is greater than 0 and less than size of current
directory name plus 1.
[1mSENOSHOST [22mHost unknown.
[1mSENOSSERV [22mService unknown.
[1mSECOMERR [22mCommunication error.
[1mENSNACT [22mName server is not running or is being shutdown.
[1mLCG Grid Deployment [22mTeam
LFC $Date: 2001/10/04 12:12:44 $ LFC_GETCWD(3)