From b13e49bc86961c6725b2ebddd53898fe1366f6dc Mon Sep 17 00:00:00 2001 From: Serge Belyshev Date: Sat, 29 Jan 2022 22:46:59 +0300 Subject: linux-user: Move generic TARGET_RLIMIT* definitions to generic/target_resource.h Signed-off-by: Serge Belyshev Message-Id: <87ee4ql3yk.fsf_-_@depni.sinp.msu.ru> Signed-off-by: Laurent Vivier --- linux-user/sparc/target_resource.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 linux-user/sparc/target_resource.h (limited to 'linux-user/sparc/target_resource.h') diff --git a/linux-user/sparc/target_resource.h b/linux-user/sparc/target_resource.h new file mode 100644 index 0000000000..d9a2fb814a --- /dev/null +++ b/linux-user/sparc/target_resource.h @@ -0,0 +1,17 @@ +#ifndef SPARC_TARGET_RESOURCE_H +#define SPARC_TARGET_RESOURCE_H + +#include "../generic/target_resource.h" + +#if TARGET_ABI_BITS == 32 +#undef TARGET_RLIM_INFINITY +#define TARGET_RLIM_INFINITY 0x7fffffffUL +#endif + +#undef TARGET_RLIMIT_NOFILE +#define TARGET_RLIMIT_NOFILE 6 + +#undef TARGET_RLIMIT_NPROC +#define TARGET_RLIMIT_NPROC 7 + +#endif -- cgit v1.2.3-55-g7522