Line | |
---|
1 | /* $Xorg: Xw32defs.h,v 1.3 2000/08/18 04:05:44 coskrey Exp $ */
|
---|
2 |
|
---|
3 | #ifndef _XW32DEFS_H
|
---|
4 | #define _XW32DEFS_H
|
---|
5 |
|
---|
6 | #ifdef __GNUC__ /* mingw is more close to unix than msvc */
|
---|
7 | #if !defined(__daddr_t_defined)
|
---|
8 | typedef char *caddr_t;
|
---|
9 | #endif
|
---|
10 | #define lstat stat
|
---|
11 |
|
---|
12 | #else
|
---|
13 | typedef char *caddr_t;
|
---|
14 |
|
---|
15 | #define access _access
|
---|
16 | #define alloca _alloca
|
---|
17 | #define chdir _chdir
|
---|
18 | #define chmod _chmod
|
---|
19 | #define close _close
|
---|
20 | #define creat _creat
|
---|
21 | #define dup _dup
|
---|
22 | #define dup2 _dup2
|
---|
23 | #define environ _environ
|
---|
24 | #define execl _execl
|
---|
25 | #define execle _execle
|
---|
26 | #define execlp _execlp
|
---|
27 | #define execlpe _execlpe
|
---|
28 | #define execv _execv
|
---|
29 | #define execve _execve
|
---|
30 | #define execvp _execvp
|
---|
31 | #define execvpe _execvpe
|
---|
32 | #define fdopen _fdopen
|
---|
33 | #define fileno _fileno
|
---|
34 | #define fstat _fstat
|
---|
35 | #define getcwd _getcwd
|
---|
36 | #define getpid _getpid
|
---|
37 | #define hypot _hypot
|
---|
38 | #define isascii __isascii
|
---|
39 | #define isatty _isatty
|
---|
40 | #define lseek _lseek
|
---|
41 | #define mkdir _mkdir
|
---|
42 | #define mktemp _mktemp
|
---|
43 | #define open _open
|
---|
44 | #define putenv _putenv
|
---|
45 | #define read _read
|
---|
46 | #define rmdir _rmdir
|
---|
47 | #define sleep(x) _sleep((x) * 1000)
|
---|
48 | #define stat _stat
|
---|
49 | #define sys_errlist _sys_errlist
|
---|
50 | #define sys_nerr _sys_nerr
|
---|
51 | #define umask _umask
|
---|
52 | #define unlink _unlink
|
---|
53 | #define write _write
|
---|
54 | #define random rand
|
---|
55 | #define srandom srand
|
---|
56 |
|
---|
57 | #define O_RDONLY _O_RDONLY
|
---|
58 | #define O_WRONLY _O_WRONLY
|
---|
59 | #define O_RDWR _O_RDWR
|
---|
60 | #define O_APPEND _O_APPEND
|
---|
61 | #define O_CREAT _O_CREAT
|
---|
62 | #define O_TRUNC _O_TRUNC
|
---|
63 | #define O_EXCL _O_EXCL
|
---|
64 | #define O_TEXT _O_TEXT
|
---|
65 | #define O_BINARY _O_BINARY
|
---|
66 | #define O_RAW _O_BINARY
|
---|
67 |
|
---|
68 | #define S_IFMT _S_IFMT
|
---|
69 | #define S_IFDIR _S_IFDIR
|
---|
70 | #define S_IFCHR _S_IFCHR
|
---|
71 | #define S_IFREG _S_IFREG
|
---|
72 | #define S_IREAD _S_IREAD
|
---|
73 | #define S_IWRITE _S_IWRITE
|
---|
74 | #define S_IEXEC _S_IEXEC
|
---|
75 |
|
---|
76 | #define F_OK 0
|
---|
77 | #define X_OK 1
|
---|
78 | #define W_OK 2
|
---|
79 | #define R_OK 4
|
---|
80 | #endif /* __GNUC__ */
|
---|
81 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.