diff options
Diffstat (limited to 'lib/libc/include/unistd.h')
-rw-r--r-- | lib/libc/include/unistd.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/include/unistd.h b/lib/libc/include/unistd.h index b9c9f5e..21206ad 100644 --- a/lib/libc/include/unistd.h +++ b/lib/libc/include/unistd.h @@ -47,6 +47,9 @@ __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); @@ -60,6 +63,11 @@ off_t lseek(int fildes, off_t offset, int whence); pid_t getpid(void); pid_t getppid(void); +extern char *optarg; +extern int optind, opterr, optopt; + +int getopt(int argc, char *argv[], const char *optstring); + __END_DECLS #endif /* !_UNISTD_H */ |