From fcea534e579077e10456f6ed06c033dfaa013a24 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Mon, 14 Apr 2014 17:42:49 +0200 Subject: 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. --- arch/arm/bits/resource.h | 0 arch/i386/bits/resource.h | 0 arch/microblaze/bits/resource.h | 0 arch/mips/bits/resource.h | 5 +++++ arch/powerpc/bits/resource.h | 0 arch/sh/bits/resource.h | 0 arch/x32/bits/resource.h | 0 arch/x86_64/bits/resource.h | 0 8 files changed, 5 insertions(+) create mode 100644 arch/arm/bits/resource.h create mode 100644 arch/i386/bits/resource.h create mode 100644 arch/microblaze/bits/resource.h create mode 100644 arch/mips/bits/resource.h create mode 100644 arch/powerpc/bits/resource.h create mode 100644 arch/sh/bits/resource.h create mode 100644 arch/x32/bits/resource.h create mode 100644 arch/x86_64/bits/resource.h (limited to 'arch') diff --git a/arch/arm/bits/resource.h b/arch/arm/bits/resource.h new file mode 100644 index 00000000..e69de29b diff --git a/arch/i386/bits/resource.h b/arch/i386/bits/resource.h new file mode 100644 index 00000000..e69de29b diff --git a/arch/microblaze/bits/resource.h b/arch/microblaze/bits/resource.h new file mode 100644 index 00000000..e69de29b 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 diff --git a/arch/powerpc/bits/resource.h b/arch/powerpc/bits/resource.h new file mode 100644 index 00000000..e69de29b diff --git a/arch/sh/bits/resource.h b/arch/sh/bits/resource.h new file mode 100644 index 00000000..e69de29b diff --git a/arch/x32/bits/resource.h b/arch/x32/bits/resource.h new file mode 100644 index 00000000..e69de29b diff --git a/arch/x86_64/bits/resource.h b/arch/x86_64/bits/resource.h new file mode 100644 index 00000000..e69de29b -- cgit v1.2.1