source: trunk/minix/lib/stdio/data.c@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 559 bytes
RevLine 
[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
8struct __iobuf __stdin = {
9 0, 0, _IOREAD, 0,
10 (unsigned char *)NULL, (unsigned char *)NULL,
11};
12
13struct __iobuf __stdout = {
14 0, 1, _IOWRITE, 0,
15 (unsigned char *)NULL, (unsigned char *)NULL,
16};
17
18struct __iobuf __stderr = {
19 0, 2, _IOWRITE | _IOLBF, 0,
20 (unsigned char *)NULL, (unsigned char *)NULL,
21};
22
23FILE *__iotab[FOPEN_MAX] = {
24 &__stdin,
25 &__stdout,
26 &__stderr,
27 0
28};
Note: See TracBrowser for help on using the repository browser.