20 |
|
|
21 |
|
|
22 |
DEFUN_NEW("CHECK-FD-FOR-INPUT",object,fScheck_fd_for_input, |
DEFUN_NEW("CHECK-FD-FOR-INPUT",object,fScheck_fd_for_input, |
23 |
SI,2,2,NONE,OI,IO,OO,OO,(int fd,int timeout), |
SI,2,2,NONE,OI,IO,OO,OO,(fixnum fd,fixnum timeout), |
24 |
|
|
25 |
"Check FD a file descriptor for data to read, waiting TIMEOUT clicks \ |
"Check FD a file descriptor for data to read, waiting TIMEOUT clicks \ |
26 |
for data to become available. Here there are \ |
for data to become available. Here there are \ |
257 |
|
|
258 |
} |
} |
259 |
|
|
260 |
DEFUN_NEW("CLEAR-CONNECTION",object,fSclear_connection,SI,1,1,NONE,OI,OO,OO,OO,(int fd), |
DEFUN_NEW("CLEAR-CONNECTION",object,fSclear_connection,SI,1,1,NONE,OI,OO,OO,OO,(fixnum fd), |
261 |
"Read on FD until nothing left to read. Return number of bytes read") |
"Read on FD until nothing left to read. Return number of bytes read") |
262 |
{char buffer[0x1000]; |
{char buffer[0x1000]; |
263 |
int n=0; |
int n=0; |