Annotation of 43BSD/contrib/mh/h/aliasbr.h, revision 1.1

1.1     ! root        1: /* aliasbr.h - definitions for the aliasing system */
        !             2: 
        !             3: 
        !             4: extern char *AliasFile;                /* mh-alias(5) */
        !             5: 
        !             6: #define        PASSWD  "/etc/passwd"   /* passwd(5) */
        !             7: 
        !             8: #define GROUP   "/etc/group"   /* group(5) */
        !             9: 
        !            10: #define EVERYONE 200           /* lowest uid for everyone */
        !            11: 
        !            12: struct aka {
        !            13:     char   *ak_name;           /* name to match against */
        !            14:     struct adr *ak_addr;       /* list of addresses that it maps to */
        !            15:     struct aka *ak_next;       /* next aka in list */
        !            16:     char    ak_visible;                /* should be visible in headers */
        !            17: };
        !            18: 
        !            19: struct adr {
        !            20:     char   *ad_text;           /* text of this address in list */
        !            21:     struct adr *ad_next;       /* next adr in list */
        !            22:     char    ad_local;          /* text is local (check for expansion) */
        !            23: };
        !            24: 
        !            25: struct home {                  /* incore version of /etc/passwd */
        !            26:     char   *h_name;            /* user name */
        !            27:     int     h_uid;             /* user id */
        !            28:     int     h_gid;             /* user's group */
        !            29:     char   *h_home;            /* user's home directory */
        !            30:     char   *h_shell;           /* user's shell */
        !            31: #ifdef BSD42
        !            32:     int            h_ngrps;            /* number of groups this user belongs to */
        !            33: #endif BSD42
        !            34:     struct home *h_next;       /* next home in list */
        !            35: };
        !            36: 
        !            37: #ifndef        MMDFMTS
        !            38: struct  home *seek_home ();
        !            39: #endif MMDFMTS
        !            40: 
        !            41: int     alias (), akvisible (), init_pw ();
        !            42: char   *akresult (), *akvalue (), *akerror ();
        !            43: 
        !            44: /* codes returned by alias() */
        !            45: 
        !            46: #define        AK_OK           0       /* file parsed ok        */
        !            47: #define        AK_NOFILE       1       /* couldn't read file    */
        !            48: #define        AK_ERROR        2       /* error parsing file    */
        !            49: #define        AK_LIMIT        3       /* memory limit exceeded */
        !            50: #define        AK_NOGROUP      4       /* no such group         */
        !            51: 
        !            52: 
        !            53: /* should live here, not in mts.c */
        !            54: 
        !            55: extern int Everyone;
        !            56: extern char *NoShell;

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.