6246 |
6246 |
6247 return true; |
6247 return true; |
6248 } |
6248 } |
6249 |
6249 |
6250 size_t os::write(int fd, const void *buf, unsigned int nBytes) { |
6250 size_t os::write(int fd, const void *buf, unsigned int nBytes) { |
6251 Thread* t = ThreadLocalStorage::thread(); |
6251 INTERRUPTIBLE_RETURN_INT(::write(fd, buf, nBytes), os::Solaris::clear_interrupted); |
6252 if (t->is_Java_thread()) { |
|
6253 INTERRUPTIBLE_RETURN_INT(::write(fd, buf, nBytes), os::Solaris::clear_interrupted); |
|
6254 } else { |
|
6255 size_t res; |
|
6256 RESTARTABLE((size_t) ::write(fd, buf, (size_t) nBytes), res); |
|
6257 return res; |
|
6258 } |
|
6259 } |
6252 } |
6260 |
6253 |
6261 int os::close(int fd) { |
6254 int os::close(int fd) { |
6262 return ::close(fd); |
6255 return ::close(fd); |
6263 } |
6256 } |