diff options
author | Ian Moffett <ian@osmora.org> | 2024-04-06 19:48:49 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-04-06 19:48:49 -0400 |
commit | f2aefbd23bffd2730a950c5abe1e3667dac97eca (patch) | |
tree | 9171b98b440bdbfee01e7fcb6e9dc6a219294ff4 /lib/libc/include | |
parent | 8370d0a3eb373c37386de32ccd3a8a38ddeb8b02 (diff) |
libc: Add write()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/libc/include')
-rw-r--r-- | lib/libc/include/unistd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc/include/unistd.h b/lib/libc/include/unistd.h index 47cde66..8784d6b 100644 --- a/lib/libc/include/unistd.h +++ b/lib/libc/include/unistd.h @@ -30,11 +30,17 @@ #ifndef _UNISTD_H #define _UNISTD_H +#include <sys/types.h> +#include <stddef.h> + #if defined(__cplusplus) extern "C" { #endif +#define STDOUT_FILENO 1 + _Noreturn void _exit(int status); +ssize_t write(int fd, const void *buf, size_t count); #if defined(__cplusplus) } |