about summary refs log tree commit diff
path: root/sysdeps/unix/sysv
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-03-03 12:11:26 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-03-03 12:11:26 +0100
commit8d25a6765026162a245c94c5da1140d2f42bcd92 (patch)
tree8db95a72350c7b8c033f68eb3fa28b7559b73c97 /sysdeps/unix/sysv
parenta72ae22d5d9951a97b4e3c3101cc651ef1a01da3 (diff)
downloadglibc-8d25a6765026162a245c94c5da1140d2f42bcd92.tar.gz
glibc-8d25a6765026162a245c94c5da1140d2f42bcd92.tar.xz
glibc-8d25a6765026162a245c94c5da1140d2f42bcd92.zip
Linux: mlock2 syscall number is always available
Due to the built-in tables, __NR_mlock2 is always defined.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix/sysv')
-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);