/* * Visual C/C++ unistd.h compat header file */ #ifndef UNISTD_H_INCLUDED #define UNISTD_H_INCLUDED #include #include #include #include #include #include #include /* getpid */ #include /* _MAX_PATH */ #if !defined(PATH_MAX) #include #define PATH_MAX _MAX_PATH #define NAME_MAX _MAX_PATH #endif /*fcntl.h*/ /* WIN32 access */ #define F_OK 0 /* 00 Existence only */ #define W_OK 2 /* 02 Write permission */ #define X_OK 2 #define R_OK 4 /* 04 Read permission */ /* 06 Read and write permission */ #ifndef S_ISDIR #define S_ISDIR(m) ((m) & _S_IFDIR) #endif /*stdio.h*/ #define STDIN_FILENO 0 #define STDOUT_FILENO 1 #define STDERR_FILENO 2 /*types.h*/ #ifndef _UNIXTYPES_T_DEFINED #define _UNIXTYPES_T_DEFINED typedef unsigned char u_char; /* BSD compatibility */ typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; typedef unsigned char uchar; /* Sys V compatibility */ typedef unsigned short ushort; typedef unsigned int uint; #endif /*_UNIXTYPES_T_DEFINED*/ #define strcasecmp(a,b) stricmp(a,b) #endif /*UNISTD_H_INCLUDED*/