ack/lang/cem/libcc.ansi/sys/stdio/data.c

33 lines
503 B
C
Raw Normal View History

1989-05-30 13:34:25 +00:00
/*
* data.c - this is the initialization for the standard streams
*/
1994-06-24 14:02:31 +00:00
/* $Id$ */
1989-05-30 13:34:25 +00:00
2018-06-21 20:33:47 +00:00
#include <stdio.h>
1989-05-30 13:34:25 +00:00
2018-06-23 16:54:40 +00:00
#if ACKCONF_WANT_STDIO
1989-12-18 15:04:14 +00:00
struct __iobuf __stdin = {
1989-05-30 13:34:25 +00:00
0, 0, _IOREAD, 0,
2018-06-21 20:33:47 +00:00
(unsigned char*)NULL, (unsigned char*)NULL,
1989-05-30 13:34:25 +00:00
};
1989-12-18 15:04:14 +00:00
struct __iobuf __stdout = {
0, 1, _IOWRITE, 0,
2018-06-21 20:33:47 +00:00
(unsigned char*)NULL, (unsigned char*)NULL,
1989-05-30 13:34:25 +00:00
};
1989-12-18 15:04:14 +00:00
struct __iobuf __stderr = {
0, 2, _IOWRITE | _IOLBF, 0,
2018-06-21 20:33:47 +00:00
(unsigned char*)NULL, (unsigned char*)NULL,
1989-05-30 13:34:25 +00:00
};
2018-06-21 20:33:47 +00:00
FILE* __iotab[FOPEN_MAX] = {
1989-12-18 15:04:14 +00:00
&__stdin,
&__stdout,
&__stderr,
1989-05-30 13:34:25 +00:00
0
};
2018-06-23 16:54:40 +00:00
#endif