From f2aefbd23bffd2730a950c5abe1e3667dac97eca Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 6 Apr 2024 19:48:49 -0400 Subject: libc: Add write() Signed-off-by: Ian Moffett --- lib/libc/include/unistd.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/libc/include') 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 +#include + #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) } -- cgit v1.2.3