summaryrefslogtreecommitdiff
path: root/sysdeps/pthread/sem_open.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-03-12 20:54:13 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-03-26 13:37:14 -0300
commit40873cdd38533a00f3d4f67b85fd5c0a07d7952e (patch)
treeba74a7aecc2b781e7319682fa01894c8a9da3026 /sysdeps/pthread/sem_open.c
parentc5c3588475eece698f965c4066c2e8e425027320 (diff)
downloadglibc-40873cdd38533a00f3d4f67b85fd5c0a07d7952e.tar.gz
nptl: Remove open from libpthread
The libc version is identical and built with same flags. The libc version is set as the default version. Checked on x86_64-linux-gnu.
Diffstat (limited to 'sysdeps/pthread/sem_open.c')
-rw-r--r--sysdeps/pthread/sem_open.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/pthread/sem_open.c b/sysdeps/pthread/sem_open.c
index 9755be70ee..0265abc45b 100644
--- a/sysdeps/pthread/sem_open.c
+++ b/sysdeps/pthread/sem_open.c
@@ -59,8 +59,8 @@ sem_open (const char *name, int oflag, ...)
if ((oflag & O_CREAT) == 0 || (oflag & O_EXCL) == 0)
{
try_again:
- fd = __libc_open (dirname.name,
- (oflag & ~(O_CREAT|O_ACCMODE)) | O_NOFOLLOW | O_RDWR);
+ fd = open (dirname.name,
+ (oflag & ~(O_CREAT|O_ACCMODE)) | O_NOFOLLOW | O_RDWR);
if (fd == -1)
{
@@ -127,7 +127,7 @@ sem_open (const char *name, int oflag, ...)
}
/* Open the file. Make sure we do not overwrite anything. */
- fd = __libc_open (tmpfname, O_RDWR | O_CREAT | O_EXCL, mode);
+ fd = open (tmpfname, O_RDWR | O_CREAT | O_EXCL, mode);
if (fd == -1)
{
if (errno == EEXIST)