1DPNS_MODIFYGRPMAP(3) DPNS Library Functions DPNS_MODIFYGRPMAP(3)
2
3
4
6 dpns_modifygrpmap - modify group entry corresponding to a given virtual
7 gid
8
10 #include <sys/types.h>
11 #include "dpns_api.h"
12
13 int dpns_modifygrpmap (gid_t gid, char *newname, int status)
14
16 dpns_modifygrpmap modifies the group entry corresponding to a given
17 virtual gid.
18
19 gid specifies the Virtual Group Id.
20
21 newname
22 specifies the new group name. It must be at most 255 characters
23 long.
24
25 status status can be set to 0 or a combination of ARGUS_BAN and
26 LOCAL_BAN.
27
28 This function requires ADMIN privilege.
29
31 This routine returns 0 if the operation was successful or -1 if the
32 operation failed. In the latter case, serrno is set appropriately.
33
35 EACCES The caller does not have ADMIN privilege.
36
37 EFAULT newname is a NULL pointer.
38
39 EEXIST This group exists already.
40
41 EINVAL This gid does not exist in the internal mapping table or
42 the length of newname exceeds 255.
43
44 SENOSHOST Host unknown.
45
46 SENOSSERV Service unknown.
47
48 SECOMERR Communication error.
49
50 ENSNACT Name server is not running or is being shutdown.
51
52
53
54DPNS $Date: 2010-08-04 09:58:47 +0200 (Wed, 04 AugD2P0N1S0_)MO$DIFYGRPMAP(3)