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)
Wed, Jun 5, 8:07 PM
Unknown Object (File)
Sun, Jun 2, 4:33 PM
Unknown Object (File)
May 19 2024, 5:57 AM
Unknown Object (File)
May 17 2024, 4:26 PM
Unknown Object (File)
May 10 2024, 3:39 AM
Unknown Object (File)
May 6 2024, 8:07 PM
Unknown Object (File)
May 4 2024, 1:22 PM
Unknown Object (File)
May 3 2024, 4:33 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