1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00

nptl: Remove write from libpthread

The libc version is identical and built with same flags.

Checked on x86_64-linux-gnu.
This commit is contained in:
Adhemerval Zanella
2021-03-12 16:13:26 -03:00
parent 6cf1911122
commit 173e0ab081
34 changed files with 4 additions and 65 deletions

View File

@@ -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),