diff options
Diffstat (limited to 'lib/libc/include')
-rw-r--r-- | lib/libc/include/ctype.h | 1 | ||||
-rw-r--r-- | lib/libc/include/unistd.h | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/lib/libc/include/ctype.h b/lib/libc/include/ctype.h index 2348852..0ff9a43 100644 --- a/lib/libc/include/ctype.h +++ b/lib/libc/include/ctype.h @@ -72,6 +72,7 @@ __isspace(int c) return 1; return 0; + } } __END_DECLS diff --git a/lib/libc/include/unistd.h b/lib/libc/include/unistd.h index b9c9f5e..40ebee2 100644 --- a/lib/libc/include/unistd.h +++ b/lib/libc/include/unistd.h @@ -47,18 +47,39 @@ __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; + +int getopt(int argc, char *argv[], const char *optstring); __END_DECLS |