equal
deleted
inserted
replaced
96 |
96 |
97 // We don't have NUMA support on Aix, but we need this for compilation. |
97 // We don't have NUMA support on Aix, but we need this for compilation. |
98 inline bool os::numa_has_static_binding() { ShouldNotReachHere(); return true; } |
98 inline bool os::numa_has_static_binding() { ShouldNotReachHere(); return true; } |
99 inline bool os::numa_has_group_homing() { ShouldNotReachHere(); return false; } |
99 inline bool os::numa_has_group_homing() { ShouldNotReachHere(); return false; } |
100 |
100 |
101 inline size_t os::restartable_read(int fd, void *buf, unsigned int nBytes) { |
|
102 size_t res; |
|
103 RESTARTABLE( (size_t) ::read(fd, buf, (size_t) nBytes), res); |
|
104 return res; |
|
105 } |
|
106 |
|
107 inline size_t os::write(int fd, const void *buf, unsigned int nBytes) { |
101 inline size_t os::write(int fd, const void *buf, unsigned int nBytes) { |
108 size_t res; |
102 size_t res; |
109 RESTARTABLE((size_t) ::write(fd, buf, (size_t) nBytes), res); |
103 RESTARTABLE((size_t) ::write(fd, buf, (size_t) nBytes), res); |
110 return res; |
104 return res; |
111 } |
105 } |