2 * unistd.h: Emulation of some standard UNIX APIs
7 /* map ssize_t to int */
10 /* Map the Windows equivalents to the POSIX function names */
12 #define close(fd) _close(fd)
13 #define read(fd,buf,n) _read(fd,buf,n)
14 #define write(fd,buf,n) _write(fd,buf,n)
16 /* Implement some sys/stat.h macros that are missing in Windows */
17 #define S_ISDIR(mode) ((mode) & _S_IFDIR)
18 #define S_ISREG(mode) ((mode) & _S_IFREG)