pc_file.h 489 B

123456789101112131415161718192021222324
  1. /* $Header$ */
  2. /*
  3. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  4. * See the copyright notice in the ACK home directory, in the file "Copyright".
  5. */
  6. #define WRBIT 0100000
  7. #define TXTBIT 040000
  8. #define EOFBIT 020000
  9. #define ELNBIT 010000
  10. #define WINDOW 04000
  11. #define MAGIC 0252
  12. struct file {
  13. char *ptr;
  14. unsigned flags;
  15. char *fname;
  16. int ufd;
  17. int size;
  18. int count;
  19. int buflen;
  20. char bufadr[512];
  21. };
  22. #define EXTFL(z) ((struct file *)(_hbase + _extfl[z]))