From 8232e7d2097eb8e5ca5548ff1ae3f7257f274a87 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Wed, 26 Oct 2016 18:04:48 -0200 Subject: Use shmat syscall for Linux implementation This patch add a direct call to shmat syscall if it is supported by kernel features. Checked on x86_64, i686, powerpc64le, aarch64, and armhf. * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmat): Remove. * sysdeps/unix/sysv/linux/arm/syscalls.list (shmat): Likewise. * sysdeps/unix/sysv/linux/generic/syscalls.list (shmat): Likewise. * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmat): Likewise. * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmat): Likewise. * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmat): Likewise. * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmat): Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmat): Likewise. * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmat): Likewise. * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat): Define to __NR_osf_shmat. * sysdeps/unix/sysv/linux/shmat.c (shmat): Use shmat syscall if it is defined. --- ChangeLog | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 19c898cd79..2e2eb6d0a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,21 @@ 2016-12-28 Adhemerval Zanella + * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmat): Remove. + * sysdeps/unix/sysv/linux/arm/syscalls.list (shmat): Likewise. + * sysdeps/unix/sysv/linux/generic/syscalls.list (shmat): Likewise. + * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmat): Likewise. + * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmat): Likewise. + * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmat): Likewise. + * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmat): + Likewise. + * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmat): + Likewise. + * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmat): Likewise. + * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat): + Define to __NR_osf_shmat. + * sysdeps/unix/sysv/linux/shmat.c (shmat): Use shmat syscall if it is + defined. + * sysvipc/Makefile (tests): Add test-sysvsem. * sysvipc/test-sysvsem.c: New file. -- cgit 1.4.1