Skip to content

man2: SYNOPSIS: Fix headers, use syscall(), and other fixes

Alejandro Colomar linux-man 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest39 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/39futex.2: Use syscall(SYS_...); for system calls without a wrapperman2/futex.2+11 -100 replies
2/39getdents.2: Use syscall(SYS_...); for system calls without a wrapperman2/getdents.2+15 -51 reply
3/39ioctl_tty.2: Fix includesman2/ioctl_tty.2+3 -30 replies
4/39ioctl_userfaultfd.2: SYNOPSIS: Add <linux/userfaultfd.h>man2/ioctl_userfaultfd.2+1 -00 replies
5/39io_destroy.2: Use syscall(SYS_...); for system calls without a wrapperman2/io_destroy.2+9 -70 replies
6/39io_getevents.2: Use syscall(SYS_...); for system calls without a wrapperman2/io_getevents.2+11 -100 replies
7/39ioperm.2: Remove obvious commentman2/ioperm.2+1 -10 replies
8/39ioprio_set.2: Use syscall(SYS_...); for system calls without a wrapperman2/ioprio_set.2+9 -60 replies
9/39ipc.2: Use syscall(SYS_...); for system calls without a wrapperman2/ipc.2+11 -70 replies
10/39ipc.2: Add needed includeman2/ipc.2+1 -00 replies
11/39kcmp.2: Use syscall(SYS_...); for system calls without a wrapperman2/kcmp.2+9 -70 replies
12/39kcmp.2: tfixman2/kcmp.2+1 -10 replies
13/39kexec_load.2: Use syscall(SYS_...); for system calls without a wrapperman2/kexec_load.2+13 -110 replies
14/39scripts/bash_aliases: man_lsfunc(): Extract syscall name from syscall(SYS_...)scripts/bash_aliases+1 -00 replies
15/39keyctl.2: Use syscall(SYS_...); for system calls without a glibc wrapperman2/keyctl.2+7 -100 replies
16/39link.2: ffixman2/link.2+1 -10 replies
17/39llseek.2: Use syscall(SYS_...); for system calls without a wrapperman2/llseek.2+7 -60 replies
18/39lookup_dcookie.2: Use syscall(SYS_...); for system calls without a wrapperman2/lookup_dcookie.2+9 -50 replies
19/39membarrier.2: Use syscall(SYS_...); for system calls without a wrapperman2/membarrier.2+10 -60 replies
20/39mincore.2: Remove unused includeman2/mincore.2+0 -10 replies
21/39mknod.2: Remove unused includesman2/mknod.2+0 -20 replies
22/39mmap2.2: Use syscall(SYS_...); for system calls without a wrapperman2/mmap2.2+6 -40 replies
23/39modify_ldt.2: Use syscall(SYS_...); for system calls without a wrapperman2/modify_ldt.2+10 -50 replies
24/39mq_getsetattr.2: Use syscall(SYS_...); for system calls without a wrapperman2/mq_getsetattr.2+6 -90 replies
25/39alloc_hugepages.2, arch_prctl.2, capget.2, clone.2, delete_module.2, exit_group.2, get_robust_list.2, getunwind.2, init_module.2: Add note about the use of syscall(2)man2/alloc_hugepages.2 man2/arch_prctl.2 man2/capget.2 +6 more+50 -00 replies
26/39open.2: Remove unused <sys/stat.h>man2/open.2+0 -12 replies
27/39openat2.2: Use syscall(SYS_...); for system calls without a wrapper; fix includes tooman2/openat2.2+11 -90 replies
28/39perf_event_open.2: Use syscall(SYS_...); for system calls without a wrapperman2/perf_event_open.2+11 -100 replies
29/39pidfd_getfd.2: Use syscall(SYS_...); for system calls without a wrapperman2/pidfd_getfd.2+9 -50 replies
30/39pidfd_open.2: Use syscall(SYS_...); for system calls without a wrapperman2/pidfd_open.2+8 -50 replies
31/39pidfd_send_signal.2: Use syscall(SYS_...); for system calls without a wrapper. Fix includes tooman2/pidfd_send_signal.2+10 -60 replies
32/39pipe.2: wfixman2/pipe.2+2 -20 replies
33/39pivot_root.2: Use syscall(SYS_...); for system calls without a wrapperman2/pivot_root.2+9 -50 replies
34/39poll.2: Remove <signal.h>man2/poll.2+1 -20 replies
35/39process_madvise.2: Use syscall(SYS_...); for system calls without a wrapper. Fix includes too.man2/process_madvise.2+12 -80 replies
36/39quotactl.2: Better detail why <xfs/xqm.h> is includedman2/quotactl.2+3 -10 replies
37/39readdir.2: Use syscall(SYS_...); for system calls without a wrapperman2/readdir.2+7 -50 replies
38/39readlink.2: ffixman2/readlink.2+1 -10 replies
39/39reboot.2: Use syscall(SYS_...); for system calls without a wrapperman2/reboot.2+7 -52 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/39] man2: SYNOPSIS: Fix headers, use syscall(), and other fixes

Hi Michael,

This is the second set of SYNOPSIS fixes, mostly about fixing the includes, giving reasons why they are being included, and using syscall(SYS_...) when needed. Other minor fixes that I have noticed while doing this are also included in this set.

After this set, about a 60% of man2 will be fixed.

As with the previous patch set, please review thoroughly. I might have overlooked something. It looks good, but it's been a long time...

