1LFC_ENTERGRPMAP(3) LFC Library Functions LFC_ENTERGRPMAP(3)
2
3
4
6 lfc_entergrpmap - define a new group entry in Virtual Id table
7
9 #include <sys/types.h>
10 #include "lfc_api.h"
11
12 int lfc_entergrpmap (gid_t gid, char *groupname)
13
15 lfc_entergrpmap defines a new group entry in Virtual Id table.
16
17 gid specifies the Virtual Group Id. If the value is -1, the next
18 available id is allocated.
19
20 groupname
21 specifies the group name.
22
23 This function requires ADMIN privilege.
24
26 This routine returns 0 if the operation was successful or -1 if the
27 operation failed. In the latter case, serrno is set appropriately.
28
30 EACCES The caller does not have ADMIN privilege.
31
32 EFAULT groupname is a NULL pointer.
33
34 EEXIST Group exists already.
35
36 EINVAL The length of groupname exceeds 255.
37
38 SENOSHOST Host unknown.
39
40 SENOSSERV Service unknown.
41
42 SECOMERR Communication error.
43
44 ENSNACT Name server is not running or is being shutdown.
45
46
47
48LFC $Date: 2006/01/13 16:22:46 $ LFC_ENTERGRPMAP(3)