diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-15 14:50:05 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-15 14:50:05 -0400 |
commit | dfebc85378c448602946fc39d1ff3943dc03edec (patch) | |
tree | 040892ca5a471f88f19c6bf2986a5c4baccd2978 /src/lib/libc/include | |
parent | fbcc3d9e458b8c3966560028d1f1f10ba4e74d37 (diff) |
libc: unistd: Add close 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 d2c32b6..b668d5b 100644 --- a/src/lib/libc/include/unistd.h +++ b/src/lib/libc/include/unistd.h @@ -48,6 +48,15 @@ int open(const char *path, int flags); /* + * Close a file using its file descriptor + * + * @fd: File descriptor to close + * + * Returns zero on success + */ +int close(int fd); + +/* * POSIX write system call * * @fd: File descriptor to write at |