From: Alejandro Colomar Date: Fri, 30 May 2025 11:12:40 +0000 (+0200) Subject: man/man2/: SYNOPSIS: Use array notation X-Git-Tag: man-pages-6.15~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54e7cfffa8387ce340f493a7dc1b6434430456e1;p=thirdparty%2Fman-pages.git man/man2/: SYNOPSIS: Use array notation Signed-off-by: Alejandro Colomar ar --- diff --git a/man/man2/getdomainname.2 b/man/man2/getdomainname.2 index 56e27af1f..f697ee64d 100644 --- a/man/man2/getdomainname.2 +++ b/man/man2/getdomainname.2 @@ -12,8 +12,10 @@ Standard C library .nf .B #include .P -.BI "int getdomainname(char *" name ", size_t " size ); -.BI "int setdomainname(const char *" name ", size_t " size ); +.BI "int getdomainname(size_t " size ; +.BI " char " name [ size "], size_t " size ); +.BI "int setdomainname(size_t " size ; +.BI " const char " name [ size "], size_t " size ); .fi .P .RS -4 diff --git a/man/man2/listmount.2 b/man/man2/listmount.2 index b6ec5560b..019e4dbf6 100644 --- a/man/man2/listmount.2 +++ b/man/man2/listmount.2 @@ -15,8 +15,9 @@ Standard C library .BR "#include " " /* Definition of struct mnt_id_req constants */" .B #include .P -.BI "int syscall(SYS_listmount, struct mnt_id_req *" req , -.BI " uint64_t *" mnt_ids ", size_t " nr_mnt_ids , +.BI "int syscall(size_t " n ; +.BI " SYS_listmount, struct mnt_id_req *" req , +.BI " uint64_t " mnt_ids [ n "], size_t " n , .BI " unsigned long " flags ); .P .B #include