mirror of git://sourceware.org/git/glibc.git
htl: move sem_unlink into libc.
Message-ID: <20250817104023.91919-8-gfleury@disroot.org>
This commit is contained in:
parent
f5a43420e2
commit
098e449df0
|
|
@ -34,7 +34,6 @@ libpthread-routines := \
|
||||||
pt-spin \
|
pt-spin \
|
||||||
pt-getname-np \
|
pt-getname-np \
|
||||||
pt-setname-np \
|
pt-setname-np \
|
||||||
sem_unlink \
|
|
||||||
cancellation \
|
cancellation \
|
||||||
cthreads-compat \
|
cthreads-compat \
|
||||||
herrno \
|
herrno \
|
||||||
|
|
@ -211,6 +210,7 @@ routines := \
|
||||||
sem_close \
|
sem_close \
|
||||||
sem_open \
|
sem_open \
|
||||||
sem_routines \
|
sem_routines \
|
||||||
|
sem_unlink \
|
||||||
# routines
|
# routines
|
||||||
shared-only-routines = forward
|
shared-only-routines = forward
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -109,6 +109,7 @@ libc {
|
||||||
sem_post;
|
sem_post;
|
||||||
sem_timedwait;
|
sem_timedwait;
|
||||||
sem_trywait;
|
sem_trywait;
|
||||||
|
sem_unlink;
|
||||||
sem_wait;
|
sem_wait;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -239,6 +240,7 @@ libc {
|
||||||
sem_post;
|
sem_post;
|
||||||
sem_timedwait;
|
sem_timedwait;
|
||||||
sem_trywait;
|
sem_trywait;
|
||||||
|
sem_unlink;
|
||||||
sem_wait;
|
sem_wait;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -332,8 +334,6 @@ libpthread {
|
||||||
|
|
||||||
pthread_create;
|
pthread_create;
|
||||||
|
|
||||||
sem_unlink;
|
|
||||||
|
|
||||||
pthread_spin_destroy; pthread_spin_init; pthread_spin_lock;
|
pthread_spin_destroy; pthread_spin_init; pthread_spin_lock;
|
||||||
pthread_spin_trylock; pthread_spin_unlock;
|
pthread_spin_trylock; pthread_spin_unlock;
|
||||||
__pthread_spin_destroy; __pthread_spin_init;
|
__pthread_spin_destroy; __pthread_spin_init;
|
||||||
|
|
|
||||||
|
|
@ -136,6 +136,7 @@ GLIBC_2.12 sem_open F
|
||||||
GLIBC_2.12 sem_post F
|
GLIBC_2.12 sem_post F
|
||||||
GLIBC_2.12 sem_timedwait F
|
GLIBC_2.12 sem_timedwait F
|
||||||
GLIBC_2.12 sem_trywait F
|
GLIBC_2.12 sem_trywait F
|
||||||
|
GLIBC_2.12 sem_unlink F
|
||||||
GLIBC_2.12 sem_wait F
|
GLIBC_2.12 sem_wait F
|
||||||
GLIBC_2.13 __fentry__ F
|
GLIBC_2.13 __fentry__ F
|
||||||
GLIBC_2.14 syncfs F
|
GLIBC_2.14 syncfs F
|
||||||
|
|
@ -2685,6 +2686,7 @@ GLIBC_2.43 sem_open F
|
||||||
GLIBC_2.43 sem_post F
|
GLIBC_2.43 sem_post F
|
||||||
GLIBC_2.43 sem_timedwait F
|
GLIBC_2.43 sem_timedwait F
|
||||||
GLIBC_2.43 sem_trywait F
|
GLIBC_2.43 sem_trywait F
|
||||||
|
GLIBC_2.43 sem_unlink F
|
||||||
GLIBC_2.43 sem_wait F
|
GLIBC_2.43 sem_wait F
|
||||||
GLIBC_2.5 __readlinkat_chk F
|
GLIBC_2.5 __readlinkat_chk F
|
||||||
GLIBC_2.5 inet6_opt_append F
|
GLIBC_2.5 inet6_opt_append F
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ GLIBC_2.12 pthread_spin_init F
|
||||||
GLIBC_2.12 pthread_spin_lock F
|
GLIBC_2.12 pthread_spin_lock F
|
||||||
GLIBC_2.12 pthread_spin_trylock F
|
GLIBC_2.12 pthread_spin_trylock F
|
||||||
GLIBC_2.12 pthread_spin_unlock F
|
GLIBC_2.12 pthread_spin_unlock F
|
||||||
GLIBC_2.12 sem_unlink F
|
|
||||||
GLIBC_2.2.6 _IO_flockfile F
|
GLIBC_2.2.6 _IO_flockfile F
|
||||||
GLIBC_2.2.6 _IO_ftrylockfile F
|
GLIBC_2.2.6 _IO_ftrylockfile F
|
||||||
GLIBC_2.2.6 _IO_funlockfile F
|
GLIBC_2.2.6 _IO_funlockfile F
|
||||||
|
|
|
||||||
|
|
@ -1768,6 +1768,7 @@ GLIBC_2.38 sem_open F
|
||||||
GLIBC_2.38 sem_post F
|
GLIBC_2.38 sem_post F
|
||||||
GLIBC_2.38 sem_timedwait F
|
GLIBC_2.38 sem_timedwait F
|
||||||
GLIBC_2.38 sem_trywait F
|
GLIBC_2.38 sem_trywait F
|
||||||
|
GLIBC_2.38 sem_unlink F
|
||||||
GLIBC_2.38 sem_wait F
|
GLIBC_2.38 sem_wait F
|
||||||
GLIBC_2.38 semctl F
|
GLIBC_2.38 semctl F
|
||||||
GLIBC_2.38 semget F
|
GLIBC_2.38 semget F
|
||||||
|
|
@ -2366,6 +2367,7 @@ GLIBC_2.43 sem_open F
|
||||||
GLIBC_2.43 sem_post F
|
GLIBC_2.43 sem_post F
|
||||||
GLIBC_2.43 sem_timedwait F
|
GLIBC_2.43 sem_timedwait F
|
||||||
GLIBC_2.43 sem_trywait F
|
GLIBC_2.43 sem_trywait F
|
||||||
|
GLIBC_2.43 sem_unlink F
|
||||||
GLIBC_2.43 sem_wait F
|
GLIBC_2.43 sem_wait F
|
||||||
HURD_CTHREADS_0.3 __cthread_getspecific F
|
HURD_CTHREADS_0.3 __cthread_getspecific F
|
||||||
HURD_CTHREADS_0.3 __cthread_keycreate F
|
HURD_CTHREADS_0.3 __cthread_keycreate F
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,6 @@ GLIBC_2.38 pthread_spin_init F
|
||||||
GLIBC_2.38 pthread_spin_lock F
|
GLIBC_2.38 pthread_spin_lock F
|
||||||
GLIBC_2.38 pthread_spin_trylock F
|
GLIBC_2.38 pthread_spin_trylock F
|
||||||
GLIBC_2.38 pthread_spin_unlock F
|
GLIBC_2.38 pthread_spin_unlock F
|
||||||
GLIBC_2.38 sem_unlink F
|
|
||||||
GLIBC_2.38 thrd_create F
|
GLIBC_2.38 thrd_create F
|
||||||
GLIBC_2.38 thrd_detach F
|
GLIBC_2.38 thrd_detach F
|
||||||
GLIBC_2.38 thrd_exit F
|
GLIBC_2.38 thrd_exit F
|
||||||
|
|
|
||||||
|
|
@ -22,11 +22,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "semaphoreP.h"
|
#include "semaphoreP.h"
|
||||||
#include <shm-directory.h>
|
#include <shm-directory.h>
|
||||||
|
#include <shlib-compat.h>
|
||||||
#if !PTHREAD_IN_LIBC
|
|
||||||
/* The private name is not exported from libc. */
|
|
||||||
# define __unlink unlink
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int
|
int
|
||||||
__sem_unlink (const char *name)
|
__sem_unlink (const char *name)
|
||||||
|
|
@ -44,11 +40,14 @@ __sem_unlink (const char *name)
|
||||||
__set_errno (EACCES);
|
__set_errno (EACCES);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#if PTHREAD_IN_LIBC
|
#ifndef __PTHREAD_HTL
|
||||||
versioned_symbol (libc, __sem_unlink, sem_unlink, GLIBC_2_34);
|
versioned_symbol (libc, __sem_unlink, sem_unlink, GLIBC_2_34);
|
||||||
# if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1_1, GLIBC_2_34)
|
# if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_1_1, GLIBC_2_34)
|
||||||
compat_symbol (libpthread, __sem_unlink, sem_unlink, GLIBC_2_1_1);
|
compat_symbol (libpthread, __sem_unlink, sem_unlink, GLIBC_2_1_1);
|
||||||
# endif
|
# endif
|
||||||
#else /* !PTHREAD_IN_LIBC */
|
#else /* __PTHREAD_HTL */
|
||||||
strong_alias (__sem_unlink, sem_unlink)
|
versioned_symbol (libc, __sem_unlink, sem_unlink, GLIBC_2_43);
|
||||||
|
# if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_12, GLIBC_2_43)
|
||||||
|
compat_symbol (libpthread, __sem_unlink, sem_unlink, GLIBC_2_12);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue