|
Revision 4220, 3.4 kB
(checked in by miyoshi, 8 months ago)
|
Sync up with Emacs22.2.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
#include <pwd.h> |
|---|
| 25 |
#include <malloc.h> |
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
#include <direct.h> |
|---|
| 30 |
#include <io.h> |
|---|
| 31 |
#include <stdio.h> |
|---|
| 32 |
|
|---|
| 33 |
#ifdef sleep |
|---|
| 34 |
#undef sleep |
|---|
| 35 |
#endif |
|---|
| 36 |
void sleep(unsigned long seconds); |
|---|
| 37 |
char *getwd (char *dir); |
|---|
| 38 |
int getppid(void); |
|---|
| 39 |
char * getlogin (); |
|---|
| 40 |
char * cuserid (char * s); |
|---|
| 41 |
int getuid (); |
|---|
| 42 |
int setuid (int uid); |
|---|
| 43 |
struct passwd * getpwuid (int uid); |
|---|
| 44 |
char * getpass (const char * prompt); |
|---|
| 45 |
int fchown (int fd, int uid, int gid); |
|---|
| 46 |
|
|---|
| 47 |
#ifndef BSTRING |
|---|
| 48 |
#define bzero(b, l) memset(b, 0, l) |
|---|
| 49 |
#define bcopy(s, d, l) memcpy(d, s, l) |
|---|
| 50 |
#define bcmp(a, b, l) memcmp(a, b, l) |
|---|
| 51 |
#endif |
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 |
#undef access |
|---|
| 55 |
#define access _access |
|---|
| 56 |
#undef chdir |
|---|
| 57 |
#define chdir _chdir |
|---|
| 58 |
#undef chmod |
|---|
| 59 |
#define chmod _chmod |
|---|
| 60 |
#undef close |
|---|
| 61 |
#define close _close |
|---|
| 62 |
#undef creat |
|---|
| 63 |
#define creat _creat |
|---|
| 64 |
#undef ctime |
|---|
| 65 |
#undef dup |
|---|
| 66 |
#define dup _dup |
|---|
| 67 |
#undef dup2 |
|---|
| 68 |
#define dup2 _dup2 |
|---|
| 69 |
#undef fopen |
|---|
| 70 |
#undef mkdir |
|---|
| 71 |
#define mkdir _mkdir |
|---|
| 72 |
#undef mktemp |
|---|
| 73 |
#define mktemp _mktemp |
|---|
| 74 |
#undef open |
|---|
| 75 |
#define open _open |
|---|
| 76 |
#undef pipe |
|---|
| 77 |
#define pipe _pipe |
|---|
| 78 |
#undef read |
|---|
| 79 |
#define read _read |
|---|
| 80 |
#undef rename |
|---|
| 81 |
#undef rmdir |
|---|
| 82 |
#define rmdir _rmdir |
|---|
| 83 |
#undef unlink |
|---|
| 84 |
#define unlink _unlink |
|---|
| 85 |
#undef write |
|---|
| 86 |
#define write _write |
|---|
| 87 |
|
|---|
| 88 |
|
|---|
| 89 |
#if defined (__MINGW32__) |
|---|
| 90 |
#include <_mingw.h> |
|---|
| 91 |
|
|---|
| 92 |
|
|---|
| 93 |
#if __MINGW32_MAJOR_VERSION >= 4 \ |
|---|
| 94 |
|| __MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 2 |
|---|
| 95 |
#undef fileno |
|---|
| 96 |
#endif |
|---|
| 97 |
|| __MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 2 */ |
|---|
| 98 |
#endif |
|---|
| 99 |
|
|---|
| 100 |
|
|---|
| 101 |
#define execlp _execlp |
|---|
| 102 |
#define execvp _execvp |
|---|
| 103 |
#define fcloseall _fcloseall |
|---|
| 104 |
#define fdopen _fdopen |
|---|
| 105 |
#define fgetchar _fgetchar |
|---|
| 106 |
#ifndef fileno |
|---|
| 107 |
#define fileno _fileno |
|---|
| 108 |
#endif |
|---|
| 109 |
#define flushall _flushall |
|---|
| 110 |
#define fputchar _fputchar |
|---|
| 111 |
#define getcwd _getcwd |
|---|
| 112 |
#define getw _getw |
|---|
| 113 |
#define getpid _getpid |
|---|
| 114 |
#define isatty _isatty |
|---|
| 115 |
#define locking _locking |
|---|
| 116 |
#define logb _logb |
|---|
| 117 |
#define _longjmp longjmp |
|---|
| 118 |
#define lseek _lseek |
|---|
| 119 |
#define popen _popen |
|---|
| 120 |
#define pclose _pclose |
|---|
| 121 |
#define putw _putw |
|---|
| 122 |
#define umask _umask |
|---|
| 123 |
#define utime _utime |
|---|
| 124 |
#define index strchr |
|---|
| 125 |
#define rindex strrchr |
|---|
| 126 |
|
|---|
| 127 |
|
|---|
| 128 |
#undef _WINSOCKAPI_ |
|---|
| 129 |
#undef _WINSOCK_H |
|---|
| 130 |
|
|---|
| 131 |
|
|---|
| 132 |
|
|---|
| 133 |
|
|---|
| 134 |
|
|---|