lfc_closedir man page

LFC_CLOSEDIR(3)              LFC Library Functions             LFC_CLOSEDIR(3)

[1mNAME[0m
      lfc_closedir  -  close  LFC directory opened by [1mlfc_opendir [22min the name
      server

[1mSYNOPSIS[0m
      [1m#include <sys/types.h>[0m
      [1m#include "lfc_api.h"[0m

      [1mint lfc_closedir (lfc_DIR *[4m[22mdirp[24m[1m)[0m

[1mDESCRIPTION[0m
      [1mlfc_closedir [22mcloses the LFC directory opened by [1mlfc_opendir [22min the name
      server and frees the [1mlfc_DIR [22mstructure pointed by [4mdirp[24m.

      [4mdirp[24m   specifies the pointer value returned by [1mlfc_opendir[22m.

[1mRETURN VALUE[0m
      This  routine  returns  0  if the operation was successful or -1 if the
      operation failed. In the latter case, [1mserrno [22mis set appropriately.

[1mERRORS[0m
      [1mEBADF        [22mFile descriptor in DIR structure is invalid.

      [1mEFAULT       [4m[22mdirp[24m is a NULL pointer.

      [1mSENOSSERV    [22mService unknown.

      [1mSECOMERR     [22mCommunication error.

      [1mENSNACT      [22mName server is not running or is being shutdown.

[1mSEE ALSO[0m
      [1mlfc_opendirg(3)[22m, [1mlfc_readdir(3), lfc_readdirg(3)[22m, [1mlfc_rewinddir(3)[0m

[1mAUTHOR[0m
      [1mLCG Grid Deployment [22mTeam

LFC          $Date: 2010-12-13 08:41:11 +0100 (Mon, 13 Dec 2010)LF$C_CLOSEDIR(3)