home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / communic / pcmail / main / sysdep.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-05  |  1.2 KB  |  115 lines

  1. /*++
  2.  
  3. /* NAME
  4.  
  5. /*    sysdep 5
  6.  
  7. /* SUMMARY
  8.  
  9. /*    system dependencies for comm. port i/o
  10.  
  11. /* PROJECT
  12.  
  13. /*    pc-mail
  14.  
  15. /* PACKAGE
  16.  
  17. /*    cico
  18.  
  19. /* SYNOPSIS
  20.  
  21. /*    #include "sysdep.h"
  22.  
  23. /* DESCRIPTION
  24.  
  25. /* .nf
  26.  
  27.  
  28.  
  29.  /* try to unite unix and dos */
  30.  
  31.  
  32.  
  33. #ifdef    unix
  34.  
  35. #define    xwrite    write
  36.  
  37. #define    xread    read
  38.  
  39. extern int xopen(),xclose(),xgetc();
  40.  
  41. #endif
  42.  
  43.  
  44.  
  45. #ifdef MSDOS
  46.  
  47. #include <fcntl.h>
  48.  
  49. #include <signal.h>
  50.  
  51. #include <dos.h>
  52.  
  53. #include "comport.h"
  54.  
  55. #include "clmap.h"
  56.  
  57.  
  58.  
  59. typedef struct timetype {
  60.  
  61.         unsigned hour;
  62.  
  63.         unsigned minute;
  64.  
  65.         unsigned sec;
  66.  
  67.         unsigned hsec;
  68.  
  69. } TIME, *TIME_PTR;
  70.  
  71.  
  72.  
  73. extern int xread(),xwrite(),xopen(),xclose(),xgetc();
  74.  
  75. #endif
  76.  
  77.  
  78.  
  79. /* time-out interval serial-port i/o */
  80.  
  81.  
  82.  
  83. #define BYTE_TIMEOUT    20
  84.  
  85. /* AUTHOR(S)
  86.  
  87. /*    MS-DOS parts derived from uuslave sources (John Gilmore)
  88.  
  89. /*    published on usenet early 1987.
  90.  
  91. /*
  92.  
  93. /*    W.Z. Venema
  94.  
  95. /*    Eindhoven University of Technology
  96.  
  97. /*    Department of Mathematics and Computer Science
  98.  
  99. /*    Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands
  100.  
  101. /* CREATION DATE
  102.  
  103. /*    Sun Apr 12 17:48:08 GMT+1:00 1987
  104.  
  105. /* LAST MODIFICATION
  106.  
  107. /*    90/01/22 13:02:47
  108.  
  109. /* VERSION/RELEASE
  110.  
  111. /*    2.1
  112.  
  113. /*--*/
  114.  
  115.