home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / wild16.pak / FILES2.C < prev    next >
C/C++ Source or Header  |  1997-07-23  |  1KB  |  46 lines

  1. /*-----------------------------------------------------------------------*
  2.  * filename - files2.c
  3.  *
  4.  * function(s)
  5.  *    none
  6.  *----------------------------------------------------------------------*/
  7.  
  8. /*
  9.  *      C/C++ Run Time Library - Version 6.5
  10.  *
  11.  *      Copyright (c) 1987, 1994 by Borland International
  12.  *      All Rights Reserved.
  13.  *
  14.  */
  15.  
  16.  
  17. #pragma option -zC_TEXT
  18. #pragma option -zR_DATA
  19. #pragma option -zTDATA
  20.  
  21. #include <io.h>
  22. #include <fcntl.h>
  23. #include <_nfile.h>
  24.  
  25. unsigned _nfile = _NFILE_;
  26.  
  27. /*---------------------------------------------------------------------*
  28.  
  29. Name            _openfd
  30.  
  31. Usage           unsigned int _openfd[];
  32.  
  33. Prototype in    not prototyped.
  34.  
  35. Description     array of access modes for file/devices
  36.  
  37. *---------------------------------------------------------------------*/
  38. unsigned int    _openfd[_NFILE_] =
  39. {
  40.     O_RDONLY | O_DEVICE | O_TEXT,
  41.     O_WRONLY | O_DEVICE | O_TEXT,
  42.     O_WRONLY | O_DEVICE | O_TEXT,
  43.     O_RDWR   | O_DEVICE | O_BINARY,
  44.     O_WRONLY | O_DEVICE | O_BINARY
  45. };
  46.