home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c496 / 1.img / STARTUP.WPK / NFILES.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-20  |  1.0 KB  |  30 lines

  1. /*
  2.  *%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  3.  *%      Copyright (C) 1986,1988 by WATCOM Systems Inc. All rights %
  4.  *%      reserved. No part of this software may be reproduced        %
  5.  *%      in any form or by any means - graphic, electronic or        %
  6.  *%      mechanical, including photocopying, recording, taping     %
  7.  *%      or information storage and retrieval systems - except     %
  8.  *%      with the written permission of WATCOM Systems Inc.        %
  9.  *%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  10.  
  11.   Modified:    By:        Reason:
  12.   ---------    ---        -------
  13.   89-05-25    John Dahms    split out of cmain
  14.   90/10/25    J.B.Schueler    Conditional on __iomode array
  15.   90/12/02    B.J. Stecher    Conditional on __NFiles
  16. */
  17. #include <stdio.h>
  18.  
  19. #ifndef __QNX__
  20. unsigned __NFiles = _NFILES;        /* maximum # of files we can open */
  21.  
  22. unsigned __near _iomode[_NFILES] = {    /* file mode information (flags) */
  23.     _READ,        /* stdin */
  24.     _WRITE,     /* stdout */
  25.     _WRITE,     /* stderr */
  26.     _READ|_WRITE,    /* stdaux */
  27.     _WRITE        /* stdprn */
  28. };
  29. #endif
  30.