|
MentOS
0.8.0
The Mentoring Operating System
|
Read and write functions. More...
Functions | |
| ssize_t | sys_read (int fd, void *buf, size_t nbytes) |
| Read data from a file descriptor. More... | |
| ssize_t | sys_write (int fd, const void *buf, size_t nbytes) |
| Write data into a file descriptor. More... | |
| off_t | sys_lseek (int fd, off_t offset, int whence) |
| Repositions the file offset inside a file. More... | |
Read and write functions.
Repositions the file offset inside a file.
| fd | The file descriptor of the file. |
| offset | The offest to use for the operation. |
| whence | The type of operation. |
Read data from a file descriptor.
| fd | The file descriptor. |
| buf | The buffer. |
| nbytes | The number of bytes to read. |