83 inline size_t os::read(int fd, void *buf, unsigned int nBytes) { 84 return ::read(fd, buf, nBytes); 85 } 86 87 inline size_t os::restartable_read(int fd, void *buf, unsigned int nBytes) { 88 return ::read(fd, buf, nBytes); 89 } 90 91 inline size_t os::write(int fd, const void *buf, unsigned int nBytes) { 92 return ::write(fd, buf, nBytes); 93 } 94 95 inline int os::close(int fd) { 96 return ::close(fd); 97 } 98 99 inline bool os::supports_monotonic_clock() { 100 return win32::_has_performance_count; 101 } 102 103 #define CALL_TEST_FUNC_WITH_WRAPPER_IF_NEEDED(f) \ 104 os::win32::call_test_func_with_wrapper(f) 105 106 #endif // OS_WINDOWS_VM_OS_WINDOWS_INLINE_HPP | 83 inline size_t os::read(int fd, void *buf, unsigned int nBytes) { 84 return ::read(fd, buf, nBytes); 85 } 86 87 inline size_t os::restartable_read(int fd, void *buf, unsigned int nBytes) { 88 return ::read(fd, buf, nBytes); 89 } 90 91 inline size_t os::write(int fd, const void *buf, unsigned int nBytes) { 92 return ::write(fd, buf, nBytes); 93 } 94 95 inline int os::close(int fd) { 96 return ::close(fd); 97 } 98 99 inline bool os::supports_monotonic_clock() { 100 return win32::_has_performance_count; 101 } 102 103 inline void os::exit(int num) { 104 win32::exit_process_or_thread(win32::EPT_PROCESS, num); 105 } 106 107 #define CALL_TEST_FUNC_WITH_WRAPPER_IF_NEEDED(f) \ 108 os::win32::call_test_func_with_wrapper(f) 109 110 #endif // OS_WINDOWS_VM_OS_WINDOWS_INLINE_HPP |