summaryrefslogtreecommitdiffstats
path: root/linux-user/alpha
diff options
context:
space:
mode:
authorSerge Belyshev2022-01-29 20:46:59 +0100
committerLaurent Vivier2022-02-01 08:01:38 +0100
commitb13e49bc86961c6725b2ebddd53898fe1366f6dc (patch)
tree975a94b48ac76b17a060e43e081a3ff7f5961cb3 /linux-user/alpha
parentlinux-user: Implement starttime field in self stat emulation (diff)
downloadqemu-b13e49bc86961c6725b2ebddd53898fe1366f6dc.tar.gz
qemu-b13e49bc86961c6725b2ebddd53898fe1366f6dc.tar.xz
qemu-b13e49bc86961c6725b2ebddd53898fe1366f6dc.zip
linux-user: Move generic TARGET_RLIMIT* definitions to generic/target_resource.h
Signed-off-by: Serge Belyshev <belyshev@depni.sinp.msu.ru> Message-Id: <87ee4ql3yk.fsf_-_@depni.sinp.msu.ru> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/alpha')
-rw-r--r--linux-user/alpha/target_resource.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/linux-user/alpha/target_resource.h b/linux-user/alpha/target_resource.h
new file mode 100644
index 0000000000..c9b082faee
--- /dev/null
+++ b/linux-user/alpha/target_resource.h
@@ -0,0 +1,21 @@
+#ifndef ALPHA_TARGET_RESOURCE_H
+#define ALPHA_TARGET_RESOURCE_H
+
+#include "../generic/target_resource.h"
+
+#undef TARGET_RLIM_INFINITY
+#define TARGET_RLIM_INFINITY 0x7fffffffffffffffull
+
+#undef TARGET_RLIMIT_NOFILE
+#define TARGET_RLIMIT_NOFILE 6
+
+#undef TARGET_RLIMIT_AS
+#define TARGET_RLIMIT_AS 7
+
+#undef TARGET_RLIMIT_NPROC
+#define TARGET_RLIMIT_NPROC 8
+
+#undef TARGET_RLIMIT_MEMLOCK
+#define TARGET_RLIMIT_MEMLOCK 9
+
+#endif