patch-1.3.39 linux/include/asm-alpha/resource.h
Next file: linux/include/asm-alpha/string.h
Previous file: linux/include/asm-alpha/io.h
Back to the patch index
Back to the overall index
-  Lines: 23
 -  Date:
Thu Nov  9 10:04:33 1995
 -  Orig file: 
v1.3.38/linux/include/asm-alpha/resource.h
 -  Orig date: 
Fri Jun  2 13:51:17 1995
 
diff -u --recursive --new-file v1.3.38/linux/include/asm-alpha/resource.h linux/include/asm-alpha/resource.h
@@ -21,4 +21,21 @@
 
 #define RLIM_NLIMITS	9
 
-#endif
+#ifdef __KERNEL__
+
+#define INIT_RLIMITS							\
+{									\
+    {LONG_MAX, LONG_MAX},			/* RLIMIT_CPU */	\
+    {LONG_MAX, LONG_MAX},			/* RLIMIT_FSIZE */	\
+    {LONG_MAX, LONG_MAX},			/* RLIMIT_DATA */	\
+    {_STK_LIM, _STK_LIM},			/* RLIMIT_STACK */	\
+    {       0, LONG_MAX},			/* RLIMIT_CORE */	\
+    {LONG_MAX, LONG_MAX},			/* RLIMIT_RSS */	\
+    { NR_OPEN,  NR_OPEN},			/* RLIMIT_NOFILE */	\
+    {LONG_MAX, LONG_MAX},			/* RLIMIT_AS */		\
+    {MAX_TASKS_PER_USER, MAX_TASKS_PER_USER},	/* RLIMIT_NPROC */	\
+}
+
+#endif /* __KERNEL__ */
+
+#endif /* _ALPHA_RESOURCE_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this