hotspot/src/os/aix/vm/os_aix.cpp
changeset 30125 8ba6e8e367e9
parent 28737 ca4b6a6e5cc8
child 30139 a2ae06b774e5
equal deleted inserted replaced
30124:767dff18852c 30125:8ba6e8e367e9
   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() {