home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume3 / sm-smtp / smtp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-02-03  |  1022 b   |  60 lines

  1. /* smtp.h */
  2.  
  3. #include "config.h"
  4.  
  5. /* smtp constants and the like */
  6.  
  7. /* tunable constants */
  8. #define MAXSTR 10240            /* maximum string length */
  9. #define NAMSIZ MAXSTR            /* max file name length */
  10.  
  11. /* standard includes and portability */
  12.  
  13. #include <stdio.h>
  14. #include <ctype.h>
  15. #include <sys/types.h>
  16. #include <errno.h>
  17. #include "miscerrs.h"
  18.  
  19. #ifdef BSD
  20. #include <strings.h>
  21. #include <sys/time.h>
  22. #include <sys/wait.h>
  23. extern char *sprintf();
  24. # ifndef NOSYSEXITS
  25. #  include <sysexits.h>
  26. # endif
  27. #endif
  28.  
  29. #ifdef SYSV
  30. #include <string.h>
  31. #include <time.h>
  32. #include <fcntl.h>
  33. #define    index        strchr
  34. #define    rindex        strrchr
  35. #define    bcopy(a,b,n)    memcpy(b,a,n)
  36. #define    bzero(a,n)    memset(a,'\0',n)
  37. #define    SIGCHLD        SIGCLD
  38. extern int sprintf();
  39. # ifndef NOSYSEXITS
  40. #  include "sysexits.h"
  41. # endif
  42. #endif
  43.  
  44. #ifndef EX_SOFTWARE
  45. # define EX_SOFTWARE    70    /* internal software error */
  46. #endif
  47.  
  48. #ifdef SYSLOG
  49. # ifdef SYSV
  50. #  include "syslog.h"
  51. # else
  52. #  include <syslog.h>
  53. # endif
  54. #endif
  55.  
  56. #ifndef TRUE
  57. # define TRUE    1
  58. # define FALSE    0
  59. #endif
  60.