From 3f9278b48ff4bc0d2cf1604034b3bba548572f04 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Sun, 11 Feb 2024 23:48:04 +0000 Subject: kjarna initial impl --- api/posix/fcntl.h | 4 ++++ api/posix/sys/types.h | 7 +++++++ api/posix/unistd.h | 11 +++++++++++ 3 files changed, 22 insertions(+) create mode 100644 api/posix/fcntl.h create mode 100644 api/posix/sys/types.h create mode 100644 api/posix/unistd.h (limited to 'api/posix') diff --git a/api/posix/fcntl.h b/api/posix/fcntl.h new file mode 100644 index 0000000..7e55e02 --- /dev/null +++ b/api/posix/fcntl.h @@ -0,0 +1,4 @@ +#pragma once + +#define O_RDONLY 0 + diff --git a/api/posix/sys/types.h b/api/posix/sys/types.h new file mode 100644 index 0000000..2be0ef8 --- /dev/null +++ b/api/posix/sys/types.h @@ -0,0 +1,7 @@ +#pragma once + +#include + +typedef int64_t ssize_t; +typedef int64_t off_t; + diff --git a/api/posix/unistd.h b/api/posix/unistd.h new file mode 100644 index 0000000..6bd69f5 --- /dev/null +++ b/api/posix/unistd.h @@ -0,0 +1,11 @@ +#pragma once + +#define STDIN_FILENO 0 +#define STDOUT_FILENO 1 +#define STDERR_FILENO 2 + +enum seek_whence +{ + SEEK_SET +}; + -- cgit v1.3.1-1-g115d