aboutsummaryrefslogtreecommitdiffstats
path: root/man/man3/getpwent_r.3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2024-12-24 23:10:28 +0100
committerAlejandro Colomar <alx@kernel.org>2024-12-24 23:10:28 +0100
commitd180b72135ab9b73994880c3344197428b357826 (patch)
treeee09b2f856835686cca6cc160fe47e79d8073717 /man/man3/getpwent_r.3
parent2b268beb416f494ada953caeb540e21b10294002 (diff)
downloadman-pages-d180b72135ab9b73994880c3344197428b357826.tar.gz
man/man3/: Don't use 'length' to refer to buffer size
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man/man3/getpwent_r.3')
-rw-r--r--man/man3/getpwent_r.310
1 files changed, 5 insertions, 5 deletions
diff --git a/man/man3/getpwent_r.3 b/man/man3/getpwent_r.3
index ccb6266d57..bb502ea201 100644
--- a/man/man3/getpwent_r.3
+++ b/man/man3/getpwent_r.3
@@ -14,11 +14,11 @@ Standard C library
.B #include <pwd.h>
.P
.BI "int getpwent_r(struct passwd *restrict " pwbuf ,
-.BI " char " buf "[restrict ." buflen "], size_t " buflen ,
+.BI " char " buf "[restrict ." size "], size_t " size ,
.BI " struct passwd **restrict " pwbufp );
.BI "int fgetpwent_r(FILE *restrict " stream \
", struct passwd *restrict " pwbuf ,
-.BI " char " buf "[restrict ." buflen "], size_t " buflen ,
+.BI " char " buf "[restrict ." size "], size_t " size ,
.BI " struct passwd **restrict " pwbufp );
.fi
.P
@@ -88,7 +88,7 @@ that can hold a \fIstruct passwd\fP.
And next the buffer
.I buf
of size
-.I buflen
+.I size
that can hold additional strings.
The result of these functions, the \fIstruct passwd\fP read from the stream,
is stored in the provided buffer
@@ -152,7 +152,7 @@ Other systems use the prototype
.in +4n
.EX
struct passwd *
-getpwent_r(struct passwd *pwd, char *buf, int buflen);
+getpwent_r(struct passwd *pwd, char buf[.size], int size);
.EE
.in
.P
@@ -161,7 +161,7 @@ or, better,
.in +4n
.EX
int
-getpwent_r(struct passwd *pwd, char *buf, int buflen,
+getpwent_r(struct passwd *pwd, char buf[.size], int size,
FILE **pw_fp);
.EE
.in