diff options
| author | Alejandro Colomar <alx@kernel.org> | 2025-03-14 18:33:41 +0100 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2025-03-14 18:55:19 +0100 |
| commit | d2c2db8830f8fcbb736bdea52b398257447bef6b (patch) | |
| tree | 13a38ceaeaa6bc257994d91027d42ca187fd2c21 /man/man3/getspnam.3 | |
| parent | 44930b7b8eacbfff12acd1dcfbb66dd818e35254 (diff) | |
| download | man-pages-d2c2db8830f8fcbb736bdea52b398257447bef6b.tar.gz | |
man/: SYNOPSIS: Use GNU forward-declarations of parameters for sizes of array parameters
This syntax has been proposed for standardization in N3433.
Link: <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3433.pdf>
Cc: Christopher Bazley <chris.bazley.wg14@gmail.com>
Cc: Martin Uecker <uecker@tugraz.at>
Cc: Joseph Myers <josmyers@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man/man3/getspnam.3')
| -rw-r--r-- | man/man3/getspnam.3 | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/man/man3/getspnam.3 b/man/man3/getspnam.3 index a49e44d23c..64f86b2782 100644 --- a/man/man3/getspnam.3 +++ b/man/man3/getspnam.3 @@ -34,18 +34,22 @@ Standard C library /* GNU extension */ .B #include <shadow.h> .P -.BI "int getspent_r(struct spwd *" spbuf , -.BI " char " buf [. size "], size_t " size ", \ +.BI "int getspent_r(size_t " size ; +.BI " struct spwd *" spbuf , +.BI " char " buf [ size "], size_t " size ", \ struct spwd **" spbufp ); -.BI "int getspnam_r(const char *" name ", struct spwd *" spbuf , -.BI " char " buf [. size "], size_t " size ", \ +.BI "int getspnam_r(size_t " size ; +.BI " const char *" name ", struct spwd *" spbuf , +.BI " char " buf [ size "], size_t " size ", \ struct spwd **" spbufp ); .P -.BI "int fgetspent_r(FILE *" stream ", struct spwd *" spbuf , -.BI " char " buf [. size "], size_t " size ", \ +.BI "int fgetspent_r(size_t " size ; +.BI " FILE *" stream ", struct spwd *" spbuf , +.BI " char " buf [ size "], size_t " size ", \ struct spwd **" spbufp ); -.BI "int sgetspent_r(const char *" s ", struct spwd *" spbuf , -.BI " char " buf [. size "], size_t " size ", \ +.BI "int sgetspent_r(size_t " size ; +.BI " const char *" s ", struct spwd *" spbuf , +.BI " char " buf [ size "], size_t " size ", \ struct spwd **" spbufp ); .fi .P |
