mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user