From 87fe91028b0d05f5776f9cb240a434a7c88cf2b7 Mon Sep 17 00:00:00 2001 From: Korey Sewell Date: Thu, 13 Apr 2006 16:47:32 -0400 Subject: Move RLIMIT constants to OS/ISA specific files instead of generic OS container classes Update MIPS/Linux constants arch/alpha/linux/linux.hh: move RLIMIT constants to ALPHA/Linux class arch/alpha/tru64/tru64.hh: move RLIMIT constants to ALPHA/Tru64 class arch/mips/mips_linux.hh: update MIPS constants for MIPS/Linux kern/linux/linux.hh: remove RLIMIT constants from generic Linux class... these are now in ISA specific / OS specific classes kern/tru64/tru64.hh: remove RLIMIT constants from generic Tru64 class... these are now in ISA specific / OS specific classes --HG-- extra : convert_revision : 2e2743d73ab18fcd558a5765cb4ef0e9671bd1d7 --- arch/alpha/linux/linux.hh | 17 +++++++++++++++++ arch/alpha/tru64/tru64.hh | 16 ++++++++++++++++ 2 files changed, 33 insertions(+) (limited to 'arch/alpha') diff --git a/arch/alpha/linux/linux.hh b/arch/alpha/linux/linux.hh index 9a1d59e83..f04e2bfa8 100644 --- a/arch/alpha/linux/linux.hh +++ b/arch/alpha/linux/linux.hh @@ -77,6 +77,7 @@ class AlphaLinux : public Linux static const unsigned GSI_CPUS_IN_BOX = 55; //!< number of CPUs in system static const unsigned GSI_PHYSMEM = 19; //!< Physical memory in KB static const unsigned GSI_CLK_TCK = 42; //!< clock freq in Hz + static const unsigned GSI_IEEE_FP_CONTROL = 45; //@} //@{ @@ -106,6 +107,22 @@ class AlphaLinux : public Linux /// For table(). static const int TBL_SYSINFO = 12; + + /// Resource enumeration for getrlimit(). + enum rlimit_resources { + TGT_RLIMIT_CPU = 0, + TGT_RLIMIT_FSIZE = 1, + TGT_RLIMIT_DATA = 2, + TGT_RLIMIT_STACK = 3, + TGT_RLIMIT_CORE = 4, + TGT_RLIMIT_RSS = 5, + TGT_RLIMIT_NOFILE = 6, + TGT_RLIMIT_AS = 7, + TGT_RLIMIT_VMEM = 7, + TGT_RLIMIT_NPROC = 8, + TGT_RLIMIT_MEMLOCK = 9, + TGT_RLIMIT_LOCKS = 10 + }; }; #endif diff --git a/arch/alpha/tru64/tru64.hh b/arch/alpha/tru64/tru64.hh index 63eff656b..19343ba23 100644 --- a/arch/alpha/tru64/tru64.hh +++ b/arch/alpha/tru64/tru64.hh @@ -104,6 +104,22 @@ class AlphaTru64 : public Tru64 /// For table(). static const int TBL_SYSINFO = 12; //@} + + /// Resource enumeration for getrlimit(). + enum rlimit_resources { + TGT_RLIMIT_CPU = 0, + TGT_RLIMIT_FSIZE = 1, + TGT_RLIMIT_DATA = 2, + TGT_RLIMIT_STACK = 3, + TGT_RLIMIT_CORE = 4, + TGT_RLIMIT_RSS = 5, + TGT_RLIMIT_NOFILE = 6, + TGT_RLIMIT_AS = 7, + TGT_RLIMIT_VMEM = 7, + TGT_RLIMIT_NPROC = 8, + TGT_RLIMIT_MEMLOCK = 9, + TGT_RLIMIT_LOCKS = 10 + }; }; -- cgit v1.2.3