aboutsummaryrefslogtreecommitdiff
path: root/nptl/nptl-init.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-04-21 19:49:51 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-04-21 19:49:51 +0200
commit66d99dc53a9aa2bbc7e8d7dd3ba3507d5ffe8597 (patch)
treea046f4d873f9207da87f4ba98e8879874b773411 /nptl/nptl-init.c
parent75376a3fb8429e3cf8275337ac56bf5f8127303b (diff)
downloadglibc-66d99dc53a9aa2bbc7e8d7dd3ba3507d5ffe8597.tar
glibc-66d99dc53a9aa2bbc7e8d7dd3ba3507d5ffe8597.tar.gz
glibc-66d99dc53a9aa2bbc7e8d7dd3ba3507d5ffe8597.tar.bz2
glibc-66d99dc53a9aa2bbc7e8d7dd3ba3507d5ffe8597.zip
nptl: Invoke the set_robust_list system call directly in fork
This removes one of the pthread forwarder functions. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/nptl-init.c')
-rw-r--r--nptl/nptl-init.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/nptl/nptl-init.c b/nptl/nptl-init.c
index 41c566c9bd..8f9d41ac62 100644
--- a/nptl/nptl-init.c
+++ b/nptl/nptl-init.c
@@ -59,14 +59,6 @@ int __set_robust_list_avail;
/* Version of the library, used in libthread_db to detect mismatches. */
static const char nptl_version[] __attribute_used__ = VERSION;
-
-#ifdef SHARED
-static
-#else
-extern
-#endif
-void __nptl_set_robust (struct pthread *);
-
#ifdef SHARED
static const struct pthread_functions pthread_functions =
{
@@ -91,25 +83,12 @@ static const struct pthread_functions pthread_functions =
.ptr___pthread_getspecific = __pthread_getspecific,
.ptr___pthread_setspecific = __pthread_setspecific,
.ptr__nptl_setxid = __nptl_setxid,
- .ptr_set_robust = __nptl_set_robust
};
# define ptr_pthread_functions &pthread_functions
#else
# define ptr_pthread_functions NULL
#endif
-
-#ifdef SHARED
-static
-#endif
-void
-__nptl_set_robust (struct pthread *self)
-{
- INTERNAL_SYSCALL_CALL (set_robust_list, &self->robust_head,
- sizeof (struct robust_list_head));
-}
-
-
/* For asynchronous cancellation we use a signal. This is the handler. */
static void
sigcancel_handler (int sig, siginfo_t *si, void *ctx)