diff options
Diffstat (limited to 'lib/libc/include/unistd.h')
-rw-r--r-- | lib/libc/include/unistd.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/lib/libc/include/unistd.h b/lib/libc/include/unistd.h index ebc9ff6..8c82eb8 100644 --- a/lib/libc/include/unistd.h +++ b/lib/libc/include/unistd.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023-2024 Ian Marco Moffett and the Osmora Team. + * Copyright (c) 2023-2025 Ian Marco Moffett and the Osmora Team. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -30,9 +30,28 @@ #ifndef _UNISTD_H #define _UNISTD_H +#include <sys/exec.h> #include <sys/types.h> +#include <sys/cdefs.h> +#include <stddef.h> +#define F_OK 0 + +/* lseek whence, follows Hyra ABI */ +#define SEEK_SET 0 +#define SEEK_CUR 1 +#define SEEK_END 2 + +__BEGIN_DECLS + +int sysconf(int name); ssize_t read(int fd, void *buf, size_t count); +ssize_t write(int fd, const void *buf, size_t count); + int close(int fd); +int access(const char *path, int mode); +off_t lseek(int fildes, off_t offset, int whence); + +__END_DECLS #endif /* !_UNISTD_H */ |