From: Florian Weimer Date: Tue, 3 Mar 2020 11:11:26 +0000 (+0100) Subject: Linux: mlock2 syscall number is always available X-Git-Tag: glibc-2.32~562 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d25a6765026162a245c94c5da1140d2f42bcd92;p=thirdparty%2Fglibc.git Linux: mlock2 syscall number is always available Due to the built-in tables, __NR_mlock2 is always defined. Reviewed-by: Adhemerval Zanella --- diff --git a/sysdeps/unix/sysv/linux/mlock2.c b/sysdeps/unix/sysv/linux/mlock2.c index 7cea23d47c6..e52f43f35c3 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);