Mercurial > hg > truffle
comparison src/os/linux/vm/os_linux.cpp @ 17805:bbfbe9b06038
Merge
author | kvn |
---|---|
date | Thu, 13 Mar 2014 14:57:01 -0700 |
parents | 935bf3340572 d1621038becf |
children | 62c54fcc0a35 |
comparison
equal
deleted
inserted
replaced
17804:fd1b9f02cc91 | 17805:bbfbe9b06038 |
---|---|
2107 void* res = dlsym(handle, name); | 2107 void* res = dlsym(handle, name); |
2108 pthread_mutex_unlock(&dl_mutex); | 2108 pthread_mutex_unlock(&dl_mutex); |
2109 return res; | 2109 return res; |
2110 } | 2110 } |
2111 | 2111 |
2112 void* os::get_default_process_handle() { | |
2113 return (void*)::dlopen(NULL, RTLD_LAZY); | |
2114 } | |
2112 | 2115 |
2113 static bool _print_ascii_file(const char* filename, outputStream* st) { | 2116 static bool _print_ascii_file(const char* filename, outputStream* st) { |
2114 int fd = ::open(filename, O_RDONLY); | 2117 int fd = ::open(filename, O_RDONLY); |
2115 if (fd == -1) { | 2118 if (fd == -1) { |
2116 return false; | 2119 return false; |