ipc: prefer SYS_ipc when it is defined
authorSzabolcs Nagy <nsz@port70.net>
Thu, 9 May 2019 22:49:28 +0000 (22:49 +0000)
committerRich Felker <dalias@aerifal.cx>
Mon, 1 Jul 2019 18:17:59 +0000 (14:17 -0400)
commit4acfc287d859bc643c9f9fa63d82e8c90b984d7c
tree21ca5531740752becb7a0927339c8c995db45c0a
parentb574de5bf3baeb9f1a54b4c05660830e36e5fca2
ipc: prefer SYS_ipc when it is defined

Linux v5.1 introduced ipc syscalls on targets where previously only
SYS_ipc was available, change the logic such that the ipc code keeps
using SYS_ipc which works backward compatibly on older kernels.

This changes behaviour on microblaze which had both mechanisms, now
SYS_ipc will be used instead of separate syscalls.
12 files changed:
src/ipc/msgctl.c
src/ipc/msgget.c
src/ipc/msgrcv.c
src/ipc/msgsnd.c
src/ipc/semctl.c
src/ipc/semget.c
src/ipc/semop.c
src/ipc/semtimedop.c
src/ipc/shmat.c
src/ipc/shmctl.c
src/ipc/shmdt.c
src/ipc/shmget.c