1DPNS_GETGRPBYGID(3)         DPNS Library Functions         DPNS_GETGRPBYGID(3)
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

15       dpns_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
43DPNS                     $Date: 2005/10/19 11:30:57 $      DPNS_GETGRPBYGID(3)
Impressum