Page MenuHomeFreeBSD

Make __sys_fcntl take an intptr_t
ClosedPublic

Authored by brooks on Mar 15 2024, 10:46 PM.
Tags
None
Referenced Files
F121873117: D44381.id135972.diff
Mon, Jun 30, 5:33 AM
Unknown Object (File)
Sun, Jun 29, 3:16 AM
Unknown Object (File)
Thu, Jun 26, 12:24 PM
Unknown Object (File)
Sun, Jun 22, 6:19 PM
Unknown Object (File)
Sat, Jun 21, 8:05 AM
Unknown Object (File)
Fri, Jun 13, 10:16 PM
Unknown Object (File)
Thu, Jun 5, 9:41 AM
Unknown Object (File)
May 10 2025, 11:15 AM
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