]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man0p/grp.h.0p
Import of man-pages 1.70
[thirdparty/man-pages.git] / man0p / grp.h.0p
1 .\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
2 .TH "<grp.h>" P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
3 .\" <grp.h>
4 .SH NAME
5 grp.h \- group structure
6 .SH SYNOPSIS
7 .LP
8 \fB#include <grp.h>\fP
9 .SH DESCRIPTION
10 .LP
11 The \fI<grp.h>\fP header shall declare the structure \fBgroup\fP which
12 shall include the following members:
13 .sp
14 .RS
15 .nf
16
17 \fBchar *gr_name\fP The name of the group. \fB
18 gid_t gr_gid \fP Numerical group ID. \fB
19 char **gr_mem \fP Pointer to a null-terminated array of character \fB
20 \fP pointers to member names. \fB
21 \fP
22 .fi
23 .RE
24 .LP
25 The \fBgid_t\fP type shall be defined as described in \fI<sys/types.h>\fP
26 \&.
27 .LP
28 The following shall be declared as functions and may also be defined
29 as macros. Function prototypes shall be provided.
30 .sp
31 .RS
32 .nf
33
34 \fBstruct group *getgrgid(gid_t);
35 struct group *getgrnam(const char *);
36
37 int getgrgid_r(gid_t, struct group *, char *,
38 size_t, struct group **);
39 int getgrnam_r(const char *, struct group *, char *,
40 size_t , struct group **);
41
42
43 struct group *getgrent(void);
44 void endgrent(void);
45 void setgrent(void);
46
47 \fP
48 .fi
49 .RE
50 .LP
51 \fIThe following sections are informative.\fP
52 .SH APPLICATION USAGE
53 .LP
54 None.
55 .SH RATIONALE
56 .LP
57 None.
58 .SH FUTURE DIRECTIONS
59 .LP
60 None.
61 .SH SEE ALSO
62 .LP
63 \fI<sys/types.h>\fP , the System Interfaces volume of IEEE\ Std\ 1003.1-2001,
64 \fIendgrent\fP(), \fIgetgrgid\fP(), \fIgetgrnam\fP()
65 .SH COPYRIGHT
66 Portions of this text are reprinted and reproduced in electronic form
67 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
68 -- Portable Operating System Interface (POSIX), The Open Group Base
69 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
70 Electrical and Electronics Engineers, Inc and The Open Group. In the
71 event of any discrepancy between this version and the original IEEE and
72 The Open Group Standard, the original IEEE and The Open Group Standard
73 is the referee document. The original Standard can be obtained online at
74 http://www.opengroup.org/unix/online.html .