home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume3 / uumail / uuconf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1986-11-30  |  2.9 KB  |  102 lines

  1. /* $Header: uuconf.h,v 1.4 85/10/02 02:16:21 sob Exp $
  2.  * Configuration for uumail and uupath utilities
  3.  * Please see the header for makefile for changes you may
  4.  * need to make there.
  5.  * $Log:    uuconf.h,v $
  6.  * Revision 1.4  85/10/02  02:16:21  sob
  7.  * Added LOCALMAIL definition
  8.  * 
  9.  * Revision 1.3  85/09/30  02:50:51  sob
  10.  * Added pwd.h to list of include files
  11.  * 
  12.  * Revision 1.2  85/07/11  19:29:34  sob
  13.  * *** empty log message ***
  14.  * 
  15.  * Revision 1.1  85/07/11  19:22:20  sob
  16.  * Initial revision
  17.  * 
  18.  */
  19. #include <stdio.h>
  20. #include <ctype.h>
  21. #include <pwd.h>
  22. #include <signal.h>
  23. #include <setjmp.h>
  24.  
  25. /*
  26.  * sysexits is a file of exit codes that are used in sendmail
  27.  * and other programs ...
  28.  */
  29. #include <sysexits.h>
  30. /* if you don't have sysexits.h here are the useful parts */
  31. #ifndef EX_BASE
  32.  
  33. # define EX_OK        0    /* successful termination */
  34.  
  35.  
  36. # define EX_USAGE    64    /* command line usage error */
  37. # define EX_DATAERR    65    /* data format error */
  38. # define EX_NOINPUT    66    /* cannot open input */
  39. # define EX_NOHOST    68    /* host name unknown */
  40. # define EX_UNAVAILABLE    69    /* service unavailable */
  41. # define EX_SOFTWARE    70    /* internal software error */
  42. # define EX_OSERR    71    /* system error (e.g., can't fork) */
  43. # define EX_OSFILE    72    /* critical OS file missing */
  44. # define EX_CANTCREAT    73    /* can't create (user) output file */
  45. # define EX_IOERR    74    /* input/output error */
  46. #endif
  47.  
  48. typedef char bool;
  49.  
  50. #ifdef DBM
  51. #include <dbm.h>
  52. #endif
  53.  
  54. #ifdef SYSIII
  55. #define index strchr
  56. #define rindex strrchr
  57. #include <sys/utsname.h>
  58. #endif
  59.  
  60. #define NAMESIZ 32 /* system name size */
  61. #define PATHSIZ 16*NAMESIZ /* path length */
  62.  
  63. #define TRUE    1
  64. #define FALSE    0
  65.  
  66. /* Here's where you should put in the the name of the file
  67.  * in which the uucpmap data is kept.
  68.  * For those using DBM, this will be the root filename for the database
  69.  * (eg... file.pag and file.dir with root name file)
  70.  */
  71.  
  72. #define DATABASE "/usr/lib/uucp/palias"
  73. #define CONFIGFILE "/usr/lib/uucp/domains"
  74. #define LOGFILE "/usr/adm/uumail.log"
  75. /* this needs to be a printf-like string to deliver LOCAL mail */
  76. /* usually this is either /bin/mail or /bin/binmail */
  77.  
  78. #define LOCALMAIL "/bin/bellmail %s"
  79.  
  80. #ifdef _DEFINE
  81. #define EXTERN 
  82. #else
  83. #define EXTERN extern
  84. #endif
  85.  
  86. EXTERN int Debug;
  87. EXTERN char *paths;
  88. EXTERN char *ConfFile;
  89. EXTERN char Myname[NAMESIZ];
  90. EXTERN char *logfile;
  91. EXTERN char    OpMode;        /* operation mode, see below */
  92. /* These don't do anything yet.... next time they will do something */
  93. #define MD_DELIVER    'm'        /* be a mail sender */
  94. #define MD_ARPAFTP    'a'        /* old-style arpanet protocols */
  95. #define MD_SMTP        's'        /* run SMTP on standard input */
  96. #define MD_DAEMON    'd'        /* run as a daemon */
  97. #define MD_VERIFY    'v'        /* verify: don't collect or deliver */
  98. #define MD_TEST        't'        /* test mode: resolve addrs only */
  99. #define MD_INITALIAS    'i'        /* initialize alias database */
  100. #define MD_PRINT    'p'        /* print the queue */
  101. #define MD_FREEZE    'z'        /* freeze the configuration file */
  102.