Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:36

0001 #ifndef _XW32DEFS_H
0002 # define  _XW32DEFS_H
0003 
0004 # ifdef __GNUC__ /* mingw is more close to unix than msvc */
0005 #  if !defined(__daddr_t_defined) 
0006 typedef char *caddr_t;
0007 #  endif
0008 #  define lstat stat
0009 
0010 # else
0011 typedef char *caddr_t;
0012 
0013 #  define access       _access
0014 #  define alloca       _alloca
0015 #  define chdir _chdir
0016 #  define chmod    _chmod
0017 #  define close    _close
0018 #  define creat    _creat
0019 #  define dup      _dup
0020 #  define dup2     _dup2
0021 #  define environ     _environ
0022 #  define execl  _execl
0023 #  define execle     _execle
0024 #  define execlp     _execlp
0025 #  define execlpe  _execlpe
0026 #  define execv  _execv
0027 #  define execve     _execve
0028 #  define execvp     _execvp
0029 #  define execvpe  _execvpe
0030 #  define fdopen      _fdopen
0031 #  define fileno      _fileno
0032 #  define fstat  _fstat
0033 #  define getcwd    _getcwd
0034 #  define getpid     _getpid
0035 #  define hypot     _hypot
0036 #  define isascii __isascii
0037 #  define isatty       _isatty
0038 #  define lseek    _lseek
0039 #  define mkdir _mkdir
0040 #  define mktemp       _mktemp
0041 #  define open     _open
0042 #  define putenv        _putenv
0043 #  define read     _read
0044 #  define rmdir _rmdir
0045 #  define sleep(x) Sleep((x) * 1000)
0046 #  define stat   _stat
0047 #  define sys_errlist _sys_errlist
0048 #  define sys_nerr    _sys_nerr
0049 #  define umask    _umask
0050 #  define unlink       _unlink
0051 #  define write    _write
0052 #  define random   rand
0053 #  define srandom  srand
0054 
0055 #  define O_RDONLY    _O_RDONLY
0056 #  define O_WRONLY    _O_WRONLY
0057 #  define O_RDWR        _O_RDWR
0058 #  define O_APPEND    _O_APPEND
0059 #  define O_CREAT     _O_CREAT
0060 #  define O_TRUNC     _O_TRUNC
0061 #  define O_EXCL        _O_EXCL
0062 #  define O_TEXT        _O_TEXT
0063 #  define O_BINARY    _O_BINARY
0064 #  define O_RAW     _O_BINARY
0065 
0066 #  define S_IFMT     _S_IFMT
0067 #  define S_IFDIR  _S_IFDIR
0068 #  define S_IFCHR  _S_IFCHR
0069 #  define S_IFREG  _S_IFREG
0070 #  define S_IREAD  _S_IREAD
0071 #  define S_IWRITE _S_IWRITE
0072 #  define S_IEXEC  _S_IEXEC
0073 
0074 #  define   F_OK    0
0075 #  define   X_OK    1
0076 #  define   W_OK    2
0077 #  define   R_OK    4
0078 # endif /* __GNUC__ */
0079 #endif