Mercurial > hg > truffle
comparison src/os/linux/vm/hpi_linux.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 |
---|---|
66 RESTARTABLE_RETURN_INT(::recv(fd, buf, nBytes, (unsigned int) flags)); | 66 RESTARTABLE_RETURN_INT(::recv(fd, buf, nBytes, (unsigned int) flags)); |
67 } | 67 } |
68 | 68 |
69 inline int hpi::send(int fd, char *buf, int nBytes, int flags) { | 69 inline int hpi::send(int fd, char *buf, int nBytes, int flags) { |
70 RESTARTABLE_RETURN_INT(::send(fd, buf, nBytes, (unsigned int) flags)); | 70 RESTARTABLE_RETURN_INT(::send(fd, buf, nBytes, (unsigned int) flags)); |
71 } | |
72 | |
73 inline int hpi::raw_send(int fd, char *buf, int nBytes, int flags) { | |
74 return send(fd, buf, nBytes, flags); | |
71 } | 75 } |
72 | 76 |
73 inline int hpi::timeout(int fd, long timeout) { | 77 inline int hpi::timeout(int fd, long timeout) { |
74 julong prevtime,newtime; | 78 julong prevtime,newtime; |
75 struct timeval t; | 79 struct timeval t; |