[PATCH] powerpc: Enable demuxed sysv IPC syscalls
Andreas Schwab
schwab@linux-m68k.org
Thu Dec 3 22:12:00 GMT 2015
"Paul E. Murphy" <murphyp@linux.vnet.ibm.com> writes:
> diff --git a/sysdeps/unix/sysv/linux/msgctl.c b/sysdeps/unix/sysv/linux/msgctl.c
> index a24dc38..86f34a2 100644
> --- a/sysdeps/unix/sysv/linux/msgctl.c
> +++ b/sysdeps/unix/sysv/linux/msgctl.c
> @@ -56,7 +56,11 @@ int
> attribute_compat_text_section
> __old_msgctl (int msqid, int cmd, struct __old_msqid_ds *buf)
> {
> +#ifdef __ASSUME_MSGCTL_SYSCALL
> + return INLINE_SYSCALL (msgctl, 3, msqid, cmd, buf);
> +#else
> return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl, msqid, cmd, 0, buf);
> +#endif
> }
> compat_symbol (libc, __old_msgctl, msgctl, GLIBC_2_0);
There should be no need for a compat code to use a new syscall.
> #endif
> @@ -64,7 +68,12 @@ compat_symbol (libc, __old_msgctl, msgctl, GLIBC_2_0);
> int
> __new_msgctl (int msqid, int cmd, struct msqid_ds *buf)
> {
> +#ifdef __ASSUME_MSGCTL_SYSCALL
> + return INLINE_SYSCALL (msgctl, 3, msqid, cmd | __IPC_64, buf);
Why does a brand new syscall need IPC_64?
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Libc-alpha
mailing list