patch-2.3.35 linux/include/asm-sparc/resource.h
Next file: linux/include/asm-sparc/sbus.h
Previous file: linux/include/asm-sparc/processor.h
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Mon Dec 20 22:05:52 1999
- Orig file:
v2.3.34/linux/include/asm-sparc/resource.h
- Orig date:
Tue Dec 14 01:27:24 1999
diff -u --recursive --new-file v2.3.34/linux/include/asm-sparc/resource.h linux/include/asm-sparc/resource.h
@@ -1,4 +1,4 @@
-/* $Id: resource.h,v 1.9 1999/08/14 03:52:05 anton Exp $
+/* $Id: resource.h,v 1.11 1999/12/15 17:51:59 jj Exp $
* resource.h: Resource definitions.
*
* Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
@@ -26,18 +26,23 @@
/*
* SuS says limits have to be unsigned.
- * Which makes a ton more sense anyway.
+ * We make this unsigned, but keep the
+ * old value.
*/
-#define RLIM_INFINITY (~0UL)
+#define RLIM_INFINITY 0x7fffffff
#ifdef __KERNEL__
-#define INIT_RLIMITS \
-{ \
- {LONG_MAX, LONG_MAX}, {LONG_MAX, LONG_MAX}, \
- {LONG_MAX, LONG_MAX}, {_STK_LIM, LONG_MAX}, \
- { 0, LONG_MAX}, {LONG_MAX, LONG_MAX}, \
- {INR_OPEN, INR_OPEN}, {0, 0}, \
- {LONG_MAX, LONG_MAX}, {LONG_MAX, LONG_MAX} \
+#define INIT_RLIMITS \
+{ \
+ {RLIM_INFINITY, RLIM_INFINITY}, \
+ {RLIM_INFINITY, RLIM_INFINITY}, \
+ {RLIM_INFINITY, RLIM_INFINITY}, \
+ {_STK_LIM, RLIM_INFINITY}, \
+ { 0, RLIM_INFINITY}, \
+ {RLIM_INFINITY, RLIM_INFINITY}, \
+ {INR_OPEN, INR_OPEN}, {0, 0}, \
+ {RLIM_INFINITY, RLIM_INFINITY}, \
+ {RLIM_INFINITY, RLIM_INFINITY} \
}
#endif /* __KERNEL__ */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)