This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Update kernel-features.h files for Linux 5.1
10.05.2019 в 14:27:13 +0400 Stepan Golosunov написал(а):
> 09.05.2019 в 23:00:37 +0000 Joseph Myers написал:
> > Linux 5.1 adds missing syscalls to the syscall table for many Linux
> > kernel architectures. This patch updates the kernel-features.h
> > headers accordingly. I believe the statfs64 structure used by alpha
> > matches what the new kernel syscalls use, but that should be reviewed
> > carefully.
> >
> > Tested with build-many-glibcs.py.
>
> The newly added direct ipc syscalls are different from the old ones:
>
> 1. They do not accept IPC_64. This means that __IPC_64 should be set
> to zero when new syscalls are used. And new syscalls can not be used
> for compat functions like __old_semctl.
>
> (Hmm. Is __old_msgctl already buggy due to its use of __IPC_64 when
> __ASSUME_DIRECT_SYSVIPC_SYSCALLS is defined? Is there any
> architecture with both __ASSUME_DIRECT_SYSVIPC_SYSCALLS and
> __old_msgctl currently?)
>
> 2. semtimedop does not exist on 32-bit ABIs. They have
> semtimedop_time64 instead.
> (I also think that ipc with IPCOP_semtimedop was accidentally made to
> behave like semtimedop_time64 in 32-bit builds of linux 5.1. But that
> would be a kernel bug.)
And, after rereading
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0d6040d4681735dfc47565de288525de405a5c99
3. There is no semop. semtimedop(_time64)? should be used instead.