diff options
Diffstat (limited to 'src/sys/include/os')
-rw-r--r-- | src/sys/include/os/filedesc.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sys/include/os/filedesc.h b/src/sys/include/os/filedesc.h index 0023526..8cdf161 100644 --- a/src/sys/include/os/filedesc.h +++ b/src/sys/include/os/filedesc.h @@ -93,4 +93,16 @@ int fd_open(const char *path, mode_t mode); */ ssize_t write(int fd, const void *buf, size_t count); +/* + * Read a file descriptor + * + * @fd: File descriptor to read from + * @buf: Buffer to read into + * @count: Number of bytes to read + * + * Returns the number of bytes read on success, otherwise a less + * than zero value on error. + */ +ssize_t read(int fd, void *buf, size_t count); + #endif /* !_OS_FILEDESC_H_ */ |