home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / ZOO21E.EXE / MACHINE.C < prev    next >
C/C++ Source or Header  |  1991-07-14  |  2KB  |  82 lines

  1. #ifndef LINT
  2. /* @(#) machine.c 2.3 88/01/02 01:21:44 */
  3. static char sccsid[]="@(#) machine.c 2.3 88/01/02 01:21:44";
  4. #endif /* LINT */
  5.  
  6. /*
  7. The contents of this file are hereby released to the public domain.
  8.  
  9.                                     -- Rahul Dhesi  1986/12/31
  10. */
  11.  
  12. /* This file is in two parts. */
  13.  
  14. #include "options.h"
  15. #include "zooio.h"
  16. #include "zoo.h"
  17. #include "zoofns.h"
  18. #include "various.h"
  19.  
  20. /***********************************************************************/
  21. /* PART 1.  FOR UNBUFFERED I/O ONLY.  DO NOT CHANGE.                   */
  22. /***********************************************************************/
  23.  
  24. #ifdef UNBUF_IO
  25. int write PARMS ((int, VOIDPTR, unsigned));
  26.  
  27. /*
  28. blockwrite() is like write() except that it ignores all
  29. output to file descriptor -2, which stands for the null file.
  30. */
  31. int blockwrite (fd, buf, count)
  32. int fd;
  33. #ifdef VOIDPTR
  34. VOIDPTR buf;
  35. #else
  36. char *buf;
  37. #endif /* VOIDPTR */
  38. unsigned count;
  39. {
  40.     if (fd == -2)
  41.         return (count);
  42.     else
  43.         return (write (fd, buf, count));
  44. }
  45. #endif
  46.  
  47. /***********************************************************************/
  48. /* PART 2.  FOR EACH SPECIFIC SYSTEM, INCLUDE A C FILE HERE.           */
  49. /***********************************************************************/
  50.  
  51. #ifdef SYS_V
  52. #include "sysv.c"
  53. #endif
  54.  
  55. #ifdef GENERIC
  56. #include "generic.c"
  57. #endif
  58.  
  59. #ifdef BSD4_3
  60. #include "bsd.c"
  61. #endif
  62.  
  63. #ifdef DLC
  64. #include "generic.c"
  65. #endif
  66.  
  67. #ifdef VMS
  68. #include "vms.c"
  69. #endif
  70.  
  71. #ifdef MSC
  72. #include "msc.c"
  73. #endif
  74.  
  75. #ifdef TURBOC
  76. #ifdef PORTABLE
  77. #include "generic.c"
  78. #else
  79. #include "turboc.c"
  80. #endif
  81. #endif
  82.