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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user