#ifndef UNISTD_H
#define UNISTD_H
#include <stddef.h>
#include <io.h>
#include <sys/types.h>
char * getpass (const char *prompt);
pid_t getpid (void);
int readlink (const char *path, char *buf, size_t buf_size);
unsigned int sleep (unsigned int seconds);
int usleep (useconds_t microseconds);
int __declspec(dllimport) __stdcall gethostname (char * name, int namelen);
#if 0
int chdir (const char *pathname);
int mkdir (const char *pathname, mode_t mode);
int rmdir (const char *pathname);
int link (const char *oldpath, const char *newpath);
int unlink (const char *pathname);
int rename (const char *oldpath, const char *newpath);
int stat (const char *file_name, struct stat *buf);
int chmod (const char *path, mode_t mode);
int chown (const char *path, uid_t owner, gid_t group);
int utime (const char *filename, struct utimbuf *buf);
DIR *opendir (const char *name);
struct dirent *readdir(DIR *dir);
int closedir (DIR *dir);
void rewinddir (DIR *dir);
int access (const char *pathname, int mode);
int open (const char *pathname, int flags);
int creat (const char *pathname, mode_t mode);
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);
int fcntl (int fd, int cmd);
int fstat (int filedes, struct stat *buf);
off_t lseek (int fildes, off_t offset, int whence);
int dup (int oldfd);
int dup2 (int oldfd, int newfd);
int pipe (int filedes[2]);
mode_t umask (mode_t mask);
FILE *fdopen (int fildes, const char *mode);
int fileno (FILE *stream);
pid_t fork (void);
int execl (const char *path, const char *arg, ...);
int execle (const char *path, const char *arg, ...);
int execlp (const char *file, const char *arg, ...);
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[]);
pid_t waitpid (pid_t pid, int *status, int options);
pid_t waitpid (pid_t pid, int *status, int options);
void _exit (int status);
int kill (pid_t pid, int sig);
int pause (void);
unsigned int alarm (unsigned int seconds);
int setuid (uid_t uid);
int setgid (gid_t gid);
#endif
#endif