]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man2/: SYNOPSIS: Use array notation
authorAlejandro Colomar <alx@kernel.org>
Fri, 30 May 2025 11:12:40 +0000 (13:12 +0200)
committerAlejandro Colomar <alx@kernel.org>
Fri, 30 May 2025 12:44:36 +0000 (14:44 +0200)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
ar

man/man2/getdomainname.2
man/man2/listmount.2

index 56e27af1f3a74058a810c4aed120431716cfbed7..f697ee64dfdfd71eb90dea5486497b9ab05947cc 100644 (file)
@@ -12,8 +12,10 @@ Standard C library
 .nf
 .B #include <unistd.h>
 .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
index b6ec5560b39931544ec612349eded86e0864ebb9..019e4dbf621b068243928b5223062e3614ccbc3d 100644 (file)
@@ -15,8 +15,9 @@ Standard C library
 .BR "#include <linux/mount.h>" "  /* Definition of struct mnt_id_req constants */"
 .B #include <unistd.h>
 .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 <linux/mount.h>