mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
* sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIM_INFINITY,
RLIM64_INFINITY): Define appropriately for N64. Use unsigned types.
This commit is contained in:
parent
d7f9cd89c2
commit
bd34510699
@ -1,3 +1,9 @@
|
||||
2006-06-02 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/mips/bits/resource.h (RLIM_INFINITY,
|
||||
RLIM64_INFINITY): Define appropriately for N64. Use unsigned
|
||||
types.
|
||||
|
||||
2006-06-02 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/mips/kernel_stat.h (struct kernel_stat):
|
||||
|
@ -107,14 +107,22 @@ enum __rlimit_resource
|
||||
};
|
||||
|
||||
/* Value to indicate that there is no limit. */
|
||||
#ifndef __USE_FILE_OFFSET64
|
||||
# define RLIM_INFINITY ((long int)(~0UL >> 1))
|
||||
#if _MIPS_SIM == _ABI64
|
||||
/* The N64 syscall uses this value. */
|
||||
# define RLIM_INFINITY 0xffffffffffffffffUL
|
||||
# ifdef __USE_LARGEFILE64
|
||||
# define RLIM64_INFINITY 0xffffffffffffffffUL
|
||||
# endif
|
||||
#else
|
||||
# define RLIM_INFINITY 0x7fffffffffffffffLL
|
||||
#endif
|
||||
|
||||
#ifdef __USE_LARGEFILE64
|
||||
# define RLIM64_INFINITY 0x7fffffffffffffffLL
|
||||
/* The O32 and N32 syscalls use 0x7fffffff. */
|
||||
# ifndef __USE_FILE_OFFSET64
|
||||
# define RLIM_INFINITY ((long int)(~0UL >> 1))
|
||||
# else
|
||||
# define RLIM_INFINITY 0x7fffffffffffffffULL
|
||||
# endif
|
||||
# ifdef __USE_LARGEFILE64
|
||||
# define RLIM64_INFINITY 0x7fffffffffffffffULL
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* We can represent all limits. */
|
||||
|
Loading…
Reference in New Issue
Block a user