diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-15 13:15:29 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-15 13:15:29 -0400 |
commit | 8e3ae060c046446a98a3f9e94a4ebe11e34a2803 (patch) | |
tree | 8525af58535fa8ab832100c15c5863ce01b235ea /src/lib/libc/include | |
parent | b9e8dbfd957337ff064c4cb8bb5bd7b23ac88b8d (diff) |
libc: unistd: Add read system call interface
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/lib/libc/include')
-rw-r--r-- | src/lib/libc/include/unistd.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/libc/include/unistd.h b/src/lib/libc/include/unistd.h index fa7f951..d2c32b6 100644 --- a/src/lib/libc/include/unistd.h +++ b/src/lib/libc/include/unistd.h @@ -56,4 +56,13 @@ int open(const char *path, int flags); */ ssize_t write(int fd, const void *buf, size_t count); +/* + * POSIX read system call + * + * @fd: File descriptor to read + * @buf: Buffer to read into + * @count: Number of bytes to read + */ +ssize_t read(int fd, void *buf, size_t count); + #endif /* _UNISTD_H */ |