bc_io.h 603 B

123456789101112131415161718192021222324252627282930313233
  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. /* $Id$ */
  7. /* BASIC file io definitions */
  8. extern FILE *_chanrd;
  9. extern FILE *_chanwr;
  10. extern int _chann;
  11. /* BASIC file descriptor table */
  12. /* Channel assignment:
  13. -1 terminal IO
  14. 0 data file
  15. 1-15 user files
  16. */
  17. /* FILE MODES:*/
  18. #define IMODE 1
  19. #define OMODE 2
  20. #define RMODE 3
  21. typedef struct {
  22. char *fname;
  23. FILE *fd;
  24. int pos;
  25. int mode;
  26. int reclength;
  27. }Filedesc;
  28. extern Filedesc _fdtable[16];