about summary refs log tree commit diff
path: root/sysdeps/pthread/sem_open.c
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 /sysdeps/pthread/sem_open.c
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 'sysdeps/pthread/sem_open.c')
-rw-r--r--sysdeps/pthread/sem_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/pthread/sem_open.c b/sysdeps/pthread/sem_open.c
index 028d76a685..62c5908fc9 100644
--- a/sysdeps/pthread/sem_open.c
+++ b/sysdeps/pthread/sem_open.c
@@ -151,7 +151,7 @@ sem_open (const char *name, int oflag, ...)
 	  break;
 	}
 
-      if (TEMP_FAILURE_RETRY (__libc_write (fd, &sem.initsem, sizeof (sem_t)))
+      if (TEMP_FAILURE_RETRY (write (fd, &sem.initsem, sizeof (sem_t)))
 	  == sizeof (sem_t)
 	  /* Map the sem_t structure from the file.  */
 	  && (result = (sem_t *) mmap (NULL, sizeof (sem_t),