ack/h/bc_io.h

34 lines
607 B
C
Raw Normal View History

1987-03-09 21:20:21 +00:00
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
1984-11-29 14:22:02 +00:00
#include <stdio.h>
/* $Header$ */
/* BASIC file io definitions */
extern FILE *_chanrd;
extern FILE *_chanwr;
extern int _chann;
/* BASIC file descriptor table */
/* Channel assignment:
-1 terminal IO
0 data file
1-15 user files
*/
/* FILE MODES:*/
#define IMODE 1
#define OMODE 2
#define RMODE 3
typedef struct {
char *fname;
FILE *fd;
int pos;
int mode;
int reclength;
}Filedesc;
extern Filedesc _fdtable[16];