There's no sense playing compatibility games with 2^63.
r~
diff -rup linux/include/asm-alpha/resource.h 2.3.32-2/include/asm-alpha/resource.h
--- linux/include/asm-alpha/resource.h Thu Jul 29 13:37:22 1999
+++ 2.3.32-2/include/asm-alpha/resource.h Wed Dec 8 22:39:39 1999
@@ -18,6 +18,13 @@
#define RLIM_NLIMITS 10
+/*
+ * SuS says limits have to be unsigned. Fine, it's unsigned, but
+ * we retain the old value for compatibility, especially with DU.
+ * When you run into the 2^63 barrier, you call me.
+ */
+#define RLIM_INFINITY 0x7ffffffffffffffful
+
#ifdef __KERNEL__
#define INIT_RLIMITS \
diff -rup linux/include/asm-arm/resource.h 2.3.32-2/include/asm-arm/resource.h
--- linux/include/asm-arm/resource.h Mon Aug 2 10:19:52 1999
+++ 2.3.32-2/include/asm-arm/resource.h Wed Dec 8 22:33:55 1999
@@ -18,6 +18,12 @@
#define RLIM_NLIMITS 10
+/*
+ * SuS says limits have to be unsigned.
+ * Which makes a ton more sense anyway.
+ */
+#define RLIM_INFINITY (~0UL)
+
#ifdef __KERNEL__
#define INIT_RLIMITS \
diff -rup linux/include/asm-i386/resource.h 2.3.32-2/include/asm-i386/resource.h
--- linux/include/asm-i386/resource.h Wed Dec 8 22:21:56 1999
+++ 2.3.32-2/include/asm-i386/resource.h Wed Dec 8 22:39:45 1999
@@ -18,6 +18,12 @@
#define RLIM_NLIMITS 10
+/*
+ * SuS says limits have to be unsigned.
+ * Which makes a ton more sense anyway.
+ */
+#define RLIM_INFINITY (~0UL)
+
#ifdef __KERNEL__
#define INIT_RLIMITS \
diff -rup linux/include/asm-m68k/resource.h 2.3.32-2/include/asm-m68k/resource.h
--- linux/include/asm-m68k/resource.h Mon Aug 9 12:27:31 1999
+++ 2.3.32-2/include/asm-m68k/resource.h Wed Dec 8 22:35:22 1999
@@ -18,6 +18,12 @@
#define RLIM_NLIMITS 10
+/*
+ * SuS says limits have to be unsigned.
+ * Which makes a ton more sense anyway.
+ */
+#define RLIM_INFINITY (~0UL)
+
#ifdef __KERNEL__
#define INIT_RLIMITS \
diff -rup linux/include/asm-mips/resource.h 2.3.32-2/include/asm-mips/resource.h
--- linux/include/asm-mips/resource.h Mon Jul 26 22:41:09 1999
+++ 2.3.32-2/include/asm-mips/resource.h Wed Dec 8 22:35:00 1999
@@ -25,6 +25,12 @@
#define RLIM_NLIMITS 10 /* Number of limit flavors. */
+/*
+ * SuS says limits have to be unsigned.
+ * Which makes a ton more sense anyway.
+ */
+#define RLIM_INFINITY (~0UL)
+
#ifdef __KERNEL__
#define INIT_RLIMITS \
diff -rup linux/include/asm-ppc/resource.h 2.3.32-2/include/asm-ppc/resource.h
--- linux/include/asm-ppc/resource.h Wed Dec 8 22:22:18 1999
+++ 2.3.32-2/include/asm-ppc/resource.h Wed Dec 8 22:34:12 1999
@@ -14,6 +14,13 @@
#define RLIM_NLIMITS 10
+/*
+ * SuS says limits have to be unsigned.
+ * Which makes a ton more sense anyway.
+ */
+#define RLIM_INFINITY (~0UL)
+
+
#ifdef __KERNEL__
#define INIT_RLIMITS \
diff -rup linux/include/asm-sh/resource.h 2.3.32-2/include/asm-sh/resource.h
--- linux/include/asm-sh/resource.h Wed Dec 8 22:21:59 1999
+++ 2.3.32-2/include/asm-sh/resource.h Wed Dec 8 22:34:49 1999
@@ -18,6 +18,12 @@
#define RLIM_NLIMITS 10
+/*
+ * SuS says limits have to be unsigned.
+ * Which makes a ton more sense anyway.
+ */
+#define RLIM_INFINITY (~0UL)
+
#ifdef __KERNEL__
#define INIT_RLIMITS \
diff -rup linux/include/asm-sparc/resource.h 2.3.32-2/include/asm-sparc/resource.h
--- linux/include/asm-sparc/resource.h Tue Aug 31 11:23:30 1999
+++ 2.3.32-2/include/asm-sparc/resource.h Wed Dec 8 22:34:26 1999
@@ -24,6 +24,12 @@
#define RLIM_NLIMITS 10
+/*
+ * SuS says limits have to be unsigned.
+ * Which makes a ton more sense anyway.
+ */
+#define RLIM_INFINITY (~0UL)
+
#ifdef __KERNEL__
#define INIT_RLIMITS \
{ \
diff -rup linux/include/asm-sparc64/resource.h 2.3.32-2/include/asm-sparc64/resource.h
--- linux/include/asm-sparc64/resource.h Mon Aug 2 22:07:16 1999
+++ 2.3.32-2/include/asm-sparc64/resource.h Wed Dec 8 22:34:35 1999
@@ -24,6 +24,12 @@
#define RLIM_NLIMITS 10
+/*
+ * SuS says limits have to be unsigned.
+ * Which makes a ton more sense anyway.
+ */
+#define RLIM_INFINITY (~0UL)
+
#ifdef __KERNEL__
#define INIT_RLIMITS \
{ \
diff -rup linux/include/linux/resource.h 2.3.32-2/include/linux/resource.h
--- linux/include/linux/resource.h Wed Dec 8 22:21:56 1999
+++ 2.3.32-2/include/linux/resource.h Wed Dec 8 22:33:44 1999
@@ -37,13 +37,6 @@ struct rusage {
long ru_nivcsw; /* involuntary " */
};
-/*
- * SuS says limits have to be unsigned.
- *
- * Which makes a ton more sense anyway.
- */
-#define RLIM_INFINITY (~0UL)
-
struct rlimit {
unsigned long rlim_cur;
unsigned long rlim_max;