]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/: SYNOPSIS: Use array notation
authorAlejandro Colomar <alx@kernel.org>
Mon, 2 Jun 2025 13:44:15 +0000 (15:44 +0200)
committerAlejandro Colomar <alx@kernel.org>
Thu, 5 Jun 2025 10:56:07 +0000 (12:56 +0200)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man2/kexec_load.2
man/man3/aio_suspend.3
man/man3/getaddrinfo_a.3
man/man3/lio_listio.3

index 5cc2f76456af6e4d9dde80d774181b07d802c1dd..1a0632772810004a63ee533b02fdd75ecbf7e59a 100644 (file)
@@ -15,11 +15,11 @@ Standard C library
 .B #include <unistd.h>
 .P
 .BI "long syscall(SYS_kexec_load, unsigned long " entry ,
-.BI "             unsigned long " nr_segments \
-", struct kexec_segment *" segments ,
+.BI "             unsigned long " nr_segments ,
+.BI "             struct kexec_segment " segments [ nr_segments ],
 .BI "             unsigned long " flags );
 .BI "long syscall(SYS_kexec_file_load, int " kernel_fd ", int " initrd_fd ,
-.BI "             unsigned long " cmdline_len ", const char *" cmdline ,
+.BI "             unsigned long " cmdline_len ", const char " cmdline [ cmdline_len ],
 .BI "             unsigned long " flags );
 .fi
 .P
index e52c72290fd6dc6ce846b967c0cb37cb0b21018b..4b6320016097c1b5cba490effb06971152a7ca8b 100644 (file)
@@ -14,7 +14,8 @@ Real-time library
 .P
 .B "#include <aio.h>"
 .P
-.BI "int aio_suspend(const struct aiocb *const " aiocb_list "[], int " n ,
+.BI "int aio_suspend(int " n ;
+.BI "                const struct aiocb *const " aiocb_list [ n "], int " n ,
 .BI "                const struct timespec *restrict " timeout );
 .fi
 .SH DESCRIPTION
index 0ea7fb4ec75addcead955cc17dc1d0ef096404b0..34cf24c049bee58a7b6660f4561e7eacd5bc3126 100644 (file)
@@ -15,9 +15,9 @@ Asynchronous name lookup library
 .BR "#define _GNU_SOURCE" "         /* See feature_test_macros(7) */"
 .B #include <netdb.h>
 .P
-.BI "int getaddrinfo_a(int " mode ", struct gaicb *" list [restrict],
+.BI "int getaddrinfo_a(int " mode ", struct gaicb *" list "[restrict " n ],
 .BI "                  int " n ", struct sigevent *restrict " sevp );
-.BI "int gai_suspend(const struct gaicb *const " list "[], int " n ,
+.BI "int gai_suspend(const struct gaicb *const " list [ n "], int " n ,
 .BI "                  const struct timespec *" timeout );
 .P
 .BI "int gai_error(struct gaicb *" req );
index be28eb39571f786ccc0e322191d090db02915ff4..7397355cfb9f263266ecc049f8795adf0f654df9 100644 (file)
@@ -13,8 +13,9 @@ Real-time library
 .nf
 .B "#include <aio.h>"
 .P
-.BI "int lio_listio(int " mode ,
-.BI "               struct aiocb *restrict const " aiocb_list [restrict],
+.BI "int lio_listio(int " n ;
+.BI "               int " mode ,
+.BI "               struct aiocb *restrict const " aiocb_list "[restrict " n ],
 .BI "               int " n ", struct sigevent *restrict " sevp );
 .fi
 .SH DESCRIPTION