Page MenuHomeFreeBSD

Make __sys_fcntl take an intptr_t
ClosedPublic

Authored by brooks on Mar 15 2024, 10:46 PM.
Tags
None
Referenced Files
F160927028: D44381.id.diff
Mon, Jun 29, 3:45 AM
Unknown Object (File)
Wed, Jun 24, 5:02 PM
Unknown Object (File)
Mon, Jun 8, 8:53 PM
Unknown Object (File)
May 23 2026, 3:17 PM
Unknown Object (File)
May 18 2026, 5:32 PM
Unknown Object (File)
May 18 2026, 4:49 AM
Unknown Object (File)
May 17 2026, 7:00 PM
Unknown Object (File)
May 14 2026, 8:22 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 Passed
Unit
No Test Coverage
Build Status
Buildable 56635
Build 53523: arc lint + arc unit