about summary refs log tree commit diff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-02-09 15:39:19 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-02-09 16:54:01 +0100
commit23a3c1501fd4febcf17f10a3c6aeb31c93a25435 (patch)
tree95f5f078cd4aa0114656a07c68736b676acf02ad /sysdeps/unix
parent49f28ea934a2bb9b46c13da2b1230ea990875943 (diff)
downloadglibc-23a3c1501fd4febcf17f10a3c6aeb31c93a25435.tar.gz
glibc-23a3c1501fd4febcf17f10a3c6aeb31c93a25435.tar.xz
glibc-23a3c1501fd4febcf17f10a3c6aeb31c93a25435.zip
Linux: mlock2 syscall number is always available
Due to the built-in tables, __NR_mlock2 is always defined.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/mlock2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/mlock2.c b/sysdeps/unix/sysv/linux/mlock2.c
index 7cea23d47c..e52f43f35c 100644
--- a/sysdeps/unix/sysv/linux/mlock2.c
+++ b/sysdeps/unix/sysv/linux/mlock2.c
@@ -27,11 +27,9 @@ mlock2 (const void *addr, size_t length, unsigned int flags)
 #else
   if (flags == 0)
     return INLINE_SYSCALL_CALL (mlock, addr, length);
-# ifdef __NR_mlock2
   int ret = INLINE_SYSCALL_CALL (mlock2, addr, length, flags);
   if (ret == 0 || errno != ENOSYS)
     return ret;
-# endif /* __NR_mlock2 */
   /* Treat the missing system call as an invalid (non-zero) flag
      argument.  */
   __set_errno (EINVAL);