Go to the previous, next section.
int read(int fd, char *buf, size_t count);
fd: [in] the file descriptor to read from.
buf: [out] the buffer that will contain information read.
count: [in] the maximal size of buf.
Reads up to count bytes into buf from fd.
On success zero is returned. On error, -1 is returned and errno is
set to one of the following values:
EINVAL: fd cannot be read.
EINTR, EAGAIN, EISDIR, EBADF and
EFAULT.
Go to the previous, next section.