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

NAME

6       lfc_getgrpbygid - get group name associated with a given virtual gid
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "lfc_api.h"
11
12       int lfc_getgrpbygid (gid_t gid, char *groupname)
13

DESCRIPTION

15       lfc_getgrpbygid  gets  the  group  name associated with a given virtual
16       gid.
17
18       gid    specifies the Virtual Group Id.
19
20       groupname
21              points at a buffer to receive the associated  group  name.   The
22              buffer must be at least 256 characters long.
23

RETURN VALUE

25       This  routine  returns  0  if the operation was successful or -1 if the
26       operation failed. In the latter case, serrno is set appropriately.
27

ERRORS

29       EFAULT       groupname is a NULL pointer.
30
31       EINVAL       This gid does not exist in the internal mapping table.
32
33       SENOSHOST    Host unknown.
34
35       SENOSSERV    Service unknown.
36
37       SECOMERR     Communication error.
38
39       ENSNACT      Name server is not running or is being shutdown.
40
41
42
43LFC                      $Date: 2005/10/19 11:30:57 $       LFC_GETGRPBYGID(3)
Impressum