diff options
Diffstat (limited to 'api/posix')
| -rw-r--r-- | api/posix/fcntl.h | 4 | ||||
| -rw-r--r-- | api/posix/sys/types.h | 7 | ||||
| -rw-r--r-- | api/posix/unistd.h | 11 |
3 files changed, 22 insertions, 0 deletions
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 <stdint.h> + +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 +}; + |
