diff options
author | gfleury <gfleury@disroot.org> | 2024-11-18 13:21:45 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-11-19 01:37:35 +0100 |
commit | 7f045c0b48633b198b42bebdff0024d7cfab3901 (patch) | |
tree | 3466f2e4d5825b6eab71c438e4eea2f46c04029c /htl | |
parent | 1a1cedd635506a1e5f97d19bcd03fad1c3c29c12 (diff) | |
download | glibc-7f045c0b48633b198b42bebdff0024d7cfab3901.tar.gz glibc-7f045c0b48633b198b42bebdff0024d7cfab3901.tar.xz glibc-7f045c0b48633b198b42bebdff0024d7cfab3901.zip |
htl: move pthread_attr_init into libc.
Signed-off-by: gfleury <gfleury@disroot.org>
Diffstat (limited to 'htl')
-rw-r--r-- | htl/Makefile | 2 | ||||
-rw-r--r-- | htl/Versions | 4 | ||||
-rw-r--r-- | htl/forward.c | 2 | ||||
-rw-r--r-- | htl/pt-initialize.c | 1 |
4 files changed, 3 insertions, 6 deletions
diff --git a/htl/Makefile b/htl/Makefile index 5c625d0ca9..25eb791031 100644 --- a/htl/Makefile +++ b/htl/Makefile @@ -25,7 +25,6 @@ SYSDEPS := lockfile LCLHDRS := libpthread-routines := \ - pt-attr-init \ pt-barrier-destroy \ pt-barrier-init \ pt-barrier-wait \ @@ -197,6 +196,7 @@ routines := \ pt-attr-getstack \ pt-attr-getstackaddr \ pt-attr-getstacksize \ + pt-attr-init \ pt-attr-setdetachstate \ pt-attr-setguardsize \ pt-attr-setinheritsched \ diff --git a/htl/Versions b/htl/Versions index 3374574869..afc2495e2f 100644 --- a/htl/Versions +++ b/htl/Versions @@ -25,6 +25,7 @@ libc { pthread_attr_setstack; pthread_attr_setscope; pthread_attr_setschedparam; + pthread_attr_init; } GLIBC_2.21 { @@ -74,6 +75,7 @@ libc { ___pthread_self; __pthread_init_thread; __pthread_default_attr; + __pthread_attr_init; __pthread_attr_getstacksize; __pthread_attr_getstackaddr; __pthread_attr_getstack; @@ -108,8 +110,6 @@ libpthread { pthread_atfork; - pthread_attr_init; - pthread_barrier_destroy; pthread_barrier_init; pthread_barrier_wait; pthread_barrierattr_destroy; pthread_barrierattr_getpshared; pthread_barrierattr_init; pthread_barrierattr_setpshared; diff --git a/htl/forward.c b/htl/forward.c index 179ec60bc5..7c0e16dc6e 100644 --- a/htl/forward.c +++ b/htl/forward.c @@ -53,8 +53,6 @@ name decl \ #define FORWARD(name, decl, params, defretval) \ FORWARD2 (name, int, decl, params, return defretval) -FORWARD (pthread_attr_init, (pthread_attr_t *attr), (attr), 0) - FORWARD (pthread_condattr_destroy, (pthread_condattr_t *attr), (attr), 0) FORWARD (pthread_condattr_init, (pthread_condattr_t *attr), (attr), 0) diff --git a/htl/pt-initialize.c b/htl/pt-initialize.c index 835d741215..b082a13b54 100644 --- a/htl/pt-initialize.c +++ b/htl/pt-initialize.c @@ -27,7 +27,6 @@ #if IS_IN (libpthread) static const struct pthread_functions pthread_functions = { - .ptr_pthread_attr_init = __pthread_attr_init, .ptr_pthread_condattr_destroy = __pthread_condattr_destroy, .ptr_pthread_condattr_init = __pthread_condattr_init, .ptr_pthread_cond_broadcast = __pthread_cond_broadcast, |