diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-03-12 16:13:26 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-03-18 08:20:43 -0300 |
commit | 173e0ab081b5bb38455785fe19ab4aa3834c1c8a (patch) | |
tree | 416917bb94c94ed1cd5e2d9bbaf24a592b34184c /sysdeps/pthread/sem_open.c | |
parent | 6cf19111222800a9e98f30392b6649c42b315829 (diff) | |
download | glibc-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.c | 2 |
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), |