about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-03-12 16:13:26 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-03-18 08:20:43 -0300
commit173e0ab081b5bb38455785fe19ab4aa3834c1c8a (patch)
tree416917bb94c94ed1cd5e2d9bbaf24a592b34184c /nptl
parent6cf19111222800a9e98f30392b6649c42b315829 (diff)
downloadglibc-173e0ab081b5bb38455785fe19ab4aa3834c1c8a.tar.gz
glibc-173e0ab081b5bb38455785fe19ab4aa3834c1c8a.tar.xz
glibc-173e0ab081b5bb38455785fe19ab4aa3834c1c8a.zip
nptl: Remove write from libpthread
The libc version is identical and built with same flags.

Checked on x86_64-linux-gnu.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/Makefile3
-rw-r--r--nptl/Versions2
-rw-r--r--nptl/version.c2
3 files changed, 2 insertions, 5 deletions
diff --git a/nptl/Makefile b/nptl/Makefile
index b51deff6a3..d692190611 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -81,7 +81,7 @@ static-only-routines = pthread_atfork
 # We need to provide certain routines for compatibility with existing
 # binaries.
 pthread-compat-wrappers = \
-		      write read close accept \
+		      read close accept \
 		      connect recv recvfrom send \
 		      sendto fsync lseek lseek64 \
 		      msync open open64 pause \
@@ -309,7 +309,6 @@ CFLAGS-recvmsg.c += -fexceptions -fasynchronous-unwind-tables
 CFLAGS-sendmsg.c += -fexceptions -fasynchronous-unwind-tables
 CFLAGS-close.c += -fexceptions -fasynchronous-unwind-tables
 CFLAGS-read.c += -fexceptions -fasynchronous-unwind-tables
-CFLAGS-write.c += -fexceptions -fasynchronous-unwind-tables
 CFLAGS-sigsuspend.c += -fexceptions -fasynchronous-unwind-tables
 CFLAGS-msync.c += -fexceptions -fasynchronous-unwind-tables
 CFLAGS-fdatasync.c += -fexceptions -fasynchronous-unwind-tables
diff --git a/nptl/Versions b/nptl/Versions
index 039cff38aa..3e61d06908 100644
--- a/nptl/Versions
+++ b/nptl/Versions
@@ -126,7 +126,6 @@ libpthread {
     __read;
     __send;
     __sigaction;
-    __write;
     _exit;
     _pthread_cleanup_pop;
     _pthread_cleanup_pop_restore;
@@ -194,7 +193,6 @@ libpthread {
     sigwait;
     system;
     tcdrain;
-    write;
   }
 
   GLIBC_2.1 {
diff --git a/nptl/version.c b/nptl/version.c
index 2d37d76d6a..25e3a0c872 100644
--- a/nptl/version.c
+++ b/nptl/version.c
@@ -36,6 +36,6 @@ __attribute__ ((noreturn))
 void
 __nptl_main (void)
 {
-  __libc_write (STDOUT_FILENO, banner, sizeof banner - 1);
+  write (STDOUT_FILENO, banner, sizeof banner - 1);
   _exit (0);
 }