home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_07 / LATTIC_3.ZIP / HEADERS / IOS1.H < prev    next >
C/C++ Source or Header  |  1990-03-06  |  826b  |  44 lines

  1. /*
  2.  * ios1.h - level 1 I/O interface file
  3.  *
  4.  * Started 28/8/89 Alex G. Kiernan, based on Lattice source.
  5.  *
  6.  * Copyright (c) 1989 HiSoft and Lattice, Inc.
  7.  */
  8.  
  9. #ifndef _IOS1_H
  10. #define _IOS1_H
  11.  
  12. /*
  13.  * The following structure is a UNIX file block that retains information
  14.  * about a file being accessed via the level 1 I/O functions.
  15.  */
  16. struct UFB
  17. {
  18.     short ufbflg;        /* flags */
  19.     short ufbfh;        /* file handle */
  20. };
  21. #define NUFBS 40    /* number of UFBs defined */
  22.  
  23. /*
  24.  *
  25.  * UFB.ufbflg definitions
  26.  *
  27.  */
  28. #define UFB_RA 1    /* reading is allowed */
  29. #define UFB_WA 2    /* writing is allowed */
  30. #define UFB_NC 4    /* no close */
  31. #define UFB_FH 16    /* file handle */
  32.  
  33. /*
  34.  *
  35.  * External definitions
  36.  *
  37.  */
  38.  
  39. extern struct UFB _ufbs[NUFBS];
  40. extern int _iomode,_nufbs;
  41.  
  42. struct UFB *chkufb(int);
  43. #endif
  44.