diff options
Diffstat (limited to 'lib/libc/include/unistd.h')
-rw-r--r-- | lib/libc/include/unistd.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/libc/include/unistd.h b/lib/libc/include/unistd.h index 8b03b81..40ebee2 100644 --- a/lib/libc/include/unistd.h +++ b/lib/libc/include/unistd.h @@ -47,18 +47,34 @@ __BEGIN_DECLS int sysconf(int name); int setuid(uid_t new); +int gethostname(char *name, size_t size); +int sethostname(const char *name, size_t size); + uid_t getuid(void); char *getlogin(void); +char *getcwd(char *buf, size_t size); +char *getwd(char *pathname); + +int symlink(const char *target, const char *linkpath); +int synlinkat(const char *target, int newdirfd, const char *linkpath); + 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); +int unlinkat(int dirfd, const char *pathname, int flags); +int unlink(const char *path); + +int dup(int fd); +int dup2(int fd, int fd1); pid_t getpid(void); pid_t getppid(void); +pid_t fork(void); extern char *optarg; extern int optind, opterr, optopt; |