94 inline size_t os::read(int fd, void *buf, unsigned int nBytes) {
95 return ::read(fd, buf, nBytes);
96 }
97
98 inline size_t os::restartable_read(int fd, void *buf, unsigned int nBytes) {
99 return ::read(fd, buf, nBytes);
100 }
101
102 inline size_t os::write(int fd, const void *buf, unsigned int nBytes) {
103 return ::write(fd, buf, nBytes);
104 }
105
106 inline int os::close(int fd) {
107 return ::close(fd);
108 }
109
110 inline bool os::supports_monotonic_clock() {
111 return win32::_has_performance_count;
112 }
113
114 #ifndef PRODUCT
115 #define CALL_TEST_FUNC_WITH_WRAPPER_IF_NEEDED(f) \
116 os::win32::call_test_func_with_wrapper(f)
117 #endif
118
119 #endif // OS_WINDOWS_VM_OS_WINDOWS_INLINE_HPP
|
94 inline size_t os::read(int fd, void *buf, unsigned int nBytes) {
95 return ::read(fd, buf, nBytes);
96 }
97
98 inline size_t os::restartable_read(int fd, void *buf, unsigned int nBytes) {
99 return ::read(fd, buf, nBytes);
100 }
101
102 inline size_t os::write(int fd, const void *buf, unsigned int nBytes) {
103 return ::write(fd, buf, nBytes);
104 }
105
106 inline int os::close(int fd) {
107 return ::close(fd);
108 }
109
110 inline bool os::supports_monotonic_clock() {
111 return win32::_has_performance_count;
112 }
113
114 #define CALL_TEST_FUNC_WITH_WRAPPER_IF_NEEDED(f) \
115 os::win32::call_test_func_with_wrapper(f)
116
117 #endif // OS_WINDOWS_VM_OS_WINDOWS_INLINE_HPP
|