diff options
author | Alejandro Colomar <alx@kernel.org> | 2025-06-02 15:44:15 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2025-06-05 12:56:07 +0200 |
commit | efc8f8feb5bfd840edd858ad376d6836d5f400f5 (patch) | |
tree | 8cffeb263ef9980b5dd3f66ef5b5a0e826afdbbe | |
parent | b9fc84dd29174380439d4fafd5214520db98d7d8 (diff) | |
download | man-pages-efc8f8feb5bfd840edd858ad376d6836d5f400f5.tar.gz |
man/: SYNOPSIS: Use array notation
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r-- | man/man2/kexec_load.2 | 6 | ||||
-rw-r--r-- | man/man3/aio_suspend.3 | 3 | ||||
-rw-r--r-- | man/man3/getaddrinfo_a.3 | 4 | ||||
-rw-r--r-- | man/man3/lio_listio.3 | 5 |
4 files changed, 10 insertions, 8 deletions
diff --git a/man/man2/kexec_load.2 b/man/man2/kexec_load.2 index 5cc2f76456..1a06327728 100644 --- a/man/man2/kexec_load.2 +++ b/man/man2/kexec_load.2 @@ -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 diff --git a/man/man3/aio_suspend.3 b/man/man3/aio_suspend.3 index e52c72290f..4b63200160 100644 --- a/man/man3/aio_suspend.3 +++ b/man/man3/aio_suspend.3 @@ -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 diff --git a/man/man3/getaddrinfo_a.3 b/man/man3/getaddrinfo_a.3 index 0ea7fb4ec7..34cf24c049 100644 --- a/man/man3/getaddrinfo_a.3 +++ b/man/man3/getaddrinfo_a.3 @@ -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 ); diff --git a/man/man3/lio_listio.3 b/man/man3/lio_listio.3 index be28eb3957..7397355cfb 100644 --- a/man/man3/lio_listio.3 +++ b/man/man3/lio_listio.3 @@ -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 |