1<grp.h>(0P) POSIX Programmer's Manual <grp.h>(0P)
2
3
4
6 grp.h - group structure
7
9 #include <grp.h>
10
12 The <grp.h> header shall declare the structure group which shall
13 include the following members:
14
15
16 char *gr_name The name of the group.
17 gid_t gr_gid Numerical group ID.
18 char **gr_mem Pointer to a null-terminated array of character
19 pointers to member names.
20
21 The gid_t type shall be defined as described in <sys/types.h> .
22
23 The following shall be declared as functions and may also be defined as
24 macros. Function prototypes shall be provided.
25
26
27 struct group *getgrgid(gid_t);
28 struct group *getgrnam(const char *);
29
30 int getgrgid_r(gid_t, struct group *, char *,
31 size_t, struct group **);
32 int getgrnam_r(const char *, struct group *, char *,
33 size_t, struct group **);
34
35
36 struct group *getgrent(void);
37 void endgrent(void);
38 void setgrent(void);
39
40
41 The following sections are informative.
42
44 None.
45
47 None.
48
50 None.
51
53 <sys/types.h>, the System Interfaces volume of IEEE Std 1003.1-2001,
54 endgrent(), getgrgid(), getgrnam()
55
57 Portions of this text are reprinted and reproduced in electronic form
58 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
59 -- Portable Operating System Interface (POSIX), The Open Group Base
60 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
61 Electrical and Electronics Engineers, Inc and The Open Group. In the
62 event of any discrepancy between this version and the original IEEE and
63 The Open Group Standard, the original IEEE and The Open Group Standard
64 is the referee document. The original Standard can be obtained online
65 at http://www.opengroup.org/unix/online.html .
66
67
68
69IEEE/The Open Group 2003 <grp.h>(0P)