300 |
300 |
301 FILE* os::open(int fd, const char* mode) { |
301 FILE* os::open(int fd, const char* mode) { |
302 return ::fdopen(fd, mode); |
302 return ::fdopen(fd, mode); |
303 } |
303 } |
304 |
304 |
|
305 DIR* os::opendir(const char* dirname) { |
|
306 assert(dirname != NULL, "just checking"); |
|
307 return ::opendir(dirname); |
|
308 } |
|
309 |
|
310 struct dirent* os::readdir(DIR* dirp) { |
|
311 assert(dirp != NULL, "just checking"); |
|
312 return ::readdir(dirp); |
|
313 } |
|
314 |
|
315 int os::closedir(DIR *dirp) { |
|
316 assert(dirp != NULL, "just checking"); |
|
317 return ::closedir(dirp); |
|
318 } |
|
319 |
305 // Builds a platform dependent Agent_OnLoad_<lib_name> function name |
320 // Builds a platform dependent Agent_OnLoad_<lib_name> function name |
306 // which is used to find statically linked in agents. |
321 // which is used to find statically linked in agents. |
307 // Parameters: |
322 // Parameters: |
308 // sym_name: Symbol in library we are looking for |
323 // sym_name: Symbol in library we are looking for |
309 // lib_name: Name of library to look in, NULL for shared libs. |
324 // lib_name: Name of library to look in, NULL for shared libs. |