Next: posix fd write, Previous: posix fd open, Up: posix fd [Index]
Interface to the C function read()
, (libc)read. Read bytes from the file descriptor fd and store them in
buffer. If successful return a non–negative fixnum representing
the number of bytes read, else raise an exception.
buffer and size must represent a generalised C buffer, (vicare-libs)Introduction to generalised C buffers.
Interface to the C function pread()
, (libc)pread. Like read
, but start reading at offset off from
the start of the file; off must be a non–negative exact integer.