1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

nptl: Remove close 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:26:53 -03:00
parent baab50cfb9
commit bdfed2e2cd
33 changed files with 4 additions and 64 deletions

View File

@ -175,7 +175,7 @@ sem_open (const char *name, int oflag, ...)
(void) unlink (tmpfname);
/* Close the file. */
(void) __libc_close (fd);
close (fd);
goto try_again;
}
@ -201,7 +201,7 @@ sem_open (const char *name, int oflag, ...)
{
/* Do not disturb errno. */
int save = errno;
__libc_close (fd);
close (fd);
errno = save;
}