From 8e3ae060c046446a98a3f9e94a4ebe11e34a2803 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 15 Oct 2025 13:15:29 -0400 Subject: libc: unistd: Add read system call interface Signed-off-by: Ian Moffett --- src/lib/libc/include/unistd.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lib/libc/include') 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 */ -- cgit v1.2.3