mirror of https://github.com/mkerrisk/man-pages
getgrent_r.3: SYNOPSIS: Use 'restrict' in prototypes
glibc uses 'restrict' in getgrent_r(), fgetgrent_r(). Let's use it here too. .../glibc$ grep_glibc_prototype getgrent_r grp/grp.h:131: extern int getgrent_r (struct group *__restrict __resultbuf, char *__restrict __buffer, size_t __buflen, struct group **__restrict __result); .../glibc$ grep_glibc_prototype fgetgrent_r grp/grp.h:161: extern int fgetgrent_r (FILE *__restrict __stream, struct group *__restrict __resultbuf, char *__restrict __buffer, size_t __buflen, struct group **__restrict __result); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
934e516236
commit
61f75e878a
|
@ -28,10 +28,12 @@ getgrent_r, fgetgrent_r \- get group file entry reentrantly
|
|||
.nf
|
||||
.B #include <grp.h>
|
||||
.PP
|
||||
.BI "int getgrent_r(struct group *" gbuf ", char *" buf ,
|
||||
.BI " size_t " buflen ", struct group **" gbufp );
|
||||
.BI "int fgetgrent_r(FILE *" stream ", struct group *" gbuf ", char *" buf ,
|
||||
.BI " size_t " buflen ", struct group **" gbufp );
|
||||
.BI "int getgrent_r(struct group *restrict " gbuf ,
|
||||
.BI " char *restrict " buf ", size_t " buflen ,
|
||||
.BI " struct group **restrict " gbufp );
|
||||
.BI "int fgetgrent_r(FILE *restrict " stream ", struct group *restrict " gbuf ,
|
||||
.BI " char *restrict " buf ", size_t " buflen ,
|
||||
.BI " struct group **restrict " gbufp );
|
||||
.fi
|
||||
.PP
|
||||
.RS -4
|
||||
|
|
Loading…
Reference in New Issue