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 --- kern/linux/linux.hh | 17 ----------------- kern/tru64/tru64.hh | 13 ------------- 2 files changed, 30 deletions(-) (limited to 'kern') diff --git a/kern/linux/linux.hh b/kern/linux/linux.hh index bab460333..63e0dd5ca 100644 --- a/kern/linux/linux.hh +++ b/kern/linux/linux.hh @@ -132,23 +132,6 @@ class Linux { char machine[_SYS_NMLN]; //!< Machine type. }; - - /// 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 - }; - /// Limit struct for getrlimit/setrlimit. struct rlimit { uint64_t rlim_cur; //!< soft limit diff --git a/kern/tru64/tru64.hh b/kern/tru64/tru64.hh index 3bd0f39f0..91db5bb84 100644 --- a/kern/tru64/tru64.hh +++ b/kern/tru64/tru64.hh @@ -220,19 +220,6 @@ class Tru64 { char machine[_SYS_NMLN]; //!< Machine type. }; - /// 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 - }; - /// Limit struct for getrlimit/setrlimit. struct rlimit { uint64_t rlim_cur; //!< soft limit -- cgit v1.2.3