nptl: Move wait implementation to libc

Checked on x86_64-linux-gnu and powerpc64le-linux-gnu.
This commit is contained in:
Adhemerval Zanella 2019-11-13 11:02:13 -03:00
parent 478f70780f
commit c97f9a5979
29 changed files with 2 additions and 57 deletions

View File

@ -47,7 +47,7 @@ pthread-compat-wrappers = \
sendto fsync lseek lseek64 \
msync open open64 pause \
pread pread64 pwrite pwrite64 \
tcdrain wait waitpid msgrcv msgsnd \
tcdrain waitpid msgrcv msgsnd \
sigwait sigsuspend \
recvmsg sendmsg
@ -206,7 +206,6 @@ CFLAGS-pread.c += -fexceptions -fasynchronous-unwind-tables
CFLAGS-pread64.c += -fexceptions -fasynchronous-unwind-tables
CFLAGS-pwrite.c += -fexceptions -fasynchronous-unwind-tables
CFLAGS-pwrite64.c += -fexceptions -fasynchronous-unwind-tables
CFLAGS-wait.c += -fexceptions -fasynchronous-unwind-tables
CFLAGS-waitpid.c += -fexceptions -fasynchronous-unwind-tables
CFLAGS-sigwait.c += -fexceptions -fasynchronous-unwind-tables
CFLAGS-msgrcv.c += -fexceptions -fasynchronous-unwind-tables

View File

