home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / compress / zoosrc20.zoo / machine.c < prev    next >
C/C++ Source or Header  |  1989-07-25  |  1KB  |  77 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. #include "options.h"
  13. #include "zooio.h"
  14. #include "zoo.h"
  15. #include "zoofns.h"
  16. #include "various.h"
  17.  
  18. #ifdef UNBUF_IO
  19. int write PARMS ((int, VOIDPTR, unsigned));
  20.  
  21. /*
  22. blockwrite() is like write() except that it ignores all
  23. output to file descriptor -2, which stands for the null file.
  24. */
  25. int blockwrite (fd, buf, count)
  26. int fd;
  27. #ifdef VOIDPTR
  28. VOIDPTR buf;
  29. #else
  30. char *buf;
  31. #endif /* VOIDPTR */
  32. unsigned count;
  33. {
  34.     if (fd == -2)
  35.         return (count);
  36.     else
  37.         return (write (fd, buf, count));
  38. }
  39. #endif
  40.  
  41. #ifdef SYS_V
  42. #include "sysv.c"
  43. #endif
  44.  
  45. #ifdef GENERIC
  46. #include "generic.c"
  47. #endif
  48.  
  49. #ifdef BSD4_3
  50. #include "bsd.c"
  51. #endif
  52.  
  53. #ifdef DLC
  54. #include "generic.c"
  55. #endif
  56.  
  57. #ifdef VMS
  58. #include "vms.c"
  59. #endif
  60.  
  61. #ifdef MSC
  62. #ifdef PORTABLE
  63. #include "generic.c"
  64. #else
  65. #include "msc.c"
  66. #endif
  67. #endif
  68.  
  69. #ifdef TURBOC
  70. #ifdef PORTABLE
  71. #include "generic.c"
  72. #else
  73. #include "turboc.c"
  74. #endif
  75. #endif
  76.  
  77.