#ifndef BOREDOS_LIBC_UNISTD_H #define BOREDOS_LIBC_UNISTD_H #include #include "sys/types.h" #define SEEK_SET 0 #define SEEK_CUR 1 #define SEEK_END 2 #define F_OK 0 #define X_OK 1 #define W_OK 2 #define R_OK 4 int close(int fd); ssize_t read(int fd, void *buf, size_t count); ssize_t write(int fd, const void *buf, size_t count); off_t lseek(int fd, off_t offset, int whence); int unlink(const char *pathname); int isatty(int fd); int execv(const char *path, char *const argv[]); int execve(const char *path, char *const argv[], char *const envp[]); int execvp(const char *file, char *const argv[]); int execl(const char *path, const char *arg, ...); int execlp(const char *file, const char *arg, ...); int execle(const char *path, const char *arg, ...); pid_t waitpid(pid_t pid, int *status, int options); #endif