42 #ifndef __EST_UNIX_WIN32_H__ 43 #define __EST_UNIX_WIN32_H__ 45 #if defined(SYSTEM_IS_WIN32) 55 static inline int getpid(
void)
56 {
return (
int)GetCurrentProcessId(); }
58 # define getpid() GetCurrentProcessId() 69 #define waitpid(P, SP, FL) unix_waitpid((P), (SP), (FL)) 73 #define fork() unix_fork() 75 #define rint(N) ((float)(int)((N)+0.5)) 85 #define access(FILE,MODE) unix_access(FILE, MODE) 94 int unix_read(HANDLE fd,
char *buffer,
int n);
95 int unix_write(HANDLE fd,
const char *buffer,
int n);
100 #define read(FD,B,N) _read((FD),(B),(N)) 110 #define getcwd(P, L) unix_getcwd((P), (L)) 111 #define chdir(D) SetCurrentDirectory(D) 114 # define memcpy(DST, SRC, N) CopyMemory((DST), (SRC), (N))
int unix_access(const char *file, int mode)
int unix_waitpid(int pid, int *statusp, int flags)
int unix_read(HANDLE fd, char *buffer, int n)
char * unix_getcwd(char *buffer, int maxlength)