diff options
Diffstat (limited to 'sysdeps/posix/open64.c')
-rw-r--r-- | sysdeps/posix/open64.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sysdeps/posix/open64.c b/sysdeps/posix/open64.c index b0bfd39abc..c84f4fa85a 100644 --- a/sysdeps/posix/open64.c +++ b/sysdeps/posix/open64.c @@ -34,16 +34,8 @@ __libc_open64 (const char *file, int oflag, ...) va_end (arg); } - if (SINGLE_THREAD_P) - return __libc_open (file, oflag | O_LARGEFILE, mode); - - int oldtype = LIBC_CANCEL_ASYNC (); - - int result = __libc_open (file, oflag | O_LARGEFILE, mode); - - LIBC_CANCEL_RESET (oldtype); - - return result; + /* __libc_open should be a cancellation point. */ + return __libc_open (file, oflag | O_LARGEFILE, mode); } weak_alias (__libc_open64, __open64) libc_hidden_weak (__open64) |