Annotated edit history of
getgrgid(3) version 1 showing authors affecting page license.
View with all changes included.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
GETGRNAM |
|
|
2 |
!!!GETGRNAM |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
RETURN VALUE |
|
|
7 |
ERRORS |
|
|
8 |
FILES |
|
|
9 |
CONFORMING TO |
|
|
10 |
SEE ALSO |
|
|
11 |
---- |
|
|
12 |
!!NAME |
|
|
13 |
|
|
|
14 |
|
|
|
15 |
getgrnam, getgrgid - get group file entry |
|
|
16 |
!!SYNOPSIS |
|
|
17 |
|
|
|
18 |
|
|
|
19 |
__#include |
|
|
20 |
__''name''__); |
|
|
21 |
struct group *getgrgid(gid_t__ ''gid''__); |
|
|
22 |
__ |
|
|
23 |
!!DESCRIPTION |
|
|
24 |
|
|
|
25 |
|
|
|
26 |
The __getgrnam()__ function returns a pointer to a |
|
|
27 |
structure containing the group information from |
|
|
28 |
''/etc/group'' for the entry that matches the group name |
|
|
29 |
''name''. |
|
|
30 |
|
|
|
31 |
|
|
|
32 |
The __getgrgid()__ function returns a pointer to a |
|
|
33 |
structure containing the group information from |
|
|
34 |
''/etc/group'' for the entry that matches the group gid |
|
|
35 |
''gid''. |
|
|
36 |
|
|
|
37 |
|
|
|
38 |
The ''group'' structure is defined in |
|
|
39 |
'''' as follows: |
|
|
40 |
|
|
|
41 |
|
|
|
42 |
struct group { |
|
|
43 |
char *gr_name; /* group name */ |
|
|
44 |
char *gr_passwd; /* group password */ |
|
|
45 |
gid_t gr_gid; /* group id */ |
|
|
46 |
char **gr_mem; /* group members */ |
|
|
47 |
}; |
|
|
48 |
!!RETURN VALUE |
|
|
49 |
|
|
|
50 |
|
|
|
51 |
The __getgrnam()__ and __getgrgid()__ functions return |
|
|
52 |
the group information structure, or NULL if the matching |
|
|
53 |
entry is not found or an error occurs. |
|
|
54 |
!!ERRORS |
|
|
55 |
|
|
|
56 |
|
|
|
57 |
__ENOMEM__ |
|
|
58 |
|
|
|
59 |
|
|
|
60 |
Insufficient memory to allocate group information |
|
|
61 |
structure. |
|
|
62 |
!!FILES |
|
|
63 |
|
|
|
64 |
|
|
|
65 |
''/etc/group'' |
|
|
66 |
|
|
|
67 |
|
|
|
68 |
Group database file |
|
|
69 |
!!CONFORMING TO |
|
|
70 |
|
|
|
71 |
|
|
|
72 |
SVID 3, POSIX, BSD 4.3 |
|
|
73 |
!!SEE ALSO |
|
|
74 |
|
|
|
75 |
|
|
|
76 |
fgetgrent(3), getgrent(3), setgrent(3), |
|
|
77 |
endgrent(3) |
|
|
78 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.