make the maximum number of simultaneous SMTP connections an option
[unix-history] / usr / src / usr.sbin / config / config.h
index 873e703..b1164b1 100644 (file)
+/*     config.h        1.10    82/10/25        */
+
 /*
 /*
- * config.h    1.6     82/07/21
- * Definitions that everybody needs to know
+ * Config.
  */
  */
-
-#define eq(a,b) (strcmp(a,b) == 0)
-#define TRUE 1
-#define FALSE 0
-#define DRIVER 1
-#define NORMAL 2
-#define INVISIBLE 3
-
-#define TO_NEXUS -1
-
 struct file_list {
 struct file_list {
-       char *f_fn;
-       int f_type;
-       char *f_next;
-       char *f_needs;
+       char    *f_fn;                  /* the name */
+       int     f_type;                 /* see below */
+       struct  file_list *f_next;      
+       char    *f_needs;
 };
 };
+#define DRIVER         1
+#define NORMAL         2
+#define        INVISIBLE       3
+#define        PROFILING       4
 
 struct idlst {
 
 struct idlst {
-       char *id;
-       struct idlst *id_next;
+       char    *id;
+       struct  idlst *id_next;
 };
 
 };
 
-typedef char bool;
-
 struct device {
 struct device {
-       int d_type;                     /* CONTROLLER, DEVICE, UBA or MBA */
-       struct device *d_conn;          /* What it is connected to */
-       char *d_name;                   /* Name of device (e.g. rk11) */
-       struct idlist *d_vec;           /* Interrupt vectors */
-       int d_addr;                     /* Address of csr */
-       int d_unit;                     /* Unit number */
-       int d_drive;                    /* Drive number */
-       int d_slave;                    /* Slave number */
+       int     d_type;                 /* CONTROLLER, DEVICE, UBA or MBA */
+       struct  device *d_conn;         /* what it is connected to */
+       char    *d_name;                /* name of device (e.g. rk11) */
+       struct  idlst *d_vec;           /* interrupt vectors */
+       int     d_pri;                  /* interrupt priority */
+       int     d_addr;                 /* address of csr */
+       int     d_unit;                 /* unit number */
+       int     d_drive;                /* drive number */
+       int     d_slave;                /* slave number */
 #define QUES   -1      /* -1 means '?' */
 #define        UNKNOWN -2      /* -2 means not set yet */
 #define QUES   -1      /* -1 means '?' */
 #define        UNKNOWN -2      /* -2 means not set yet */
-       bool d_dk;                      /* if init 1 set to number for iostat */
-       int d_flags;                    /* Flags for device init */
-       struct device *d_next;          /* Next one in list */
+       int     d_dk;                   /* if init 1 set to number for iostat */
+       int     d_flags;                /* nlags for device init */
+       struct  device *d_next;         /* Next one in list */
 };
 };
+#define TO_NEXUS       (struct device *)-1
 
 struct config {
 
 struct config {
-       char *c_dev;
-       char *s_sysname;
+       char    *c_dev;
+       char    *s_sysname;
 };
 
 };
 
+/*
+ * Config has a global notion of which machine type is
+ * being used.  It uses the name of the machine in choosing
+ * files and directories.  Thus if the name of the machine is ``vax'',
+ * it will build from ``makefile.vax'' and use ``../vax/asm.sed''
+ * in the makerules, etc.
+ */
+int    machine;
+char   *machinename;
+#define        MACHINE_VAX     1
+#define        MACHINE_SUN     2
+
+/*
+ * For each machine, a set of CPU's may be specified as supported.
+ * These and the options (below) are put in the C flags in the makefile.
+ */
 struct cputype {
 struct cputype {
-       char *cpu_name;
-       struct cputype *cpu_next;
+       char    *cpu_name;
+       struct  cputype *cpu_next;
 } *cputype;
 } *cputype;
+
+/*
+ * A set of options may also be specified which are like CPU types,
+ * but which may also specify values for the options.
+ */
 struct opt {
 struct opt {
-       char *op_name;
-       char *op_value;
-       struct cputype *op_next;
+       char    *op_name;
+       char    *op_value;
+       struct  opt *op_next;
 } *opt;
 } *opt;
-char *ident, *ns(), *malloc(), *tc(), *qu();
-bool do_trace, seen_mba, seen_uba;
-struct device *connect();
-struct device *dtab;
-char errbuf[80];
-int yyline;
-struct file_list *ftab, *conf_list, *confp;
-char *PREFIX;
-int hz, timezone, hadtz, maxusers, dst;
+
+char   *ident;
+char   *ns();
+char   *tc();
+char   *qu();
+char   *get_word();
+char   *path();
+char   *raise();
+
+int    do_trace;
+
+char   *index();
+char   *rindex();
+char   *malloc();
+char   *strcpy();
+char   *strcat();
+char   *sprintf();
+
+#if MACHINE_VAX
+int    seen_mba, seen_uba;
+#endif
+
+struct device *connect();
+struct device *dtab;
+
+char   errbuf[80];
+int    yyline;
+
+struct file_list *ftab, *conf_list, *confp;
+char   *PREFIX;
+
+int    timezone, hadtz;
+int    dst;
+int    profiling;
+
+int    maxusers;
+
+#define eq(a,b)        (!strcmp(a,b))