diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-03-03 12:16:35 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-03-03 12:16:35 +0100 |
commit | 5d9f1add86e356209da64f50cb90583c2791c1c0 (patch) | |
tree | 4242efd27acb063359801af8a537a83685502220 /sysdeps/unix | |
parent | c99517a738c0adabee933f9bbcd5988beaf4c9c6 (diff) | |
download | glibc-5d9f1add86e356209da64f50cb90583c2791c1c0.tar glibc-5d9f1add86e356209da64f50cb90583c2791c1c0.tar.gz glibc-5d9f1add86e356209da64f50cb90583c2791c1c0.tar.bz2 glibc-5d9f1add86e356209da64f50cb90583c2791c1c0.zip |
Linux: pkey_mprotect syscall number is always available
Due to the built-in tables, __NR_pkey_mprotect is always defined.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/sysv/linux/pkey_mprotect.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/pkey_mprotect.c b/sysdeps/unix/sysv/linux/pkey_mprotect.c index 5d372edfd5..4ec1feba2e 100644 --- a/sysdeps/unix/sysv/linux/pkey_mprotect.c +++ b/sysdeps/unix/sysv/linux/pkey_mprotect.c @@ -28,10 +28,5 @@ pkey_mprotect (void *addr, size_t len, int prot, int pkey) /* If the key is -1, the system call is precisely equivalent to mprotect. */ return __mprotect (addr, len, prot); -#ifdef __NR_pkey_mprotect return INLINE_SYSCALL_CALL (pkey_mprotect, addr, len, prot, pkey); -#else - __set_errno (ENOSYS); - return -1; -#endif } |