diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:41:06 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:41:06 +0000 |
commit | 9a6ff5bc53dedbaa601a1a76cbaf8a76afd60c9f (patch) | |
tree | 1c80e4f6b85d6c7980c78af2826bb7beeea0e1de /man3/getgrent_r.3 | |
parent | Adding upstream version 6.05.01. (diff) | |
download | manpages-9a6ff5bc53dedbaa601a1a76cbaf8a76afd60c9f.tar.xz manpages-9a6ff5bc53dedbaa601a1a76cbaf8a76afd60c9f.zip |
Adding upstream version 6.7.upstream/6.7
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'man3/getgrent_r.3')
-rw-r--r-- | man3/getgrent_r.3 | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/man3/getgrent_r.3 b/man3/getgrent_r.3 index b70c36e..f4a2b5b 100644 --- a/man3/getgrent_r.3 +++ b/man3/getgrent_r.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH getgrent_r 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getgrent_r 3 2023-10-31 "Linux man-pages 6.7" .SH NAME getgrent_r, fgetgrent_r \- get group file entry reentrantly .SH LIBRARY @@ -12,7 +12,7 @@ Standard C library .SH SYNOPSIS .nf .B #include <grp.h> -.PP +.P .BI "int getgrent_r(struct group *restrict " gbuf , .BI " char " buf "[restrict ." buflen "], size_t " buflen , .BI " struct group **restrict " gbufp ); @@ -20,18 +20,18 @@ Standard C library .BI " char " buf "[restrict ." buflen "], size_t " buflen , .BI " struct group **restrict " gbufp ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getgrent_r (): .nf _GNU_SOURCE .fi .\" FIXME . The FTM requirements seem inconsistent here. File a glibc bug? -.PP +.P .BR fgetgrent_r (): .nf Since glibc 2.19: @@ -52,11 +52,11 @@ The former reads the next group entry from the stream initialized by .BR setgrent (3). The latter reads the next group entry from .IR stream . -.PP +.P The \fIgroup\fP structure is defined in .I <grp.h> as follows: -.PP +.P .in +4n .EX struct group { @@ -68,10 +68,10 @@ struct group { }; .EE .in -.PP +.P For more information about the fields of this structure, see .BR group (5). -.PP +.P The nonreentrant functions return a pointer to static storage, where this static storage contains further pointers to group name, password, and members. @@ -132,7 +132,7 @@ T} Thread safety T{ MT-Safe T} .TE -.sp 1 +.P In the above table, .I grent in @@ -147,16 +147,16 @@ are used in parallel in different threads of a program, then data races could occur. .SH VERSIONS Other systems use the prototype -.PP +.P .in +4n .EX struct group *getgrent_r(struct group *grp, char *buf, int buflen); .EE .in -.PP +.P or, better, -.PP +.P .in +4n .EX int getgrent_r(struct group *grp, char *buf, int buflen, |