(RLIM_INFINITY): Adjust for kernel changes.

This commit is contained in:
Ulrich Drepper 1999-11-13 00:35:12 +00:00
parent faac7d0202
commit 1c653c9d8a

View File

@ -1,5 +1,5 @@
/* Bit values & structures for resource limits. Linux version. /* Bit values & structures for resource limits. Linux version.
Copyright (C) 1994, 1996, 1997, 1998 Free Software Foundation, Inc. Copyright (C) 1994, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -106,13 +106,13 @@ enum __rlimit_resource
/* Value to indicate that there is no limit. */ /* Value to indicate that there is no limit. */
#ifndef __USE_FILE_OFFSET64 #ifndef __USE_FILE_OFFSET64
# define RLIM_INFINITY ((long int)(~0UL >> 1)) # define RLIM_INFINITY ((unsigned long int)(~0UL))
#else #else
# define RLIM_INFINITY 0x7fffffffffffffffLL # define RLIM_INFINITY 0xffffffffffffffffuLL
#endif #endif
#ifdef __USE_LARGEFILE64 #ifdef __USE_LARGEFILE64
# define RLIM64_INFINITY 0x7fffffffffffffffLL # define RLIM64_INFINITY 0xffffffffffffffffuLL
#endif #endif
/* We can represent all limits. */ /* We can represent all limits. */