diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/mips/pwrite.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/mips/pwrite.c | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/sysdeps/unix/sysv/linux/mips/pwrite.c b/sysdeps/unix/sysv/linux/mips/pwrite.c index 2c38e04060..f4d71d4ae8 100644 --- a/sysdeps/unix/sysv/linux/mips/pwrite.c +++ b/sysdeps/unix/sysv/linux/mips/pwrite.c @@ -38,35 +38,16 @@ ssize_t __libc_pwrite (int fd, const void *buf, size_t count, off_t offset) { - ssize_t result; - #if _MIPS_SIM != _ABI64 assert (sizeof (offset) == 4); #endif - if (SINGLE_THREAD_P) - { -#if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64 - result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset); -#else - result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0, - __LONG_LONG_PAIR (offset >> 31, offset)); -#endif - return result; - } - - int oldtype = LIBC_CANCEL_ASYNC (); - #if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64 - result = INLINE_SYSCALL (pwrite, 4, fd, buf, count, offset); + return SYSCALL_CANCEL (pwrite, fd, buf, count, offset); #else - result = INLINE_SYSCALL (pwrite, 6, fd, buf, count, 0, - __LONG_LONG_PAIR (offset >> 31, offset)); + return SYSCALL_CANCEL (pwrite, fd, buf, count, 0, + __LONG_LONG_PAIR (offset >> 31, offset)); #endif - - LIBC_CANCEL_RESET (oldtype); - - return result; } strong_alias (__libc_pwrite, __pwrite) |