summaryrefslogtreecommitdiff
path: root/arch/mips
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2014-04-14 17:42:49 +0200
committerRich Felker <dalias@aerifal.cx>2014-04-15 19:17:52 -0400
commitfcea534e579077e10456f6ed06c033dfaa013a24 (patch)
tree0d497c14049826bc71012a60e2ba04603e9c3b64 /arch/mips
parent96315d27b0e5000d53e09fb915c5066b3d47d3d2 (diff)
downloadmusl-fcea534e579077e10456f6ed06c033dfaa013a24.tar.gz
fix RLIMIT_ constants for mips
The mips arch is special in that it uses different RLIMIT_ numbers than other archs, so allow bits/resource.h to override the default RLIMIT_ numbers (empty on all archs except mips). Reported by orc.
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/bits/resource.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/bits/resource.h b/arch/mips/bits/resource.h
new file mode 100644
index 00000000..414a4054
--- /dev/null
+++ b/arch/mips/bits/resource.h
@@ -0,0 +1,5 @@
+#define RLIMIT_NOFILE 5
+#define RLIMIT_AS 6
+#define RLIMIT_RSS 7
+#define RLIMIT_NPROC 8
+#define RLIMIT_MEMLOCK 9