mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
nptl: Move futex-internal into libc
This moves __futex_abstimed_wait64 and __futex_abstimed_wait_cancelable64 and exports these functions as GLIBC_PRIVATE. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@ -31,6 +31,7 @@ extra-libs-others := $(extra-libs)
|
|||||||
routines = \
|
routines = \
|
||||||
alloca_cutoff \
|
alloca_cutoff \
|
||||||
forward \
|
forward \
|
||||||
|
futex-internal \
|
||||||
libc-cancellation \
|
libc-cancellation \
|
||||||
libc-cleanup \
|
libc-cleanup \
|
||||||
libc_multiple_threads \
|
libc_multiple_threads \
|
||||||
@ -97,7 +98,6 @@ libpthread-routines = \
|
|||||||
flockfile \
|
flockfile \
|
||||||
ftrylockfile \
|
ftrylockfile \
|
||||||
funlockfile \
|
funlockfile \
|
||||||
futex-internal \
|
|
||||||
herrno \
|
herrno \
|
||||||
libpthread-compat \
|
libpthread-compat \
|
||||||
nptl-init \
|
nptl-init \
|
||||||
|
@ -71,6 +71,8 @@ libc {
|
|||||||
pthread_sigmask;
|
pthread_sigmask;
|
||||||
}
|
}
|
||||||
GLIBC_PRIVATE {
|
GLIBC_PRIVATE {
|
||||||
|
__futex_abstimed_wait64;
|
||||||
|
__futex_abstimed_wait_cancelable64;
|
||||||
__libc_alloca_cutoff;
|
__libc_alloca_cutoff;
|
||||||
__libc_allocate_rtsig_private;
|
__libc_allocate_rtsig_private;
|
||||||
__libc_current_sigrtmax_private;
|
__libc_current_sigrtmax_private;
|
||||||
@ -387,8 +389,6 @@ libpthread {
|
|||||||
}
|
}
|
||||||
|
|
||||||
GLIBC_PRIVATE {
|
GLIBC_PRIVATE {
|
||||||
__futex_abstimed_wait64;
|
|
||||||
__futex_abstimed_wait_cancelable64;
|
|
||||||
__libpthread_freeres;
|
__libpthread_freeres;
|
||||||
__pthread_barrier_init;
|
__pthread_barrier_init;
|
||||||
__pthread_barrier_wait;
|
__pthread_barrier_wait;
|
||||||
|
@ -112,7 +112,7 @@ __futex_abstimed_wait64 (unsigned int* futex_word, unsigned int expected,
|
|||||||
return __futex_abstimed_wait_common64 (futex_word, expected, clockid,
|
return __futex_abstimed_wait_common64 (futex_word, expected, clockid,
|
||||||
abstime, private, false);
|
abstime, private, false);
|
||||||
}
|
}
|
||||||
libpthread_hidden_def (__futex_abstimed_wait64)
|
libc_hidden_def (__futex_abstimed_wait64)
|
||||||
|
|
||||||
int
|
int
|
||||||
__futex_abstimed_wait_cancelable64 (unsigned int* futex_word,
|
__futex_abstimed_wait_cancelable64 (unsigned int* futex_word,
|
||||||
@ -123,4 +123,4 @@ __futex_abstimed_wait_cancelable64 (unsigned int* futex_word,
|
|||||||
return __futex_abstimed_wait_common64 (futex_word, expected, clockid,
|
return __futex_abstimed_wait_common64 (futex_word, expected, clockid,
|
||||||
abstime, private, true);
|
abstime, private, true);
|
||||||
}
|
}
|
||||||
libpthread_hidden_def (__futex_abstimed_wait_cancelable64)
|
libc_hidden_def (__futex_abstimed_wait_cancelable64)
|
||||||
|
@ -345,14 +345,14 @@ __futex_abstimed_wait_cancelable64 (unsigned int* futex_word,
|
|||||||
unsigned int expected, clockid_t clockid,
|
unsigned int expected, clockid_t clockid,
|
||||||
const struct __timespec64* abstime,
|
const struct __timespec64* abstime,
|
||||||
int private);
|
int private);
|
||||||
libpthread_hidden_proto (__futex_abstimed_wait_cancelable64);
|
libc_hidden_proto (__futex_abstimed_wait_cancelable64);
|
||||||
|
|
||||||
int
|
int
|
||||||
__futex_abstimed_wait64 (unsigned int* futex_word, unsigned int expected,
|
__futex_abstimed_wait64 (unsigned int* futex_word, unsigned int expected,
|
||||||
clockid_t clockid,
|
clockid_t clockid,
|
||||||
const struct __timespec64* abstime,
|
const struct __timespec64* abstime,
|
||||||
int private);
|
int private);
|
||||||
libpthread_hidden_proto (__futex_abstimed_wait64);
|
libc_hidden_proto (__futex_abstimed_wait64);
|
||||||
|
|
||||||
|
|
||||||
static __always_inline int
|
static __always_inline int
|
||||||
|
Reference in New Issue
Block a user