(RLIM_INFINITY): Correct for LFS support.
authordrepper <drepper>
Mon, 22 Dec 1997 20:40:35 +0000 (20:40 +0000)
committerdrepper <drepper>
Mon, 22 Dec 1997 20:40:35 +0000 (20:40 +0000)
(RLIM64_INFINITY) [__USE_LARGEFILE64]: Define.

sysdeps/unix/sysv/linux/bits/resource.h

index f825cba..c649217 100644 (file)
@@ -102,12 +102,20 @@ enum __rlimit_resource
   RLIM_NLIMITS = RLIMIT_NLIMITS,
 #define RLIMIT_NLIMITS RLIMIT_NLIMITS
 #define RLIM_NLIMITS RLIM_NLIMITS
-
-  /* Value to indicate that there is no limit.  */
-  RLIM_INFINITY = (long int)(~0UL >> 1)
-#define RLIM_INFINITY RLIM_INFINITY
 };
 
+/* Value to indicate that there is no limit.  */
+#ifndef __USE_FILE_OFFSET64
+# define RLIM_INFINITY ((long int)(~0UL >> 1))
+#else
+# define RLIM_INFINITY 0x7fffffffffffffffLL
+#endif
+
+#ifdef __USE_LARGEFILE64
+# define RLIM64_INFINITY 0x7fffffffffffffffLL
+#endif
+
+
 /* Type for resource quantity measurement.  */
 #ifndef __USE_FILE_OFFSET64
 typedef __rlim_t rlim_t;