1grp.h(0P)                  POSIX Programmer's Manual                 grp.h(0P)
2
3
4

PROLOG

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
11

NAME

13       grp.h — group structure
14

SYNOPSIS

16       #include <grp.h>
17

DESCRIPTION

19       The <grp.h> header shall  declare  the  group  structure,  which  shall
20       include the following members:
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           void           endgrent(void);
34           struct group  *getgrent(void);
35           struct group  *getgrgid(gid_t);
36           int            getgrgid_r(gid_t, struct group *, char *,
37                              size_t, struct group **);
38           struct group  *getgrnam(const char *);
39           int            getgrnam_r(const char *, struct group *, char *,
40                              size_t , struct group **);
41           void           setgrent(void);
42
43       The following sections are informative.
44

APPLICATION USAGE

46       None.
47

RATIONALE

49       None.
50

FUTURE DIRECTIONS

52       None.
53

SEE ALSO

55       <sys_types.h>
56
57       The  System  Interfaces volume of POSIX.1‐2008, endgrent(), getgrgid(),
58       getgrnam()
59
61       Portions of this text are reprinted and reproduced in  electronic  form
62       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
63       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
64       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
65       cal and Electronics Engineers,  Inc  and  The  Open  Group.   (This  is
66       POSIX.1-2008  with  the  2013  Technical Corrigendum 1 applied.) 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.unix.org/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                  2013                            grp.h(0P)
Impressum