equal
deleted
inserted
replaced
253 } |
253 } |
254 } |
254 } |
255 |
255 |
256 julong os::physical_memory() { |
256 julong os::physical_memory() { |
257 return Aix::physical_memory(); |
257 return Aix::physical_memory(); |
258 } |
|
259 |
|
260 //////////////////////////////////////////////////////////////////////////////// |
|
261 // environment support |
|
262 |
|
263 bool os::getenv(const char* name, char* buf, int len) { |
|
264 const char* val = ::getenv(name); |
|
265 if (val != NULL && strlen(val) < (size_t)len) { |
|
266 strcpy(buf, val); |
|
267 return true; |
|
268 } |
|
269 if (len > 0) buf[0] = 0; // return a null string |
|
270 return false; |
|
271 } |
258 } |
272 |
259 |
273 // Return true if user is running as root. |
260 // Return true if user is running as root. |
274 |
261 |
275 bool os::have_special_privileges() { |
262 bool os::have_special_privileges() { |