Pristine Ack-5.5
[Ack-5.5.git] / h / bc_io.h
1 /*
2  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3  * See the copyright notice in the ACK home directory, in the file "Copyright".
4  */
5 #include <stdio.h>
6
7 /* $Id: bc_io.h,v 2.3 1994/06/24 10:07:53 ceriel Exp $ */
8
9 /* BASIC file io definitions */
10
11 extern FILE *_chanrd;
12 extern FILE *_chanwr;
13 extern int   _chann;
14 /* BASIC file descriptor table */
15 /* Channel assignment:
16    -1           terminal IO
17     0           data file
18     1-15        user files
19 */
20
21 /* FILE MODES:*/
22 #define         IMODE   1
23 #define         OMODE   2
24 #define         RMODE   3
25
26 typedef struct {
27         char    *fname;
28         FILE    *fd;
29         int     pos;
30         int     mode;   
31         int     reclength;
32         }Filedesc;
33 extern Filedesc  _fdtable[16];