Scieneer Common Lisp 1.3.9 online documentation

ext:read-bytes stream buffer start requested &optional waitp[Function]

Attempt to read the requested number of bytes into the buffer starting at start, returning the number of bytes read or -1 if at the end-of-file. On pipes or similar devices, this function returns as soon as any data is available, even if the amount read is less than requested and the end-of-file has not been hit. When waitp is true, wait for at least one byte before returning, otherwise return zero if no input is available.