Hash :
e145ca1e
Author :
Thomas de Grivel
Date :
2017-06-17T13:37:45
fd-stream streams are (unsigned-byte 8)
cl-stream streams
using unistd:read
, unistd:write
and unistd:close
to
operate on Unix file descriptors.
Depends on :
Base class for file descriptor streams.
Returns the file descriptor of FD-STREAM.
A buffered input stream using UNISTD:READ.
Creates a buffered input stream for file descriptor fd.
A buffered output stream using UNISTD:WRITE.
Creates a buffered output stream for file descriptor fd.
A buffered input/output stream using UNISTD:READ and UNISTD:WRITE.
Creates a buffered input/output stream for file descriptor fd.
# fd-stream
fd-stream streams are `(unsigned-byte 8)` cl-stream streams
using `unistd:read`, `unistd:write` and `unistd:close` to
operate on Unix file descriptors.
Depends on :
- https://github.com/cffi-posix/cffi-fcntl
- https://github.com/cffi-posix/cffi-unistd
- https://github.com/cl-stream/cl-stream
## Class: fd-stream
Base class for file descriptor streams.
### Generic: stream-fd *fd-stream* => *fd*
Returns the file descriptor of FD-STREAM.
## Class: fd-input-stream
A buffered input stream using UNISTD:READ.
### Function: fd-input-stream *fd* => *stream*
Creates a buffered input stream for file descriptor *fd*.
## Class: fd-output-stream
A buffered output stream using UNISTD:WRITE.
### Function: fd-output-stream *fd* => *stream*
Creates a buffered output stream for file descriptor *fd*.
## Class: fd-io-stream
A buffered input/output stream using UNISTD:READ and UNISTD:WRITE.
### Function: fd-io-stream *fd* => *stream*
Creates a buffered input/output stream for file descriptor *fd*.