patch-2.3.24 linux/include/linux/resource.h

Next file: linux/include/linux/serialP.h
Previous file: linux/include/linux/pagemap.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.23/linux/include/linux/resource.h linux/include/linux/resource.h
@@ -37,11 +37,16 @@
 	long	ru_nivcsw;		/* involuntary " */
 };
 
-#define RLIM_INFINITY	((long)(~0UL>>1))
+/*
+ * SuS says limits have to be unsigned.
+ *
+ * Which makes a ton more sense anyway.
+ */
+#define RLIM_INFINITY	(~0UL)
 
 struct rlimit {
-	long	rlim_cur;
-	long	rlim_max;
+	unsigned long	rlim_cur;
+	unsigned long	rlim_max;
 };
 
 #define	PRIO_MIN	(-20)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)