[PATCH v4] linux: Add openat2 (BZ 31664)
Paul Eggert
eggert@cs.ucla.edu
Tue Aug 26 13:51:29 GMT 2025
On 2025-08-26 06:03, Aleksa Sarai wrote:
> Is removing const something we can do safely? I was under the impression
> removing const from a function prototype can break building working
> programs? (Even if they wouldn't be using the feature.)
How so? Can you give a sample call that would break?
> But there is precedent for the CHECK_FIELDS approach
> -- sched_setattr(2) and perf_event_open(2) both write to the size field
None of these are in glibc. And this is a confusing design. And there is
no good performance reason for it. Syscalls should instead use the POSIX
standard model of sigaction etc.
The glibc API can have two arguments even if the Linux syscall is poorly
designed and has just one.
More information about the Libc-alpha
mailing list