#ifndef UNISTD_H #define UNISTD_H #include #ifndef SEEK_SET # define SEEK_SET 0 /* Seek from beginning of file. */ # define SEEK_CUR 1 /* Seek from current position. */ # define SEEK_END 2 /* Set file pointer to EOF plus "offset" */ #endif #define S_IFDIR FILE_ATTRIBUTE_DIRECTORY struct stat { int st_mode; }; typedef long off_t; int close (int fd); int open(const char *path, int mode); int open(const char *path, int access, unsigned mode); int read(int fd, void* buf, size_t count); int write(int fd, const void * buf, size_t count); off_t lseek(int fildes, off_t offset, int whence); int access(const char* path, int mode); int mkdir(const char *); int remove(const char *); int stat(const char *, struct stat *); #endif