comparison src/os/solaris/vm/hpi_solaris.hpp @ 222:2a1a77d3458f

6718676: putback for 6604014 is incomplete Reviewed-by: kvn, jrose
author never
date Tue, 24 Jun 2008 16:00:14 -0700
parents a61af66fc99e
children c18cbe5936b8
comparison
equal deleted inserted replaced
221:1e026f8da827 222:2a1a77d3458f
67 INTERRUPTIBLE_RETURN_INT(::recv(fd, buf, nBytes, flags), os::Solaris::clear_interrupted); 67 INTERRUPTIBLE_RETURN_INT(::recv(fd, buf, nBytes, flags), os::Solaris::clear_interrupted);
68 } 68 }
69 69
70 inline int hpi::send(int fd, char *buf, int nBytes, int flags) { 70 inline int hpi::send(int fd, char *buf, int nBytes, int flags) {
71 INTERRUPTIBLE_RETURN_INT(::send(fd, buf, nBytes, flags), os::Solaris::clear_interrupted); 71 INTERRUPTIBLE_RETURN_INT(::send(fd, buf, nBytes, flags), os::Solaris::clear_interrupted);
72 }
73
74 inline int hpi::raw_send(int fd, char *buf, int nBytes, int flags) {
75 RESTARTABLE_RETURN_INT(::send(fd, buf, nBytes, flags));
72 } 76 }
73 77
74 // As both poll and select can be interrupted by signals, we have to be 78 // As both poll and select can be interrupted by signals, we have to be
75 // prepared to restart the system call after updating the timeout, unless 79 // prepared to restart the system call after updating the timeout, unless
76 // a poll() is done with timeout == -1, in which case we repeat with this 80 // a poll() is done with timeout == -1, in which case we repeat with this