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

NAME

6       lfc_getgrpmap - get all existing groups from virtual gid table
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "lfc_api.h"
11
12       int lfc_getgrpmap (int *nbentries, struct lfc_groupinfo **grp_entries)
13

DESCRIPTION

15       lfc_getgrpmap gets all the existing groups from the virtual gid table.
16
17       nbentries
18              will  be  set  to  the  number  of entries in the array of group
19              infos.
20
21       grp_entries
22              will be set to the address of an array of  lfc_groupinfo  struc‐
23              tures  allocated by the API. The client application is responsi‐
24              ble for freeing the array when not needed anymore.
25
26       This function requires ADMIN privilege.
27

RETURN VALUE

29       This routine returns 0 if the operation was successful  or  -1  if  the
30       operation failed. In the latter case, serrno is set appropriately.
31

ERRORS

33       EACCES       The caller does not have ADMIN privilege.
34
35       ENOMEM       Memory could not be allocated for unmarshalling the reply.
36
37       EFAULT       nbentries or grp_entries is a NULL pointer.
38
39       SENOSHOST    Host unknown.
40
41       SENOSSERV    Service unknown.
42
43       SECOMERR     Communication error.
44
45       ENSNACT      Name server is not running or is being shutdown.
46
47
48
49LFC                      $Date: 2007/12/13 06:15:14 $         LFC_GETGRPMAP(3)
Impressum