void __init_files( void )
{
 /* this routine is called from the startup code to initialize 
  * the file handling. */
 /* prepare stdin, stdout, stderr: */
 stdin = (FILE *) FILEALLOC( sizeof( FILE ));
 stdin->fd = 0;
 stdin->flag = 0;   /* no error for new file */
 stdin->mode = O_RDONLY;
 stdin->name = NULL;
 stdin->buffer = __UNBUFALLOC__;
 stdinbuffer = stdin->buffer;
 __iob[0] = stdin;
 stdin->current = 0;  /* no character fungetc'd for new file */
 stdout = (FILE *) FILEALLOC( sizeof( FILE ));
 stdout->fd = 1;
 stdout->flag = 0;   /* no error for new file */
 stdout->mode = O_APPEND | O_WRONLY;
 stdout->name = NULL;
 stdout->buffer = NULL;   /* you cannot unputc what has been printed */
 /*stdout->current = 0;     /* without functionality for stdout */
 __iob[1] = stdout;
 stderr = (FILE *) FILEALLOC( sizeof( FILE ));
 stderr->fd = 2;
 stderr->flag = 0;   /* no error for new file */
 stderr->mode = O_APPEND | O_WRONLY;
 stderr->buffer = NULL;   /* you cannot unputc what has been printed */
 /*stderr->current = 0;     /* without functionality for stderr */
 __iob[2] = stderr;
}

extern int open( char *, int, int );
