1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 #include <pwd.h>
20 #include <malloc.h>
21
22
23
24 #include <direct.h>
25 #include <fcntl.h>
26 #include <io.h>
27 #include <stdio.h>
28
29 #ifdef sleep
30 #undef sleep
31 #endif
32 unsigned sleep (unsigned seconds);
33 char *getwd (char *dir);
34 int getppid (void);
35 char * getlogin (void);
36 unsigned getegid (void);
37 unsigned getgid (void);
38 int setuid (unsigned uid);
39 int setregid (unsigned rgid, unsigned gid);
40 char * getpass (const char * prompt);
41 int fchown (int fd, unsigned uid, unsigned gid);
42
43
44 #undef access
45 #define access _access
46 #undef chdir
47 #define chdir _chdir
48 #undef chmod
49 #define chmod _chmod
50 #undef close
51 #define close _close
52 #undef creat
53 #define creat _creat
54 #undef ctime
55 #undef dup
56 #define dup _dup
57 #undef dup2
58 #define dup2 _dup2
59 #undef fopen
60 #undef pipe
61 #define pipe _pipe
62 #undef read
63 #define read _read
64 #undef rmdir
65 #define rmdir _rmdir
66 #undef unlink
67 #define unlink _unlink
68 #undef write
69 #define write _write
70
71
72 #define execlp _execlp
73 #define execvp _execvp
74 #define fdopen _fdopen
75 #ifndef fileno
76 #define fileno _fileno
77 #endif
78 #define getcwd _getcwd
79 #define getw _getw
80 #define getpid _getpid
81 #define isatty _isatty
82 #define locking _locking
83 #define logb _logb
84 #define _longjmp longjmp
85 #define popen _popen
86 #define pclose _pclose
87 #define umask _umask
88 #define utime _utime
89 #define index strchr
90 #define rindex strrchr
91
92
93 #undef _WINSOCKAPI_
94 #undef _WINSOCK_H
95
96