diff options
| author | Andreas Jaeger <aj@suse.de> | 2004-11-24 04:36:11 +0000 |
|---|---|---|
| committer | Andreas Jaeger <aj@suse.de> | 2004-11-24 04:36:11 +0000 |
| commit | b8ddf7a11ff27cc513fa12841fcbbfcba6d47426 (patch) | |
| tree | 46081c63c67687ebc810937da96754134a8d8867 /sysdeps/unix/sysv/linux/mips/pwrite.c | |
| parent | 56eb7d3add62e27e798c4610856cd9fffe4b2d0e (diff) | |
| download | glibc-b8ddf7a11ff27cc513fa12841fcbbfcba6d47426.tar.xz glibc-b8ddf7a11ff27cc513fa12841fcbbfcba6d47426.zip | |
Include <sgidefs.h>. Use _ABIO32, _ABIN32 and _ABI64 for ABI selection
throughout.
Diffstat (limited to 'sysdeps/unix/sysv/linux/mips/pwrite.c')
| -rw-r--r-- | sysdeps/unix/sysv/linux/mips/pwrite.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/mips/pwrite.c b/sysdeps/unix/sysv/linux/mips/pwrite.c index d0e3fe538e..130515af6d 100644 --- a/sysdeps/unix/sysv/linux/mips/pwrite.c +++ b/sysdeps/unix/sysv/linux/mips/pwrite.c @@ -20,6 +20,7 @@ #include <assert.h> #include <errno.h> +#include <sgidefs.h> #include <unistd.h> #include <endian.h> @@ -55,14 +56,14 @@ __libc_pwrite (fd, buf, count, offset) { ssize_t result; -#if _MIPS_SIM == _MIPS_SIM_ABI64 +#if _MIPS_SIM != _ABI64 assert (sizeof (offset) == 4); #endif if (SINGLE_THREAD_P) { /* First try the syscall. */ -#if _MIPS_SIM == _MIPS_SIM_NABI32 || _MIPS_SIM == _MIPS_SIM_ABI64 +#if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64 result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count, offset); #else @@ -80,7 +81,7 @@ __libc_pwrite (fd, buf, count, offset) int oldtype = LIBC_CANCEL_ASYNC (); /* First try the syscall. */ -#if _MIPS_SIM == _MIPS_SIM_NABI32 || _MIPS_SIM == _MIPS_SIM_ABI64 +#if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64 result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count, offset); #else result = INLINE_SYSCALL (pwrite, 6, fd, CHECK_N (buf, count), count, 0, |
