]> sourceware.org Git - glibc.git/commitdiff
nptl: Add internal alias __pthread_getattr_default_np
authorFlorian Weimer <fweimer@redhat.com>
Fri, 15 May 2020 20:49:46 +0000 (22:49 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 2 Jun 2020 08:32:09 +0000 (10:32 +0200)
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
nptl/Versions
nptl/pthreadP.h
nptl/pthread_getattr_default_np.c

index 4c7b43354d66e43f973be1a90d8fc6fd10252dea..e4696c128fa4332efbfb4b2b1c1d56f25ef53460 100644 (file)
@@ -61,6 +61,7 @@ libc {
     __pthread_attr_setaffinity_np;
     __pthread_attr_init; __pthread_attr_destroy;
     __pthread_attr_copy;
+    __pthread_getattr_default_np;
   }
 }
 
index 41b693d0342d735cf6d87179fdeeee6b44a816ec..9c6dd41b7c2b655387b751233ec5f25e25ce1f30 100644 (file)
@@ -437,6 +437,8 @@ extern int __pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr,
                                    size_t __stacksize);
 int __pthread_attr_setaffinity_np (pthread_attr_t *, size_t, const cpu_set_t *);
 libc_hidden_proto (__pthread_attr_setaffinity_np)
+extern __typeof (pthread_getattr_default_np) __pthread_getattr_default_np;
+libpthread_hidden_proto (__pthread_getattr_default_np)
 extern int __pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock,
                                  const pthread_rwlockattr_t *__restrict
                                  __attr);
index a9665c5df77b8402bcedab4e6d8e46b95dff3a1c..5c99f980e2153b5d4d1ed5f3fb8413d662f05f34 100644 (file)
@@ -19,7 +19,7 @@
 #include <pthreadP.h>
 
 int
-pthread_getattr_default_np (pthread_attr_t *out)
+__pthread_getattr_default_np (pthread_attr_t *out)
 {
   lll_lock (__default_pthread_attr_lock, LLL_PRIVATE);
   int ret = __pthread_attr_copy (out,
@@ -27,3 +27,5 @@ pthread_getattr_default_np (pthread_attr_t *out)
   lll_unlock (__default_pthread_attr_lock, LLL_PRIVATE);
   return ret;
 }
+libpthread_hidden_def (__pthread_getattr_default_np)
+weak_alias (__pthread_getattr_default_np, pthread_getattr_default_np)
This page took 0.041522 seconds and 5 git commands to generate.