@ -99,7 +99,7 @@ libpthread {
close; __close; fcntl; __fcntl; read; __read; write; __write; accept;
connect; __connect; recv; recvfrom; recvmsg; send; __send; sendmsg; sendto;
fsync; lseek; __lseek; msync; open; __open; pause; tcdrain;
system; wait; __wait; waitpid;
system; waitpid;
# Hidden entry point (through macros).
_pthread_cleanup_push; _pthread_cleanup_pop;

View File

@ -44,7 +44,6 @@ GLIBC_2.17 __read F
GLIBC_2.17 __res_state F
GLIBC_2.17 __send F
GLIBC_2.17 __sigaction F
GLIBC_2.17 __wait F
GLIBC_2.17 __write F
GLIBC_2.17 _pthread_cleanup_pop F
GLIBC_2.17 _pthread_cleanup_pop_restore F
@ -203,7 +202,6 @@ GLIBC_2.17 siglongjmp F
GLIBC_2.17 sigwait F
GLIBC_2.17 system F
GLIBC_2.17 tcdrain F
GLIBC_2.17 wait F
GLIBC_2.17 waitpid F
GLIBC_2.17 write F
GLIBC_2.18 pthread_getattr_default_np F

View File

@ -24,7 +24,6 @@ GLIBC_2.0 __pthread_setspecific F
GLIBC_2.0 __read F
GLIBC_2.0 __send F
GLIBC_2.0 __sigaction F
GLIBC_2.0 __wait F
GLIBC_2.0 __write F
GLIBC_2.0 _pthread_cleanup_pop F
GLIBC_2.0 _pthread_cleanup_pop_restore F
@ -103,7 +102,6 @@ GLIBC_2.0 siglongjmp F
GLIBC_2.0 sigwait F
GLIBC_2.0 system F
GLIBC_2.0 tcdrain F
GLIBC_2.0 wait F
GLIBC_2.0 waitpid F
GLIBC_2.0 write F
GLIBC_2.1 __libc_allocate_rtsig F

View File

@ -79,7 +79,6 @@ GLIBC_2.4 __read F
GLIBC_2.4 __res_state F
GLIBC_2.4 __send F
GLIBC_2.4 __sigaction F
GLIBC_2.4 __wait F
GLIBC_2.4 __write F
GLIBC_2.4 _pthread_cleanup_pop F
GLIBC_2.4 _pthread_cleanup_pop_restore F
@ -232,6 +231,5 @@ GLIBC_2.4 siglongjmp F
GLIBC_2.4 sigwait F
GLIBC_2.4 system F
GLIBC_2.4 tcdrain F
GLIBC_2.4 wait F
GLIBC_2.4 waitpid F
GLIBC_2.4 write F

View File

@ -79,7 +79,6 @@ GLIBC_2.4 __read F
GLIBC_2.4 __res_state F
GLIBC_2.4 __send F
GLIBC_2.4 __sigaction F
GLIBC_2.4 __wait F
GLIBC_2.4 __write F
GLIBC_2.4 _pthread_cleanup_pop F
GLIBC_2.4 _pthread_cleanup_pop_restore F
@ -232,6 +231,5 @@ GLIBC_2.4 siglongjmp F
GLIBC_2.4 sigwait F
GLIBC_2.4 system F
GLIBC_2.4 tcdrain F
GLIBC_2.4 wait F
GLIBC_2.4 waitpid F
GLIBC_2.4 write F

View File

@ -42,7 +42,6 @@ GLIBC_2.29 __read F
GLIBC_2.29 __res_state F
GLIBC_2.29 __send F
GLIBC_2.29 __sigaction F
GLIBC_2.29 __wait F
GLIBC_2.29 __write F
GLIBC_2.29 _pthread_cleanup_pop F
GLIBC_2.29 _pthread_cleanup_pop_restore F
@ -219,7 +218,6 @@ GLIBC_2.29 tss_create F
GLIBC_2.29 tss_delete F
GLIBC_2.29 tss_get F
GLIBC_2.29 tss_set F
GLIBC_2.29 wait F
GLIBC_2.29 waitpid F
GLIBC_2.29 write F
GLIBC_2.30 pthread_cond_clockwait F

View File

@ -46,7 +46,6 @@ GLIBC_2.2 __read F
GLIBC_2.2 __res_state F
GLIBC_2.2 __send F
GLIBC_2.2 __sigaction F
GLIBC_2.2 __wait F
GLIBC_2.2 __write F
GLIBC_2.2 _pthread_cleanup_pop F
GLIBC_2.2 _pthread_cleanup_pop_restore F
@ -180,7 +179,6 @@ GLIBC_2.2 siglongjmp F
GLIBC_2.2 sigwait F
GLIBC_2.2 system F
GLIBC_2.2 tcdrain F
GLIBC_2.2 wait F
GLIBC_2.2 waitpid F
GLIBC_2.2 write F
GLIBC_2.2.3 pthread_getattr_np F

View File

@ -24,7 +24,6 @@ GLIBC_2.0 __pthread_setspecific F
GLIBC_2.0 __read F
GLIBC_2.0 __send F
GLIBC_2.0 __sigaction F
GLIBC_2.0 __wait F
GLIBC_2.0 __write F
GLIBC_2.0 _pthread_cleanup_pop F
GLIBC_2.0 _pthread_cleanup_pop_restore F
@ -103,7 +102,6 @@ GLIBC_2.0 siglongjmp F
GLIBC_2.0 sigwait F
GLIBC_2.0 system F
GLIBC_2.0 tcdrain F
GLIBC_2.0 wait F
GLIBC_2.0 waitpid F
GLIBC_2.0 write F
GLIBC_2.1 __libc_allocate_rtsig F

View File

@ -46,7 +46,6 @@ GLIBC_2.2 __read F
GLIBC_2.2 __res_state F
GLIBC_2.2 __send F
GLIBC_2.2 __sigaction F
GLIBC_2.2 __wait F
GLIBC_2.2 __write F
GLIBC_2.2 _pthread_cleanup_pop F
GLIBC_2.2 _pthread_cleanup_pop_restore F
@ -180,7 +179,6 @@ GLIBC_2.2 siglongjmp F
GLIBC_2.2 sigwait F
GLIBC_2.2 system F
GLIBC_2.2 tcdrain F
GLIBC_2.2 wait F
GLIBC_2.2 waitpid F
GLIBC_2.2 write F
GLIBC_2.2.3 pthread_getattr_np F

View File

@ -79,7 +79,6 @@ GLIBC_2.4 __read F
GLIBC_2.4 __res_state F
GLIBC_2.4 __send F
GLIBC_2.4 __sigaction F
GLIBC_2.4 __wait F
GLIBC_2.4 __write F
GLIBC_2.4 _pthread_cleanup_pop F
GLIBC_2.4 _pthread_cleanup_pop_restore F
@ -232,6 +231,5 @@ GLIBC_2.4 siglongjmp F
GLIBC_2.4 sigwait F
GLIBC_2.4 system F
GLIBC_2.4 tcdrain F
GLIBC_2.4 wait F
GLIBC_2.4 waitpid F
GLIBC_2.4 write F

View File

@ -24,7 +24,6 @@ GLIBC_2.0 __pthread_setspecific F
GLIBC_2.0 __read F
GLIBC_2.0 __send F
GLIBC_2.0 __sigaction F
GLIBC_2.0 __wait F
GLIBC_2.0 __write F
GLIBC_2.0 _pthread_cleanup_pop F
GLIBC_2.0 _pthread_cleanup_pop_restore F
@ -103,7 +102,6 @@ GLIBC_2.0 siglongjmp F
GLIBC_2.0 sigwait F
GLIBC_2.0 system F
GLIBC_2.0 tcdrain F
GLIBC_2.0 wait F
GLIBC_2.0 waitpid F
GLIBC_2.0 write F
GLIBC_2.1 __libc_allocate_rtsig F

View File

@ -44,7 +44,6 @@ GLIBC_2.18 __read F
GLIBC_2.18 __res_state F
GLIBC_2.18 __send F
GLIBC_2.18 __sigaction F
GLIBC_2.18 __wait F
GLIBC_2.18 __write F
GLIBC_2.18 _pthread_cleanup_pop F
GLIBC_2.18 _pthread_cleanup_pop_restore F
@ -205,7 +204,6 @@ GLIBC_2.18 siglongjmp F
GLIBC_2.18 sigwait F
GLIBC_2.18 system F
GLIBC_2.18 tcdrain F
GLIBC_2.18 wait F
GLIBC_2.18 waitpid F
GLIBC_2.18 write F
GLIBC_2.28 call_once F

View File

@ -44,7 +44,6 @@ GLIBC_2.18 __read F
GLIBC_2.18 __res_state F
GLIBC_2.18 __send F
GLIBC_2.18 __sigaction F
GLIBC_2.18 __wait F
GLIBC_2.18 __write F
GLIBC_2.18 _pthread_cleanup_pop F
GLIBC_2.18 _pthread_cleanup_pop_restore F
@ -205,7 +204,6 @@ GLIBC_2.18 siglongjmp F
GLIBC_2.18 sigwait F
GLIBC_2.18 system F
GLIBC_2.18 tcdrain F
GLIBC_2.18 wait F
GLIBC_2.18 waitpid F
GLIBC_2.18 write F
GLIBC_2.28 call_once F

View File

@ -24,7 +24,6 @@ GLIBC_2.0 __pthread_setspecific F
GLIBC_2.0 __read F
GLIBC_2.0 __send F
GLIBC_2.0 __sigaction F
GLIBC_2.0 __wait F
GLIBC_2.0 __write F
GLIBC_2.0 _pthread_cleanup_pop F
GLIBC_2.0 _pthread_cleanup_pop_restore F
@ -103,7 +102,6 @@ GLIBC_2.0 siglongjmp F
GLIBC_2.0 sigwait F
GLIBC_2.0 system F
GLIBC_2.0 tcdrain F
GLIBC_2.0 wait F
GLIBC_2.0 waitpid F
GLIBC_2.0 write F
GLIBC_2.11 pthread_sigqueue F

View File

@ -24,7 +24,6 @@ GLIBC_2.0 __pthread_setspecific F
GLIBC_2.0 __read F
GLIBC_2.0 __send F
GLIBC_2.0 __sigaction F
GLIBC_2.0 __wait F
GLIBC_2.0 __write F
GLIBC_2.0 _pthread_cleanup_pop F
GLIBC_2.0 _pthread_cleanup_pop_restore F
@ -103,7 +102,6 @@ GLIBC_2.0 siglongjmp F
GLIBC_2.0 sigwait F
GLIBC_2.0 system F
GLIBC_2.0 tcdrain F
GLIBC_2.0 wait F
GLIBC_2.0 waitpid F
GLIBC_2.0 write F
GLIBC_2.11 pthread_sigqueue F

View File

@ -44,7 +44,6 @@ GLIBC_2.21 __read F
GLIBC_2.21 __res_state F
GLIBC_2.21 __send F
GLIBC_2.21 __sigaction F
GLIBC_2.21 __wait F
GLIBC_2.21 __write F
GLIBC_2.21 _pthread_cleanup_pop F
GLIBC_2.21 _pthread_cleanup_pop_restore F
@ -205,7 +204,6 @@ GLIBC_2.21 siglongjmp F
GLIBC_2.21 sigwait F
GLIBC_2.21 system F
GLIBC_2.21 tcdrain F
GLIBC_2.21 wait F
GLIBC_2.21 waitpid F
GLIBC_2.21 write F
GLIBC_2.28 call_once F

View File

@ -24,7 +24,6 @@ GLIBC_2.0 __pthread_setspecific F
GLIBC_2.0 __read F
GLIBC_2.0 __send F
GLIBC_2.0 __sigaction F
GLIBC_2.0 __wait F
GLIBC_2.0 __write F
GLIBC_2.0 _pthread_cleanup_pop F
GLIBC_2.0 _pthread_cleanup_pop_restore F
@ -103,7 +102,6 @@ GLIBC_2.0 siglongjmp F
GLIBC_2.0 sigwait F
GLIBC_2.0 system F
GLIBC_2.0 tcdrain F
GLIBC_2.0 wait F
GLIBC_2.0 waitpid F
GLIBC_2.0 write F
GLIBC_2.1 __libc_allocate_rtsig F

View File

@ -67,7 +67,6 @@ GLIBC_2.3 __read F
GLIBC_2.3 __res_state F
GLIBC_2.3 __send F
GLIBC_2.3 __sigaction F
GLIBC_2.3 __wait F
GLIBC_2.3 __write F
GLIBC_2.3 _pthread_cleanup_pop F
GLIBC_2.3 _pthread_cleanup_pop_restore F
@ -201,7 +200,6 @@ GLIBC_2.3 siglongjmp F
GLIBC_2.3 sigwait F
GLIBC_2.3 system F
GLIBC_2.3 tcdrain F
GLIBC_2.3 wait F
GLIBC_2.3 waitpid F
GLIBC_2.3 write F
GLIBC_2.3.2 pthread_cond_broadcast F

View File

@ -44,7 +44,6 @@ GLIBC_2.17 __read F
GLIBC_2.17 __res_state F
GLIBC_2.17 __send F
GLIBC_2.17 __sigaction F
GLIBC_2.17 __wait F
GLIBC_2.17 __write F
GLIBC_2.17 _pthread_cleanup_pop F
GLIBC_2.17 _pthread_cleanup_pop_restore F
@ -203,7 +202,6 @@ GLIBC_2.17 siglongjmp F
GLIBC_2.17 sigwait F
GLIBC_2.17 system F
GLIBC_2.17 tcdrain F
GLIBC_2.17 wait F
GLIBC_2.17 waitpid F
GLIBC_2.17 write F
GLIBC_2.18 pthread_getattr_default_np F

View File

@ -43,7 +43,6 @@ GLIBC_2.27 __read F
GLIBC_2.27 __res_state F
GLIBC_2.27 __send F
GLIBC_2.27 __sigaction F
GLIBC_2.27 __wait F
GLIBC_2.27 __write F
GLIBC_2.27 _pthread_cleanup_pop F
GLIBC_2.27 _pthread_cleanup_pop_restore F
@ -200,7 +199,6 @@ GLIBC_2.27 sendto F
GLIBC_2.27 sigaction F
GLIBC_2.27 sigwait F
GLIBC_2.27 tcdrain F
GLIBC_2.27 wait F
GLIBC_2.27 waitpid F
GLIBC_2.27 write F
GLIBC_2.28 call_once F

View File

@ -24,7 +24,6 @@ GLIBC_2.0 __pthread_setspecific F
GLIBC_2.0 __read F
GLIBC_2.0 __send F
GLIBC_2.0 __sigaction F
GLIBC_2.0 __wait F
GLIBC_2.0 __write F
GLIBC_2.0 _pthread_cleanup_pop F
GLIBC_2.0 _pthread_cleanup_pop_restore F
@ -103,7 +102,6 @@ GLIBC_2.0 siglongjmp F
GLIBC_2.0 sigwait F
GLIBC_2.0 system F
GLIBC_2.0 tcdrain F
GLIBC_2.0 wait F
GLIBC_2.0 waitpid F
GLIBC_2.0 write F
GLIBC_2.1 __libc_allocate_rtsig F

View File

@ -48,7 +48,6 @@ GLIBC_2.2 __read F
GLIBC_2.2 __res_state F
GLIBC_2.2 __send F
GLIBC_2.2 __sigaction F
GLIBC_2.2 __wait F
GLIBC_2.2 __write F
GLIBC_2.2 _pthread_cleanup_pop F
GLIBC_2.2 _pthread_cleanup_pop_restore F
@ -182,7 +181,6 @@ GLIBC_2.2 siglongjmp F
GLIBC_2.2 sigwait F
GLIBC_2.2 system F
GLIBC_2.2 tcdrain F
GLIBC_2.2 wait F
GLIBC_2.2 waitpid F
GLIBC_2.2 write F
GLIBC_2.2.3 pthread_getattr_np F

View File

@ -46,7 +46,6 @@ GLIBC_2.2 __read F
GLIBC_2.2 __res_state F
GLIBC_2.2 __send F
GLIBC_2.2 __sigaction F
GLIBC_2.2 __wait F
GLIBC_2.2 __write F
GLIBC_2.2 _pthread_cleanup_pop F
GLIBC_2.2 _pthread_cleanup_pop_restore F
@ -180,7 +179,6 @@ GLIBC_2.2 siglongjmp F
GLIBC_2.2 sigwait F
GLIBC_2.2 system F
GLIBC_2.2 tcdrain F
GLIBC_2.2 wait F
GLIBC_2.2 waitpid F
GLIBC_2.2 write F
GLIBC_2.2.3 pthread_getattr_np F

View File

@ -46,7 +46,6 @@ GLIBC_2.2 __read F
GLIBC_2.2 __res_state F
GLIBC_2.2 __send F
GLIBC_2.2 __sigaction F
GLIBC_2.2 __wait F
GLIBC_2.2 __write F
GLIBC_2.2 _pthread_cleanup_pop F
GLIBC_2.2 _pthread_cleanup_pop_restore F
@ -180,7 +179,6 @@ GLIBC_2.2 siglongjmp F
GLIBC_2.2 sigwait F
GLIBC_2.2 system F
GLIBC_2.2 tcdrain F
GLIBC_2.2 wait F
GLIBC_2.2 waitpid F
GLIBC_2.2 write F
GLIBC_2.2.3 pthread_getattr_np F

View File

@ -24,7 +24,6 @@ GLIBC_2.0 __pthread_setspecific F
GLIBC_2.0 __read F
GLIBC_2.0 __send F
GLIBC_2.0 __sigaction F
GLIBC_2.0 __wait F
GLIBC_2.0 __write F
GLIBC_2.0 _pthread_cleanup_pop F
GLIBC_2.0 _pthread_cleanup_pop_restore F
@ -103,7 +102,6 @@ GLIBC_2.0 siglongjmp F
GLIBC_2.0 sigwait F
GLIBC_2.0 system F
GLIBC_2.0 tcdrain F
GLIBC_2.0 wait F
GLIBC_2.0 waitpid F
GLIBC_2.0 write F
GLIBC_2.1 __libc_allocate_rtsig F

View File

@ -46,7 +46,6 @@ GLIBC_2.2 __read F
GLIBC_2.2 __res_state F
GLIBC_2.2 __send F
GLIBC_2.2 __sigaction F
GLIBC_2.2 __wait F
GLIBC_2.2 __write F
GLIBC_2.2 _pthread_cleanup_pop F
GLIBC_2.2 _pthread_cleanup_pop_restore F
@ -180,7 +179,6 @@ GLIBC_2.2 siglongjmp F
GLIBC_2.2 sigwait F
GLIBC_2.2 system F
GLIBC_2.2 tcdrain F
GLIBC_2.2 wait F
GLIBC_2.2 waitpid F
GLIBC_2.2 write F
GLIBC_2.2.3 pthread_getattr_np F

View File

@ -46,7 +46,6 @@ GLIBC_2.2.5 __read F
GLIBC_2.2.5 __res_state F
GLIBC_2.2.5 __send F
GLIBC_2.2.5 __sigaction F
GLIBC_2.2.5 __wait F
GLIBC_2.2.5 __write F
GLIBC_2.2.5 _pthread_cleanup_pop F
GLIBC_2.2.5 _pthread_cleanup_pop_restore F
@ -181,7 +180,6 @@ GLIBC_2.2.5 siglongjmp F
GLIBC_2.2.5 sigwait F
GLIBC_2.2.5 system F
GLIBC_2.2.5 tcdrain F
GLIBC_2.2.5 wait F
GLIBC_2.2.5 waitpid F
GLIBC_2.2.5 write F
GLIBC_2.2.6 __libpthread_version_placeholder F

View File

@ -44,7 +44,6 @@ GLIBC_2.16 __read F
GLIBC_2.16 __res_state F
GLIBC_2.16 __send F
GLIBC_2.16 __sigaction F
GLIBC_2.16 __wait F
GLIBC_2.16 __write F
GLIBC_2.16 _pthread_cleanup_pop F
GLIBC_2.16 _pthread_cleanup_pop_restore F
@ -203,7 +202,6 @@ GLIBC_2.16 siglongjmp F
GLIBC_2.16 sigwait F
GLIBC_2.16 system F
GLIBC_2.16 tcdrain F
GLIBC_2.16 wait F
GLIBC_2.16 waitpid F
GLIBC_2.16 write F
GLIBC_2.18 pthread_getattr_default_np F