diff options
| author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-03-12 20:54:13 -0300 |
|---|---|---|
| committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-03-26 13:37:14 -0300 |
| commit | 40873cdd38533a00f3d4f67b85fd5c0a07d7952e (patch) | |
| tree | ba74a7aecc2b781e7319682fa01894c8a9da3026 | |
| parent | c5c3588475eece698f965c4066c2e8e425027320 (diff) | |
| download | glibc-40873cdd38533a00f3d4f67b85fd5c0a07d7952e.tar.xz glibc-40873cdd38533a00f3d4f67b85fd5c0a07d7952e.zip | |
nptl: Remove open from libpthread
The libc version is identical and built with same flags. The libc
version is set as the default version.
Checked on x86_64-linux-gnu.
40 files changed, 15 insertions, 127 deletions
diff --git a/nptl/Makefile b/nptl/Makefile index 6a38dc5022..6ebba19b96 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -81,7 +81,6 @@ static-only-routines = pthread_atfork # We need to provide certain routines for compatibility with existing # binaries. pthread-compat-wrappers = \ - open open64 \ pread pread64 pwrite pwrite64 \ msgrcv msgsnd \ sigsuspend \ @@ -288,8 +287,6 @@ CFLAGS-pwrite64.c += -fexceptions -fasynchronous-unwind-tables CFLAGS-sigwait.c += -fexceptions -fasynchronous-unwind-tables CFLAGS-msgrcv.c += -fexceptions -fasynchronous-unwind-tables CFLAGS-msgsnd.c += -fexceptions -fasynchronous-unwind-tables -CFLAGS-open.c += -fexceptions -fasynchronous-unwind-tables -CFLAGS-open64.c += -fexceptions -fasynchronous-unwind-tables CFLAGS-sigsuspend.c += -fexceptions -fasynchronous-unwind-tables CFLAGS-fdatasync.c += -fexceptions -fasynchronous-unwind-tables diff --git a/nptl/Versions b/nptl/Versions index 7118403b35..b16871d807 100644 --- a/nptl/Versions +++ b/nptl/Versions @@ -105,7 +105,6 @@ libpthread { _IO_funlockfile; __errno_location; __h_errno_location; - __open; __pthread_atfork; __pthread_getspecific; __pthread_key_create; @@ -129,7 +128,6 @@ libpthread { ftrylockfile; funlockfile; longjmp; - open; pthread_atfork; pthread_cancel; pthread_cond_broadcast; @@ -218,7 +216,6 @@ libpthread { } GLIBC_2.2 { - __open64; __pread64; __pthread_rwlock_destroy; __pthread_rwlock_init; @@ -229,7 +226,6 @@ libpthread { __pthread_rwlock_wrlock; __pwrite64; __res_state; - open64; pread64; pread; pthread_attr_getstack; diff --git a/sysdeps/pthread/sem_open.c b/sysdeps/pthread/sem_open.c index 9755be70ee..0265abc45b 100644 --- a/sysdeps/pthread/sem_open.c +++ b/sysdeps/pthread/sem_open.c @@ -59,8 +59,8 @@ sem_open (const char *name, int oflag, ...) if ((oflag & O_CREAT) == 0 || (oflag & O_EXCL) == 0) { try_again: - fd = __libc_open (dirname.name, - (oflag & ~(O_CREAT|O_ACCMODE)) | O_NOFOLLOW | O_RDWR); + fd = open (dirname.name, + (oflag & ~(O_CREAT|O_ACCMODE)) | O_NOFOLLOW | O_RDWR); if (fd == -1) { @@ -127,7 +127,7 @@ sem_open (const char *name, int oflag, ...) } /* Open the file. Make sure we do not overwrite anything. */ - fd = __libc_open (tmpfname, O_RDWR | O_CREAT | O_EXCL, mode); + fd = open (tmpfname, O_RDWR | O_CREAT | O_EXCL, mode); if (fd == -1) { if (errno == EEXIST) diff --git a/sysdeps/unix/sysv/linux/aarch64/libpthread.abilist b/sysdeps/unix/sysv/linux/aarch64/libpthread.abilist index b7e002e258..23aa949791 100644 --- a/sysdeps/unix/sysv/linux/aarch64/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/aarch64/libpthread.abilist @@ -6,8 +6,6 @@ GLIBC_2.17 __h_errno_location F GLIBC_2.17 __libc_allocate_rtsig F GLIBC_2.17 __libc_current_sigrtmax F GLIBC_2.17 __libc_current_sigrtmin F -GLIBC_2.17 __open F -GLIBC_2.17 __open64 F GLIBC_2.17 __pread64 F GLIBC_2.17 __pthread_cleanup_routine F GLIBC_2.17 __pthread_getspecific F @@ -45,8 +43,6 @@ GLIBC_2.17 flockfile F GLIBC_2.17 ftrylockfile F GLIBC_2.17 funlockfile F GLIBC_2.17 longjmp F -GLIBC_2.17 open F -GLIBC_2.17 open64 F GLIBC_2.17 pread F GLIBC_2.17 pread64 F GLIBC_2.17 pthread_attr_getaffinity_np F diff --git a/sysdeps/unix/sysv/linux/alpha/libc.abilist b/sysdeps/unix/sysv/linux/alpha/libc.abilist index ec7a5a47f2..ef49b96bf8 100644 --- a/sysdeps/unix/sysv/linux/alpha/libc.abilist +++ b/sysdeps/unix/sysv/linux/alpha/libc.abilist @@ -1906,6 +1906,7 @@ GLIBC_2.2 mkstemp64 F GLIBC_2.2 moncontrol F GLIBC_2.2 msgctl F GLIBC_2.2 ngettext F +GLIBC_2.2 open64 F GLIBC_2.2 posix_fadvise F GLIBC_2.2 posix_fadvise64 F GLIBC_2.2 posix_fallocate F diff --git a/sysdeps/unix/sysv/linux/alpha/libpthread.abilist b/sysdeps/unix/sysv/linux/alpha/libpthread.abilist index 225123604d..4d908d4527 100644 --- a/sysdeps/unix/sysv/linux/alpha/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/alpha/libpthread.abilist @@ -3,7 +3,6 @@ GLIBC_2.0 _IO_ftrylockfile F GLIBC_2.0 _IO_funlockfile F GLIBC_2.0 __errno_location F GLIBC_2.0 __h_errno_location F -GLIBC_2.0 __open F GLIBC_2.0 __pthread_getspecific F GLIBC_2.0 __pthread_key_create F GLIBC_2.0 __pthread_mutex_destroy F @@ -25,7 +24,6 @@ GLIBC_2.0 flockfile F GLIBC_2.0 ftrylockfile F GLIBC_2.0 funlockfile F GLIBC_2.0 longjmp F -GLIBC_2.0 open F GLIBC_2.0 pthread_atfork F GLIBC_2.0 pthread_cancel F GLIBC_2.0 pthread_cond_broadcast F @@ -109,7 +107,6 @@ GLIBC_2.12 pthread_mutexattr_setrobust F GLIBC_2.12 pthread_setname_np F GLIBC_2.18 pthread_getattr_default_np F GLIBC_2.18 pthread_setattr_default_np F -GLIBC_2.2 __open64 F GLIBC_2.2 __pread64 F GLIBC_2.2 __pthread_rwlock_destroy F GLIBC_2.2 __pthread_rwlock_init F @@ -120,7 +117,6 @@ GLIBC_2.2 __pthread_rwlock_unlock F GLIBC_2.2 __pthread_rwlock_wrlock F GLIBC_2.2 __pwrite64 F GLIBC_2.2 __res_state F -GLIBC_2.2 open64 F GLIBC_2.2 pread F GLIBC_2.2 pread64 F GLIBC_2.2 pthread_attr_getstack F diff --git a/sysdeps/unix/sysv/linux/arc/libpthread.abilist b/sysdeps/unix/sysv/linux/arc/libpthread.abilist index dbb502fd65..f25fca45c5 100644 --- a/sysdeps/unix/sysv/linux/arc/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/arc/libpthread.abilist @@ -6,8 +6,6 @@ GLIBC_2.32 __h_errno_location F GLIBC_2.32 __libc_allocate_rtsig F GLIBC_2.32 __libc_current_sigrtmax F GLIBC_2.32 __libc_current_sigrtmin F -GLIBC_2.32 __open F -GLIBC_2.32 __open64 F GLIBC_2.32 __pread64 F GLIBC_2.32 __pthread_cleanup_routine F GLIBC_2.32 __pthread_getspecific F @@ -57,8 +55,6 @@ GLIBC_2.32 mtx_lock F GLIBC_2.32 mtx_timedlock F GLIBC_2.32 mtx_trylock F GLIBC_2.32 mtx_unlock F -GLIBC_2.32 open F -GLIBC_2.32 open64 F GLIBC_2.32 pread F GLIBC_2.32 pread64 F GLIBC_2.32 pthread_attr_getaffinity_np F diff --git a/sysdeps/unix/sysv/linux/arm/be/libpthread.abilist b/sysdeps/unix/sysv/linux/arm/be/libpthread.abilist index 24a6a38920..8e60d60b21 100644 --- a/sysdeps/unix/sysv/linux/arm/be/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/arm/be/libpthread.abilist @@ -41,8 +41,6 @@ GLIBC_2.4 __h_errno_location F GLIBC_2.4 __libc_allocate_rtsig F GLIBC_2.4 __libc_current_sigrtmax F GLIBC_2.4 __libc_current_sigrtmin F -GLIBC_2.4 __open F -GLIBC_2.4 __open64 F GLIBC_2.4 __pread64 F GLIBC_2.4 __pthread_cleanup_routine F GLIBC_2.4 __pthread_getspecific F @@ -80,8 +78,6 @@ GLIBC_2.4 flockfile F GLIBC_2.4 ftrylockfile F GLIBC_2.4 funlockfile F GLIBC_2.4 longjmp F -GLIBC_2.4 open F -GLIBC_2.4 open64 F GLIBC_2.4 pread F GLIBC_2.4 pread64 F GLIBC_2.4 pthread_attr_getaffinity_np F diff --git a/sysdeps/unix/sysv/linux/arm/le/libpthread.abilist b/sysdeps/unix/sysv/linux/arm/le/libpthread.abilist index 24a6a38920..8e60d60b21 100644 --- a/sysdeps/unix/sysv/linux/arm/le/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/arm/le/libpthread.abilist @@ -41,8 +41,6 @@ GLIBC_2.4 __h_errno_location F GLIBC_2.4 __libc_allocate_rtsig F GLIBC_2.4 __libc_current_sigrtmax F GLIBC_2.4 __libc_current_sigrtmin F -GLIBC_2.4 __open F -GLIBC_2.4 __open64 F GLIBC_2.4 __pread64 F GLIBC_2.4 __pthread_cleanup_routine F GLIBC_2.4 __pthread_getspecific F @@ -80,8 +78,6 @@ GLIBC_2.4 flockfile F GLIBC_2.4 ftrylockfile F GLIBC_2.4 funlockfile F GLIBC_2.4 longjmp F -GLIBC_2.4 open F -GLIBC_2.4 open64 F GLIBC_2.4 pread F GLIBC_2.4 pread64 F GLIBC_2.4 pthread_attr_getaffinity_np F diff --git a/sysdeps/unix/sysv/linux/csky/libpthread.abilist b/sysdeps/unix/sysv/linux/csky/libpthread.abilist index be4507e5ac..bac436bd00 100644 --- a/sysdeps/unix/sysv/linux/csky/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/csky/libpthread.abilist @@ -6,8 +6,6 @@ GLIBC_2.29 __h_errno_location F GLIBC_2.29 __libc_allocate_rtsig F GLIBC_2.29 __libc_current_sigrtmax F GLIBC_2.29 __libc_current_sigrtmin F -GLIBC_2.29 __open F -GLIBC_2.29 __open64 F GLIBC_2.29 __pread64 F GLIBC_2.29 __pthread_cleanup_routine F GLIBC_2.29 __pthread_getspecific F @@ -57,8 +55,6 @@ GLIBC_2.29 mtx_lock F GLIBC_2.29 mtx_timedlock F GLIBC_2.29 mtx_trylock F GLIBC_2.29 mtx_unlock F -GLIBC_2.29 open F -GLIBC_2.29 open64 F GLIBC_2.29 pread F GLIBC_2.29 pread64 F GLIBC_2.29 pthread_attr_getaffinity_np F diff --git a/sysdeps/unix/sysv/linux/hppa/libpthread.abilist b/sysdeps/unix/sysv/linux/hppa/libpthread.abilist index d20fa17c94..ed1cd3a6e3 100644 --- a/sysdeps/unix/sysv/linux/hppa/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/hppa/libpthread.abilist @@ -14,8 +14,6 @@ GLIBC_2.2 __h_errno_location F GLIBC_2.2 __libc_allocate_rtsig F GLIBC_2.2 __libc_current_sigrtmax F GLIBC_2.2 __libc_current_sigrtmin F -GLIBC_2.2 __open F -GLIBC_2.2 __open64 F GLIBC_2.2 __pread64 F GLIBC_2.2 __pthread_getspecific F GLIBC_2.2 __pthread_key_create F @@ -47,8 +45,6 @@ GLIBC_2.2 flockfile F GLIBC_2.2 ftrylockfile F GLIBC_2.2 funlockfile F GLIBC_2.2 longjmp F -GLIBC_2.2 open F -GLIBC_2.2 open64 F GLIBC_2.2 pread F GLIBC_2.2 pread64 F GLIBC_2.2 pthread_atfork F diff --git a/sysdeps/unix/sysv/linux/i386/libc.abilist b/sysdeps/unix/sysv/linux/i386/libc.abilist index 4249ffd53c..759e488238 100644 --- a/sysdeps/unix/sysv/linux/i386/libc.abilist +++ b/sysdeps/unix/sysv/linux/i386/libc.abilist @@ -1915,6 +1915,7 @@ GLIBC_2.2 mkstemp64 F GLIBC_2.2 moncontrol F GLIBC_2.2 msgctl F GLIBC_2.2 ngettext F +GLIBC_2.2 open64 F GLIBC_2.2 posix_fadvise F GLIBC_2.2 posix_fadvise64 F GLIBC_2.2 posix_fallocate F diff --git a/sysdeps/unix/sysv/linux/i386/libpthread.abilist b/sysdeps/unix/sysv/linux/i386/libpthread.abilist index a3f1f91ed6..8866f2f049 100644 --- a/sysdeps/unix/sysv/linux/i386/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/i386/libpthread.abilist @@ -3,7 +3,6 @@ GLIBC_2.0 _IO_ftrylockfile F GLIBC_2.0 _IO_funlockfile F GLIBC_2.0 __errno_location F GLIBC_2.0 __h_errno_location F -GLIBC_2.0 __open F GLIBC_2.0 __pthread_getspecific F GLIBC_2.0 __pthread_key_create F GLIBC_2.0 __pthread_mutex_destroy F @@ -25,7 +24,6 @@ GLIBC_2.0 flockfile F GLIBC_2.0 ftrylockfile F GLIBC_2.0 funlockfile F GLIBC_2.0 longjmp F -GLIBC_2.0 open F GLIBC_2.0 pthread_atfork F GLIBC_2.0 pthread_cancel F GLIBC_2.0 pthread_cond_broadcast F @@ -109,7 +107,6 @@ GLIBC_2.12 pthread_mutexattr_setrobust F GLIBC_2.12 pthread_setname_np F GLIBC_2.18 pthread_getattr_default_np F GLIBC_2.18 pthread_setattr_default_np F -GLIBC_2.2 __open64 F GLIBC_2.2 __pread64 F GLIBC_2.2 __pthread_rwlock_destroy F GLIBC_2.2 __pthread_rwlock_init F @@ -120,7 +117,6 @@ GLIBC_2.2 __pthread_rwlock_unlock F GLIBC_2.2 __pthread_rwlock_wrlock F GLIBC_2.2 __pwrite64 F GLIBC_2.2 __res_state F -GLIBC_2.2 open64 F GLIBC_2.2 pread F GLIBC_2.2 pread64 F GLIBC_2.2 pthread_attr_getstack F diff --git a/sysdeps/unix/sysv/linux/ia64/libpthread.abilist b/sysdeps/unix/sysv/linux/ia64/libpthread.abilist index c7e502460a..2d96fd1a41 100644 --- a/sysdeps/unix/sysv/linux/ia64/libpthread.abilist +++ b/sysdeps/unix/sysv/linux/ia64/libpthread.abilist @@ -14,8 +14,6 @@ GLIBC_2.2 __h_errno_location F GLIBC_2.2 __libc_allocate_rtsig F GLIBC_2.2 __libc_current_sigrtmax F GLIBC_2.2 __libc_current_sigrtmin F -GLIBC_2.2 __open F -GLIBC_2.2 __open64 F GLIBC_2.2 __pread64 F GLIBC_2.2 __pthread_getspecific F GLIBC_2.2 __pthread_key_create F @@ -47,8 +45,6 @@ GLIBC_2.2 flockfile F GLIBC_2.2 ftrylockfile F GLIBC_2.2 funlockfile F GLIBC_2.2 longjmp F -GLIBC_2.2 open F -GLIBC_2.2 open64 F GLIBC_2.2 pread F GLIBC_2.2 pread64 F GLIBC_2.2 pthread_atfork F diff --git a/sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist b/sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist in |
