Page MenuHomeFreeBSD

Make __sys_fcntl take an intptr_t
ClosedPublic

Authored by brooks on Mar 15 2024, 10:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 10, 11:15 AM
Unknown Object (File)
Sun, May 4, 5:32 AM
Unknown Object (File)
Apr 26 2025, 12:02 PM
Unknown Object (File)
Apr 26 2025, 11:49 AM
Unknown Object (File)
Apr 26 2025, 6:43 AM
Unknown Object (File)
Apr 22 2025, 3:38 PM
Unknown Object (File)
Apr 17 2025, 11:35 AM
Unknown Object (File)
Apr 11 2025, 8:54 PM
Subscribers

Details

Summary

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.)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable