home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume3 / pcmail / part07 / sysdep.h < prev    next >
C/C++ Source or Header  |  1989-02-03  |  1KB  |  58 lines

  1. /*++
  2. /* NAME
  3. /*    sysdep 5
  4. /* SUMMARY
  5. /*    system dependencies for comm. port i/o
  6. /* PROJECT
  7. /*    pc-mail
  8. /* PACKAGE
  9. /*    cico
  10. /* SYNOPSIS
  11. /*    #include "sysdep.h"
  12. /* DESCRIPTION
  13. /* .nf
  14.  
  15. /* /* here they are */
  16.  
  17. #ifdef    unix
  18. #define    xwrite    write
  19. #define    xread    read
  20. extern int xopen(),xclose(),xgetc();
  21. #endif
  22.  
  23. #ifdef MSDOS
  24. #include <fcntl.h>
  25. #include <signal.h>
  26. #include <dos.h>
  27. #include "comport.h"
  28. #include "clmap.h"
  29.  
  30. typedef struct timetype {
  31.         unsigned hour;
  32.         unsigned minute;
  33.         unsigned sec;
  34.         unsigned hsec;
  35. } TIME, *TIME_PTR;
  36.  
  37. extern int xread(),xwrite(),xopen(),xclose(),xgetc();
  38. #endif
  39.  
  40. /* time-out interval serial-port i/o */
  41.  
  42. #define BYTE_TIMEOUT    20
  43. /* AUTHOR(S)
  44. /*    MS-DOS parts derived from uuslave sources (John Gilmore)
  45. /*    published on usenet early 1987.
  46. /*
  47. /*    W.Z. Venema
  48. /*    Eindhoven University of Technology
  49. /*    Department of Mathematics and Computer Science
  50. /*    Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands
  51. /* CREATION DATE
  52. /*    Sun Apr 12 17:48:08 GMT+1:00 1987
  53. /* LAST MODIFICATION
  54. /*    Mon Apr  4 23:51:18 MET 1988
  55. /* VERSION/RELEASE
  56. /*    1.3
  57. /*--*/
  58.