< prev index next >

src/os/solaris/vm/os_solaris.cpp

Print this page

        

*** 553,573 **** (processorid_t) processor_id, // id. NULL); // don't return old binding. return (bind_result == 0); } - bool os::getenv(const char* name, char* buffer, int len) { - char* val = ::getenv(name); - if (val == NULL || strlen(val) + 1 > len) { - if (len > 0) buffer[0] = 0; // return a null string - return false; - } - strcpy(buffer, val); - return true; - } - - // Return true if user is running as root. bool os::have_special_privileges() { static bool init = false; static bool privileges = false; --- 553,562 ----
< prev index next >