inline int os::connect(int fd, struct sockaddr *him, socklen_t len) { RESTARTABLE_RETURN_INT(::connect(fd, him, len)); }
inline int os::send(int fd, char* buf, size_t nBytes, uint flags) { RESTARTABLE_RETURN_INT(::send(fd, buf, nBytes, flags)); }
inline int hpi::socket_close(int fd) { RESTARTABLE_RETURN_INT(::close(fd)); }
inline int os::sendto(int fd, char* buf, size_t len, uint flags, struct sockaddr* to, socklen_t tolen) { RESTARTABLE_RETURN_INT((int)::sendto(fd, buf, len, flags, to, tolen)); }
inline int os::recvfrom(int fd, char* buf, size_t nBytes, uint flags, sockaddr* from, socklen_t* fromlen) { RESTARTABLE_RETURN_INT((int)::recvfrom(fd, buf, nBytes, flags, from, fromlen)); }
inline int hpi::raw_send(int fd, char *buf, int nBytes, int flags) { RESTARTABLE_RETURN_INT(::send(fd, buf, nBytes, flags)); }