Page MenuHomeFreeBSD

Make __sys_fcntl take an intptr_t
ClosedPublic

Authored by brooks on Mar 15 2024, 10:46 PM.
Tags
None
Referenced Files
F170695208: D44381.id135805.diff
Sun, Sep 6, 1:53 AM
Unknown Object (File)
Sat, Sep 5, 9:08 PM
Unknown Object (File)
Sat, Sep 5, 4:41 PM
Unknown Object (File)
Sat, Sep 5, 3:30 PM
Unknown Object (File)
Fri, Sep 4, 5:12 PM
Unknown Object (File)
Fri, Sep 4, 1:20 AM
Unknown Object (File)
Thu, Sep 3, 10:18 PM
Unknown Object (File)
Thu, Sep 3, 5:09 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