lfc_listrep4gc man page

LFC_LISTREP4GC(3)            LFC Library Functions           LFC_LISTREP4GC(3)

      lfc_listrep4gc - list replica entries that can be garbage collected

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

      [1mstruct  lfc_filereplicax  *lfc_listrep4gc  (const  char  *[4m[22mpoolname[24m[1m, int[0m
      [4mflags[24m[1m, lfc_list *[4m[22mlistp[24m[1m)[0m

      [1mlfc_listrep4gc [22mlists replica entries that can be garbage collected.

             specifies the disk pool.

      [4mflags[24m  may be one of the following constant:

                    the first call must have this flag set to  allocate  buf-
                    fers and initialize pointers.

                    all the following calls must have this flag set.

                    final call to terminate the list and free resources.

      This  routine  returns  a pointer to a structure containing the current
      replica entry if the operation was successful or NULL  if  all  entries
      have been returned or if the operation failed. In the latter case, [1mser-[0m
      [1mrno [22mis set appropriately.

      [1mENOMEM       [22mMemory could not be allocated for the output buffer.

      [1mEFAULT       [4m[22mpoolname[24m or [4mlistp[24m is a NULL pointer.

      [1mEINVAL       [22mThe length of [4mpoolname[24m exceeds [1mCA_MAXPOOLNAMELEN[22m.

      [1mSENOSHOST    [22mHost unknown.

      [1mSENOSSERV    [22mService unknown.

      [1mSECOMERR     [22mCommunication error.

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

[1mSEE ALSO[0m
      [1mCastor_limits(4)[22m, [1mlfc_addreplicax(3)[0m

LFC                      $Date: 2006/12/01 09:19:37 $        LFC_LISTREP4GC(3)