| Rev | Line | |
|---|
| [9] | 1 | /*
|
|---|
| 2 | * data.c - this is the initialization for the standard streams
|
|---|
| 3 | */
|
|---|
| 4 | /* $Header: /cvsup/minix/src/lib/stdio/data.c,v 1.1.1.1 2005/04/21 14:56:34 beng Exp $ */
|
|---|
| 5 |
|
|---|
| 6 | #include <stdio.h>
|
|---|
| 7 |
|
|---|
| 8 | struct __iobuf __stdin = {
|
|---|
| 9 | 0, 0, _IOREAD, 0,
|
|---|
| 10 | (unsigned char *)NULL, (unsigned char *)NULL,
|
|---|
| 11 | };
|
|---|
| 12 |
|
|---|
| 13 | struct __iobuf __stdout = {
|
|---|
| 14 | 0, 1, _IOWRITE, 0,
|
|---|
| 15 | (unsigned char *)NULL, (unsigned char *)NULL,
|
|---|
| 16 | };
|
|---|
| 17 |
|
|---|
| 18 | struct __iobuf __stderr = {
|
|---|
| 19 | 0, 2, _IOWRITE | _IOLBF, 0,
|
|---|
| 20 | (unsigned char *)NULL, (unsigned char *)NULL,
|
|---|
| 21 | };
|
|---|
| 22 |
|
|---|
| 23 | FILE *__iotab[FOPEN_MAX] = {
|
|---|
| 24 | &__stdin,
|
|---|
| 25 | &__stdout,
|
|---|
| 26 | &__stderr,
|
|---|
| 27 | 0
|
|---|
| 28 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.