aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/pthread/sem_open.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-03-12 16:26:53 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-03-18 15:54:24 -0300
commitbdfed2e2cd166536d03a247925f6df3800ec4acc (patch)
tree04757597d5fcf1140e168e27ac30eecb7381d35c /sysdeps/pthread/sem_open.c
parentbaab50cfb9b7e31e18f1ecfb463c1908454ce81d (diff)
downloadglibc-bdfed2e2cd166536d03a247925f6df3800ec4acc.tar
glibc-bdfed2e2cd166536d03a247925f6df3800ec4acc.tar.gz
glibc-bdfed2e2cd166536d03a247925f6df3800ec4acc.tar.bz2
glibc-bdfed2e2cd166536d03a247925f6df3800ec4acc.zip
nptl: Remove close 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/pthread/sem_open.c b/sysdeps/pthread/sem_open.c
index 62c5908fc9..9755be70ee 100644
--- a/sysdeps/pthread/sem_open.c
+++ b/sysdeps/pthread/sem_open.c
@@ -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;
}