1grp.h(0P) POSIX Programmer's Manual grp.h(0P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
12 grp.h — group structure
13
15 #include <grp.h>
16
18 The <grp.h> header shall declare the group structure, which shall
19 include the following members:
20
21
22 char *gr_name The name of the group.
23 gid_t gr_gid Numerical group ID.
24 char **gr_mem Pointer to a null-terminated array of character
25 pointers to member names.
26
27 The <grp.h> header shall define the gid_t and size_t types as described
28 in <sys/types.h>.
29
30 The following shall be declared as functions and may also be defined as
31 macros. Function prototypes shall be provided.
32
33
34 void endgrent(void);
35 struct group *getgrent(void);
36 struct group *getgrgid(gid_t);
37 int getgrgid_r(gid_t, struct group *, char *,
38 size_t, struct group **);
39 struct group *getgrnam(const char *);
40 int getgrnam_r(const char *, struct group *, char *,
41 size_t , struct group **);
42 void setgrent(void);
43
44 The following sections are informative.
45
47 None.
48
50 None.
51
53 None.
54
56 <sys_types.h>
57
58 The System Interfaces volume of POSIX.1‐2017, endgrent(), getgrgid(),
59 getgrnam()
60
62 Portions of this text are reprinted and reproduced in electronic form
63 from IEEE Std 1003.1-2017, Standard for Information Technology -- Por‐
64 table Operating System Interface (POSIX), The Open Group Base Specifi‐
65 cations Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of
66 Electrical and Electronics Engineers, Inc and The Open Group. In the
67 event of any discrepancy between this version and the original IEEE and
68 The Open Group Standard, the original IEEE and The Open Group Standard
69 is the referee document. The original Standard can be obtained online
70 at http://www.opengroup.org/unix/online.html .
71
72 Any typographical or formatting errors that appear in this page are
73 most likely to have been introduced during the conversion of the source
74 files to man page format. To report such errors, see https://www.ker‐
75 nel.org/doc/man-pages/reporting_bugs.html .
76
77
78
79IEEE/The Open Group 2017 grp.h(0P)