date and time created 83/02/11 15:44:29 by rrh
[unix-history] / usr / src / usr.bin / mail / def.h
index 8fd11a5..f945473 100644 (file)
@@ -1,15 +1,16 @@
 #
 
 #
 
-#include "local.h"
 #include <sys/types.h>
 #include <signal.h>
 #include <stdio.h>
 #include <sys/types.h>
 #include <signal.h>
 #include <stdio.h>
+#include <sgtty.h>
+#include "local.h"
 
 #undef isalpha
 #undef isdigit
 
 /*
 
 #undef isalpha
 #undef isdigit
 
 /*
- * Sccs Id = "@(#)def.h        1.12 %G%";
+ * Sccs Id = "@(#)def.h        2.10 %G%";
  */
 
 /*
  */
 
 /*
 
 #define        ESCAPE          '~'             /* Default escape for sending */
 #define        NMLSIZE         20              /* max names in a message list */
 
 #define        ESCAPE          '~'             /* Default escape for sending */
 #define        NMLSIZE         20              /* max names in a message list */
-#define        PATHSIZE        35              /* Size of pathnames throughout */
+#define        PATHSIZE        100             /* Size of pathnames throughout */
 #define        NAMESIZE        20              /* Max size of user name */
 #define        HSHSIZE         19              /* Hash size for aliases and vars */
 #define        HDRFIELDS       3               /* Number of header fields */
 #define        NAMESIZE        20              /* Max size of user name */
 #define        HSHSIZE         19              /* Hash size for aliases and vars */
 #define        HDRFIELDS       3               /* Number of header fields */
-#define        LINESIZE        512             /* max readable line width */
-#define        SCREEN          18              /* screen size in lines (effective) */
+#define        LINESIZE        BUFSIZ          /* max readable line width */
 #define        STRINGSIZE      ((unsigned) 128)/* Dynamic allocation units */
 #define        MAXARGC         20              /* Maximum list of raw strings */
 #define        NOSTR           ((char *) 0)    /* Null string pointer */
 #define        STRINGSIZE      ((unsigned) 128)/* Dynamic allocation units */
 #define        MAXARGC         20              /* Maximum list of raw strings */
 #define        NOSTR           ((char *) 0)    /* Null string pointer */
@@ -50,7 +50,7 @@ struct message {
        short   m_flag;                 /* flags, see below */
        short   m_block;                /* block number of this message */
        short   m_offset;               /* offset in block of message */
        short   m_flag;                 /* flags, see below */
        short   m_block;                /* block number of this message */
        short   m_offset;               /* offset in block of message */
-       unsigned        m_size;         /* Bytes in the message */
+       long    m_size;                 /* Bytes in the message */
        short   m_lines;                /* Lines in the message */
 };
 
        short   m_lines;                /* Lines in the message */
 };
 
@@ -101,7 +101,7 @@ struct cmd {
 
 #define        P       040             /* Autoprint dot after command */
 #define        I       0100            /* Interactive command bit */
 
 #define        P       040             /* Autoprint dot after command */
 #define        I       0100            /* Interactive command bit */
-#define        M       0200            /* Illegal from send mode bit */
+#define        M       0200            /* Legal from send mode bit */
 #define        W       0400            /* Illegal when read only bit */
 #define        F       01000           /* Is a conditional command */
 #define        T       02000           /* Is a transparent command */
 #define        W       0400            /* Illegal when read only bit */
 #define        F       01000           /* Is a conditional command */
 #define        T       02000           /* Is a transparent command */
@@ -191,6 +191,14 @@ struct grouphead {
 #define        NOGRP   ((struct grouphead *) 0)/* The nil grouphead pointer */
 #define        NOGE    ((struct group *) 0)    /* The nil group pointer */
 
 #define        NOGRP   ((struct grouphead *) 0)/* The nil grouphead pointer */
 #define        NOGE    ((struct group *) 0)    /* The nil group pointer */
 
+/*
+ * Structure of the hash table of ignored header fields
+ */
+struct ignore {
+       struct ignore   *i_link;        /* Next ignored field in bucket */
+       char            *i_field;       /* This ignored field */
+};
+
 /*
  * Token values returned by the scanner used for argument lists.
  * Also, sizes of scanner-related things.
 /*
  * Token values returned by the scanner used for argument lists.
  * Also, sizes of scanner-related things.
@@ -235,6 +243,9 @@ struct grouphead {
 #ifndef VMUNIX
 #define        vfork() fork()
 #endif
 #ifndef VMUNIX
 #define        vfork() fork()
 #endif
+#ifndef        SIGRETRO
+#define        sigchild()
+#endif
 
 /*
  * Forward declarations of routine types to keep lint and cc happy.
 
 /*
  * Forward declarations of routine types to keep lint and cc happy.
@@ -274,9 +285,10 @@ char       *rindex();
 char   *rpair();
 char   *salloc();
 char   *savestr();
 char   *rpair();
 char   *salloc();
 char   *savestr();
-char   *savestr();
 char   *skin();
 char   *snarf();
 char   *skin();
 char   *snarf();
+char   *strcat();
+char   *strcpy();
 char   *value();
 char   *vcopy();
 char   *yankword();
 char   *value();
 char   *vcopy();
 char   *yankword();
@@ -295,4 +307,6 @@ struct      name    *put();
 struct name    *usermap();
 struct name    *verify();
 struct var     *lookup();
 struct name    *usermap();
 struct name    *verify();
 struct var     *lookup();
-unsigned       int     msize();
+long   transmit();
+int    icequal();
+int    cmpdomain();