I must notice that there are a few discrepancies (see the last mails there):
<https://lore.kernel.org/linux-man/[email protected]/T/#u>.

Cheers,

Alex

Alejandro Colomar (39):
futex.2: Use syscall(SYS_...); for system calls without a wrapper getdents.2: Use syscall(SYS_...); for system calls without a wrapper ioctl_tty.2: Fix includes
ioctl_userfaultfd.2: SYNOPSIS: Add <linux/userfaultfd.h> io_destroy.2: Use syscall(SYS_...); for system calls without a wrapper io_getevents.2: Use syscall(SYS_...); for system calls without a
wrapper
ioperm.2: Remove obvious comment
ioprio_set.2: Use syscall(SYS_...); for system calls without a wrapper ipc.2: Use syscall(SYS_...); for system calls without a wrapper ipc.2: Add needed include
kcmp.2: Use syscall(SYS_...); for system calls without a wrapper kcmp.2: tfix
kexec_load.2: Use syscall(SYS_...); for system calls without a wrapper scripts/bash_aliases: man_lsfunc(): Extract syscall name from

    syscall(SYS_...)

keyctl.2: Use syscall(SYS_...); for system calls without a glibc
wrapper
link.2: ffix
llseek.2: Use syscall(SYS_...); for system calls without a wrapper lookup_dcookie.2: Use syscall(SYS_...); for system calls without a
wrapper
membarrier.2: Use syscall(SYS_...); for system calls without a wrapper mincore.2: Remove unused include
mknod.2: Remove unused includes
mmap2.2: Use syscall(SYS_...); for system calls without a wrapper modify_ldt.2: Use syscall(SYS_...); for system calls without a wrapper mq_getsetattr.2: Use syscall(SYS_...); for system calls without a
wrapper
alloc_hugepages.2, arch_prctl.2, capget.2, clone.2, delete_module.2,
exit_group.2, get_robust_list.2, getunwind.2, init_module.2: Add note about the use of syscall(2)
open.2: Remove unused <sys/stat.h>
openat2.2: Use syscall(SYS_...); for system calls without a wrapper;
fix includes too
perf_event_open.2: Use syscall(SYS_...); for system calls without a
wrapper
pidfd_getfd.2: Use syscall(SYS_...); for system calls without a
wrapper
pidfd_open.2: Use syscall(SYS_...); for system calls without a wrapper pidfd_send_signal.2: Use syscall(SYS_...); for system calls without a
wrapper. Fix includes too
pipe.2: wfix
pivot_root.2: Use syscall(SYS_...); for system calls without a wrapper poll.2: Remove <signal.h>
process_madvise.2: Use syscall(SYS_...); for system calls without a
wrapper. Fix includes too.
quotactl.2: Better detail why <xfs/xqm.h> is included readdir.2: Use syscall(SYS_...); for system calls without a wrapper readlink.2: ffix
reboot.2: Use syscall(SYS_...); for system calls without a wrapper

 man2/alloc_hugepages.2   |  5 +++++
 man2/arch_prctl.2        |  6 ++++++
 man2/capget.2            |  5 +++++
 man2/clone.2             |  6 ++++++
 man2/delete_module.2     |  6 ++++++
 man2/exit_group.2        |  6 ++++++
 man2/futex.2             | 21 +++++++++++----------
 man2/get_robust_list.2   |  5 +++++
 man2/getdents.2          | 20 +++++++++++++++-----
 man2/getunwind.2         |  6 ++++++
 man2/init_module.2       |  5 +++++
 man2/io_destroy.2        | 16 +++++++++-------
 man2/io_getevents.2      | 21 +++++++++++----------
 man2/ioctl_tty.2         |  6 +++---
 man2/ioctl_userfaultfd.2 |  1 +
 man2/ioperm.2            |  2 +-
 man2/ioprio_set.2        | 15 +++++++++------
 man2/ipc.2               | 19 ++++++++++++-------
 man2/kcmp.2              | 18 ++++++++++--------
 man2/kexec_load.2        | 24 +++++++++++++-----------
 man2/keyctl.2            | 17 +++++++----------
 man2/link.2              |  2 +-
 man2/llseek.2            | 13 +++++++------
 man2/lookup_dcookie.2    | 14 +++++++++-----
 man2/membarrier.2        | 16 ++++++++++------
 man2/mincore.2           |  1 -
 man2/mknod.2             |  2 --
 man2/mmap2.2             | 10 ++++++----
 man2/modify_ldt.2        | 15 ++++++++++-----
 man2/mq_getsetattr.2     | 15 ++++++---------
 man2/open.2              |  1 -
 man2/openat2.2           | 20 +++++++++++---------
 man2/perf_event_open.2   | 21 +++++++++++----------
 man2/pidfd_getfd.2       | 14 +++++++++-----
 man2/pidfd_open.2        | 13 ++++++++-----
 man2/pidfd_send_signal.2 | 16 ++++++++++------
 man2/pipe.2              |  4 ++--
 man2/pivot_root.2        | 14 +++++++++-----
 man2/poll.2              |  3 +--
 man2/process_madvise.2   | 20 ++++++++++++--------
 man2/quotactl.2          |  4 +++-
 man2/readdir.2           | 12 +++++++-----
 man2/readlink.2          |  2 +-
 man2/reboot.2            | 12 +++++++-----
 scripts/bash_aliases     |  1 +
 45 files changed, 293 insertions(+), 182 deletions(-)
Signature · 1 line
2.31.1