Mercurial > hg > CbC > old > device
comparison stdio.h @ 21:f9f789aa7587
Linux version (Redhat 7.2)
author | kono |
---|---|
date | Mon, 03 Feb 2003 23:11:21 +0900 |
parents | 8d3db5fc8a97 |
children | b35787d8a442 |
comparison
equal
deleted
inserted
replaced
20:8d3db5fc8a97 | 21:f9f789aa7587 |
---|---|
9 #define stdin (&__sF[0]) | 9 #define stdin (&__sF[0]) |
10 #define stdout (&__sF[1]) | 10 #define stdout (&__sF[1]) |
11 #define stderr (&__sF[2]) | 11 #define stderr (&__sF[2]) |
12 | 12 |
13 #else | 13 #else |
14 #ifdef bsd | |
14 extern FILE __sstdin; | 15 extern FILE __sstdin; |
15 extern FILE __sstdout; | 16 extern FILE __sstdout; |
16 extern FILE __sstderr; | 17 extern FILE __sstderr; |
17 | 18 |
18 #define stdin (&__sstdin) | 19 #define stdin (&__sstdin) |
19 #define stdout (&__sstdout) | 20 #define stdout (&__sstdout) |
20 #define stderr (&__sstderr) | 21 #define stderr (&__sstderr) |
22 #else | |
23 /* new Linux */ | |
24 extern FILE *stdin; | |
25 extern FILE *stdout; | |
26 extern FILE *stderr; | |
27 /* | |
28 #define stdin stdin | |
29 #define stdout stdout | |
30 #define stderr stderr | |
31 */ | |
32 #endif | |
21 #endif | 33 #endif |
22 | 34 |
23 #define BUFSIZ 1024 /* size of buffer used by setbuf */ | 35 #define BUFSIZ 1024 /* size of buffer used by setbuf */ |
24 #define EOF (-1) | 36 #define EOF (-1) |
25 #define NULL 0 | 37 #define NULL 0 |