src/os/linux/vm/os_linux.cpp

changeset 6326
d1621038becf
parent 6026
e4f478e7781b
child 6348
0e6af9b390af
child 6513
bbfbe9b06038
equal deleted inserted replaced
6325:031b06eac1a9 6326:d1621038becf
2102 void* res = dlsym(handle, name); 2102 void* res = dlsym(handle, name);
2103 pthread_mutex_unlock(&dl_mutex); 2103 pthread_mutex_unlock(&dl_mutex);
2104 return res; 2104 return res;
2105 } 2105 }
2106 2106
2107 void* os::get_default_process_handle() {
2108 return (void*)::dlopen(NULL, RTLD_LAZY);
2109 }
2107 2110
2108 static bool _print_ascii_file(const char* filename, outputStream* st) { 2111 static bool _print_ascii_file(const char* filename, outputStream* st) {
2109 int fd = ::open(filename, O_RDONLY); 2112 int fd = ::open(filename, O_RDONLY);
2110 if (fd == -1) { 2113 if (fd == -1) {
2111 return false; 2114 return false;

mercurial