patch-2.3.48 linux/include/asm-mips/resource.h

Next file: linux/include/asm-mips/segment.h
Previous file: linux/include/asm-mips/reg.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/include/asm-mips/resource.h linux/include/asm-mips/resource.h
@@ -1,4 +1,4 @@
-/* $Id: resource.h,v 1.2 1999/01/04 16:09:25 ralf Exp $
+/* $Id: resource.h,v 1.5 2000/02/04 07:40:53 ralf Exp $
  *
  * This file is subject to the terms and conditions of the GNU General Public
  * License.  See the file "COPYING" in the main directory of this archive
@@ -6,8 +6,8 @@
  *
  * Copyright (C) 1995, 1996, 1998 by Ralf Baechle
  */
-#ifndef __ASM_MIPS_RESOURCE_H
-#define __ASM_MIPS_RESOURCE_H
+#ifndef _ASM_RESOURCE_H
+#define _ASM_RESOURCE_H
 
 /*
  * Resource limits
@@ -29,24 +29,24 @@
  * SuS says limits have to be unsigned.
  * Which makes a ton more sense anyway.
  */
-#define RLIM_INFINITY	(~0UL)
+#define RLIM_INFINITY	0x7fffffffUL
 
 #ifdef __KERNEL__
 
 #define INIT_RLIMITS					\
 {							\
-	{ LONG_MAX, LONG_MAX },				\
-	{ LONG_MAX, LONG_MAX },				\
-	{ LONG_MAX, LONG_MAX },				\
-	{ _STK_LIM, LONG_MAX },				\
-	{        0, LONG_MAX },				\
-	{ INR_OPEN, INR_OPEN },				\
-	{ LONG_MAX, LONG_MAX },				\
-	{ LONG_MAX, LONG_MAX },				\
-	{ MAX_TASKS_PER_USER, MAX_TASKS_PER_USER },	\
-	{ LONG_MAX, LONG_MAX },				\
+	{ RLIM_INFINITY, RLIM_INFINITY },		\
+	{ RLIM_INFINITY, RLIM_INFINITY },		\
+	{ RLIM_INFINITY, RLIM_INFINITY },		\
+	{ _STK_LIM,      RLIM_INFINITY },		\
+	{        0,      RLIM_INFINITY },		\
+	{ INR_OPEN,      INR_OPEN      },		\
+	{ RLIM_INFINITY, RLIM_INFINITY },		\
+	{ RLIM_INFINITY, RLIM_INFINITY },		\
+	{ 0,             0             },		\
+	{ RLIM_INFINITY, RLIM_INFINITY },		\
 }
 
 #endif /* __KERNEL__ */
 
-#endif /* __ASM_MIPS_RESOURCE_H */
+#endif /* _ASM_RESOURCE_H */

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