Mangled function prototypes (phantom arguments)
"Michael Kerrisk (man7.org)" <[email protected]> Wed, 27 May 2026 14:14:39 +0200
| Newsgroups | org.kernel.vger.linux-man |
|---|---|
| Message-ID | <CAFs=pgbvWhm7KUcdyt=ELT66FNuLNjqh3Ek-1d9V6sY2npJ5jg@mail.gmail.com> |
Hello Alex,
It looks like some scripted changes have mangled the call signatures
in multiple SYSNOPIS sections in section 2. (In some cases, multiple
call signatures in the same SYNOPSIS have the problem.)
The problems have all resulted in prototypes adding a phantom first
argument. See for example this prototype from read.2:
ssize_t read(size_t count;
int fd, void buf[count], size_t count);
As far as I can see, at least the following pages are affected:
add_key
alloc_hugepages
cacheflush
epoll_wait
futex_waitv
getdents
getdents64
getdomainname
get_mempolicy
getrandom
getsockopt
getunwind
getxattr
init_module
listmount
lookup_dcookie
madvise
mbind
mincore
mlock
mmap
modify_ldt
mprotect
mremap
msgop
msync
perfmonctl
pread
process_madvise
query_module
read
readlink
recv
recvmsg
remap_file_pages
s390_pci_mmio_write
send
sendmsg
setxattr
write
I did a quick scripted check of section 3 pages, but spotted no problems there.
Thanks,
Michael
--
Michael Kerrisk, man7.org Training and Consulting
[email protected], http://man7.org/training/
"The Linux Programming Interface" -- http://man7.org/tlpi/