]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(RLIM_INFINITY): Adjust for kernel changes.
authorUlrich Drepper <drepper@redhat.com>
Sat, 13 Nov 1999 00:35:12 +0000 (00:35 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 13 Nov 1999 00:35:12 +0000 (00:35 +0000)
sysdeps/unix/sysv/linux/bits/resource.h

index 98e872fb7d2250d1bc82e2f4ca2b57bebd8f3349..fcff60589240ab3641c99f9a59c050753697e1cc 100644 (file)
@@ -1,5 +1,5 @@
 /* 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.
 
    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.  */
 #ifndef __USE_FILE_OFFSET64
-# define RLIM_INFINITY ((long int)(~0UL >> 1))
+# define RLIM_INFINITY ((unsigned long int)(~0UL))
 #else
-# define RLIM_INFINITY 0x7fffffffffffffffLL
+# define RLIM_INFINITY 0xffffffffffffffffuLL
 #endif
 
 #ifdef __USE_LARGEFILE64
-# define RLIM64_INFINITY 0x7fffffffffffffffLL
+# define RLIM64_INFINITY 0xffffffffffffffffuLL
 #endif
 
 /* We can represent all limits.  */