aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/rc
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-07 08:02:54 +0000
committerrsc <devnull@localhost>2005-01-07 08:02:54 +0000
commit005a85f3a2ef85ec1a64ce05a486c84e25cf6f94 (patch)
treeaf1ea3a3a535f103990eef9411150e6c7c39dad6 /src/cmd/rc
parentc345061e8d81a737b2926da7ecad4b4389677fe8 (diff)
downloadplan9port-005a85f3a2ef85ec1a64ce05a486c84e25cf6f94.tar.gz
plan9port-005a85f3a2ef85ec1a64ce05a486c84e25cf6f94.tar.bz2
plan9port-005a85f3a2ef85ec1a64ce05a486c84e25cf6f94.zip
success on the sun
Diffstat (limited to 'src/cmd/rc')
-rw-r--r--src/cmd/rc/unixcrap.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/cmd/rc/unixcrap.c b/src/cmd/rc/unixcrap.c
index 3a4dd2c3..98660483 100644
--- a/src/cmd/rc/unixcrap.c
+++ b/src/cmd/rc/unixcrap.c
@@ -17,13 +17,29 @@ static int rlx[] = {
RLIMIT_CORE,
RLIMIT_DATA,
RLIMIT_FSIZE,
+#ifdef RLIMIT_MEMLOCK
RLIMIT_MEMLOCK,
+#else
+ 0,
+#endif
+#ifdef RLIMIT_RSS
RLIMIT_RSS,
+#else
+ 0,
+#endif
RLIMIT_NOFILE,
RLIMIT_STACK,
RLIMIT_CPU,
+#ifdef RLIMIT_NPROC
RLIMIT_NPROC,
+#else
+ 0,
+#endif
+#ifdef RLIMIT_RSS
RLIMIT_RSS,
+#else
+ 0,
+#endif
};
static void