diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-02-09 16:38:33 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-03-03 12:49:44 +0100 |
commit | b03604b1b8c92d9af2d61d09654b06fccdeac8d5 (patch) | |
tree | d5daaddb97a467e429942e28f0470c26df21c427 /nptl/nptl-init.c | |
parent | 75376039be338702ed8904800fdcd3f1bc103ca7 (diff) | |
download | glibc-b03604b1b8c92d9af2d61d09654b06fccdeac8d5.tar.gz glibc-b03604b1b8c92d9af2d61d09654b06fccdeac8d5.tar.xz glibc-b03604b1b8c92d9af2d61d09654b06fccdeac8d5.zip |
Linux: set_robust_list syscall number is always available
Due to the built-in tables, __NR_set_robust_list is always defined (although it may not be available at run time). Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/nptl-init.c')
-rw-r--r-- | nptl/nptl-init.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c index 95ac91df15..96b1444a01 100644 --- a/nptl/nptl-init.c +++ b/nptl/nptl-init.c @@ -117,10 +117,8 @@ static void __nptl_set_robust (struct pthread *self) { -#ifdef __NR_set_robust_list INTERNAL_SYSCALL_CALL (set_robust_list, &self->robust_head, sizeof (struct robust_list_head)); -#endif } @@ -240,14 +238,12 @@ __pthread_initialize_minimal_internal (void) pd->robust_prev = &pd->robust_head; #endif pd->robust_head.list = &pd->robust_head; -#ifdef __NR_set_robust_list pd->robust_head.futex_offset = (offsetof (pthread_mutex_t, __data.__lock) - offsetof (pthread_mutex_t, __data.__list.__next)); int res = INTERNAL_SYSCALL_CALL (set_robust_list, &pd->robust_head, sizeof (struct robust_list_head)); if (INTERNAL_SYSCALL_ERROR_P (res)) -#endif set_robust_list_not_avail (); } |