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)
Mon, Nov 11, 6:25 AM
Unknown Object (File)
Sun, Nov 10, 3:02 PM
Unknown Object (File)
Mon, Nov 4, 11:20 AM
Unknown Object (File)
Sun, Oct 27, 2:56 AM
Unknown Object (File)
Oct 2 2024, 4:32 AM
Unknown Object (File)
Sep 20 2024, 5:50 PM
Unknown Object (File)
Sep 19 2024, 2:45 PM
Unknown Object (File)
Sep 18 2024, 5:37 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