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)
Tue, Feb 10, 9:04 PM
Unknown Object (File)
Sun, Feb 8, 8:24 AM
Unknown Object (File)
Sat, Feb 7, 9:28 PM
Unknown Object (File)
Sat, Jan 31, 3:07 AM
Unknown Object (File)
Mon, Jan 26, 2:19 AM
Unknown Object (File)
Sun, Jan 25, 11:51 AM
Unknown Object (File)
Sun, Jan 25, 5:43 AM
Unknown Object (File)
Fri, Jan 23, 1:03 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