11 |
|
#include <string.h> |
12 |
|
|
13 |
|
#include "platform.h" |
14 |
+ |
#include "rtprocess.h" |
15 |
|
#include "resolu.h" |
16 |
|
|
17 |
|
#ifdef getc_unlocked /* avoid nasty file-locking overhead */ |
21 |
|
#define putchar putchar_unlocked |
22 |
|
#endif |
23 |
|
|
23 |
– |
#if defined(_WIN32) || defined(_WIN64) |
24 |
– |
#include <process.h> |
25 |
– |
#define execvp _execvp |
26 |
– |
#endif |
27 |
– |
|
24 |
|
static gethfunc tabstr; |
25 |
|
static void getdim(FILE *fp); |
26 |
|
static void copycat(void); |
161 |
|
|
162 |
|
fflush(stdout); |
163 |
|
while ((n = fread(buf, 1, sizeof(buf), stdin)) > 0) |
164 |
< |
if (write(fileno(stdout), buf, n) != n) |
164 |
> |
if (writebuf(fileno(stdout), buf, n) != n) |
165 |
|
break; |
166 |
|
} |