Page MenuHomeFreeBSD

Make __sys_fcntl take an intptr_t
ClosedPublic

Authored by brooks on Mar 15 2024, 10:46 PM.
Tags
None
Referenced Files
F168540206: D44381.diff
Fri, Aug 28, 10:22 PM
F168493971: D44381.id135972.diff
Fri, Aug 28, 4:32 PM
F168475885: D44381.id135972.diff
Fri, Aug 28, 2:18 PM
Unknown Object (File)
Wed, Aug 26, 4:38 PM
Unknown Object (File)
Wed, Aug 26, 11:23 AM
Unknown Object (File)
Wed, Aug 26, 8:59 AM
Unknown Object (File)
Tue, Aug 25, 3:16 PM
Unknown Object (File)
Mon, Aug 24, 4:46 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