linux.hh (6378:4a2ff62c3b4f) linux.hh (6640:30d92d2b66a1)
1/*
2 * Copyright (c) 2006 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;

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

121 TGT_RLIMIT_LOCKS = 10,
122 NUM_RLIMIT_RESOURCES
123 };
124
125 /// Offset used to make sure that processes don't
126 /// assign themselves to process IDs reserved for
127 /// the root users.
128 static const int NUM_ROOT_PROCS = 2;
1/*
2 * Copyright (c) 2006 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;

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

121 TGT_RLIMIT_LOCKS = 10,
122 NUM_RLIMIT_RESOURCES
123 };
124
125 /// Offset used to make sure that processes don't
126 /// assign themselves to process IDs reserved for
127 /// the root users.
128 static const int NUM_ROOT_PROCS = 2;
129
130 typedef struct {
131 int32_t uptime; /* Seconds since boot */
132 uint32_t loads[3]; /* 1, 5, and 15 minute load averages */
133 uint32_t totalram; /* Total usable main memory size */
134 uint32_t freeram; /* Available memory size */
135 uint32_t sharedram; /* Amount of shared memory */
136 uint32_t bufferram; /* Memory used by buffers */
137 uint32_t totalswap; /* Total swap space size */
138 uint32_t freeswap; /* swap space still available */
139 uint16_t procs; /* Number of current processes */
140 uint32_t totalhigh; /* Total high memory size */
141 uint32_t freehigh; /* Available high memory size */
142 uint32_t mem_unit; /* Memory unit size in bytes */
143 } tgt_sysinfo;
144
129};
130
131#endif
145};
146
147#endif