From 6a5543bb8f1f535ca49737bcd7be0cafca3b2a08 Mon Sep 17 00:00:00 2001 From: hachem Date: Mon, 12 Oct 2026 23:08:48 +0200 Subject: feat: lib sea --- sysroot/usr/include/unistd.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 sysroot/usr/include/unistd.h (limited to 'sysroot/usr/include/unistd.h') diff --git a/sysroot/usr/include/unistd.h b/sysroot/usr/include/unistd.h new file mode 100644 index 0000000..f5a67ab --- /dev/null +++ b/sysroot/usr/include/unistd.h @@ -0,0 +1,18 @@ +#ifndef _UNISTD_H +#define _UNISTD_H + +#include + +#define SEEK_SET 0 +#define SEEK_CUR 1 +#define SEEK_END 2 + +long read(int fd, void* buffer, size_t length); +long write(int fd, const void* buffer, size_t length); +int close(int fd); +long lseek(int fd, long offset, int whence); + +void* sbrk(long increment); +int brk(void* address); + +#endif -- cgit v1.3