Deleted Added
sdiff udiff text old ( 9141:593fe25c86a6 ) new ( 9146:a61fdbbc1d45 )
full compact
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 70 unchanged lines hidden (view full) ---

79 static const unsigned GSI_MAX_CPU = 30; //!< max # CPUs on machine
80 static const unsigned GSI_CPUS_IN_BOX = 55; //!< number of CPUs in system
81 static const unsigned GSI_PHYSMEM = 19; //!< Physical memory in KB
82 static const unsigned GSI_CLK_TCK = 42; //!< clock freq in Hz
83 static const unsigned GSI_IEEE_FP_CONTROL = 45;
84 //@}
85
86 //@{
87 /// For setsysinfo().
88 static const unsigned SSI_IEEE_FP_CONTROL = 14; //!< ieee_set_fp_control()
89 //@}
90
91 //@{
92 /// ioctl() command codes.
93 static const unsigned TGT_TIOCGETP = 0x40067408;
94 static const unsigned TGT_TIOCSETP = 0x80067409;

--- 22 unchanged lines hidden (view full) ---

117 default:
118 return false;
119 }
120 }
121
122 /// For table().
123 static const int TBL_SYSINFO = 12;
124
125 /// Resource constants for getrlimit() (overide some generics).
126 static const unsigned TGT_RLIMIT_NPROC = 8;
127 static const unsigned TGT_RLIMIT_AS = 7;
128 static const unsigned TGT_RLIMIT_NOFILE = 6;
129 static const unsigned TGT_RLIMIT_MEMLOCK = 9;
130
131 typedef struct {
132 int64_t uptime; /* Seconds since boot */
133 uint64_t loads[3]; /* 1, 5, and 15 minute load averages */
134 uint64_t totalram; /* Total usable main memory size */
135 uint64_t freeram; /* Available memory size */
136 uint64_t sharedram; /* Amount of shared memory */
137 uint64_t bufferram; /* Memory used by buffers */

--- 14 unchanged lines hidden ---