diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-06 21:52:49 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-06 21:52:49 -0400 |
commit | 473afa3b7e826063b66e579cfbebaa99ee4602ab (patch) | |
tree | e1b9f4c504189bef90c762f2ef5fd01bba5fc8d5 /src/lib/libc/include/unistd.h | |
parent | 6ce9297e61d5dbc1640392ed6d253d9769953dcf (diff) |
lib: libc: Add SYS_open system call interface
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/lib/libc/include/unistd.h')
-rw-r--r-- | src/lib/libc/include/unistd.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/libc/include/unistd.h b/src/lib/libc/include/unistd.h index b50fc12..fa7f951 100644 --- a/src/lib/libc/include/unistd.h +++ b/src/lib/libc/include/unistd.h @@ -38,6 +38,16 @@ #define STDERR_FILENO 2 /* + * POSIX open system call + * + * @path: Path to open + * @flags: O_ flags + * + * Returns the file descriptor on success + */ +int open(const char *path, int flags); + +/* * POSIX write system call * * @fd: File descriptor to write at |