|
|
1.1 root 1: 1c1
2: < #ifndef MSDOS
3: ---
4: > #ifndef NON_UNIX_STDIO
5: 7,8d6
6: < #include "fcntl.h"
7: < #include "rawio.h"
8: 9a8
9: > #include "rawio.h" /* for fcntl.h, fdopen */
10: 20,22d18
11: < #ifndef O_WRONLY
12: < #define O_WRONLY 1
13: < #endif
14: 79c75,76
15: < "'new' file exists" /* 128 */
16: ---
17: > "'new' file exists", /* 128 */
18: > "can't append to file" /* 129 */
19: 89c86
20: < #ifdef MSDOS
21: ---
22: > #ifdef NON_UNIX_STDIO
23: 174,180d170
24: < #ifdef COMMENTED_OUT
25: < if(isatty(fileno(stderr))) {
26: < extern char *malloc();
27: < setbuf(stderr, malloc(BUFSIZ));
28: < /* setvbuf(stderr, _IOLBF, 0, 0); */
29: < } /* wastes space, but win for debugging in windows */
30: < #endif
31: 182c172
32: < setbuf(stderr, malloc(BUFSIZ));
33: ---
34: > setbuf(stderr, (char *)malloc(BUFSIZ));
35: 240a231,234
36: > #ifdef NON_UNIX_STDIO
37: > if (!(f__cf = x->ufd =
38: > freopen(x->ufnm,f__w_mode[x->ufmt],x->ufd)))
39: > #else
40: 241a236
41: > #endif
42: 245a241,244
43: > #ifdef NON_UNIX_STDIO
44: > if (!(f__cf = x->ufd =
45: > freopen(x->ufnm, f__w_mode[x->ufmt+2], x->ufd)))
46: > #else
47: 249c248,250
48: < || (f__cf = x->ufd = fdopen(k,f__w_mode[x->ufmt])) == NULL) {
49: ---
50: > || (f__cf = x->ufd = fdopen(k,f__w_mode[x->ufmt])) == NULL)
51: > #endif
52: > {
53: 259a261,274
54: >
55: > int
56: > #ifdef KR_headers
57: > err__fl(f, m, s) int f, m; char *s;
58: > #else
59: > err__fl(int f, int m, char *s)
60: > #endif
61: > {
62: > if (!f)
63: > f__fatal(m, s);
64: > if (f__doend)
65: > (*f__doend)();
66: > return errno = m;
67: > }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.