HomeFreeBSD

syscalls.master: make __sys_fcntl take an intptr_t

Description

syscalls.master: make __sys_fcntl take an intptr_t

The (optional) third argument of fcntl is sometimes a pointer so change
the type to intptr_t. Update the libc-internal defintion (actually used
by libthr) to take a fixed intptr_t argument rather than pretending it's
a variadic function. (That worked because all supported architectures
pass variadic arguments as though the function was declared with those
types. In CheriBSD that changes because variadic arguments are passed
via a bounded array.)

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44381

Details

Provenance
brooksAuthored on Mar 19 2024, 9:52 PM
Reviewer
kib
Differential Revision
D44381: Make __sys_fcntl take an intptr_t
Parents
rGcab73e530564: syscalls.master: struct siginfo -> struct __siginfo
Branches
Unknown
Tags
Unknown