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;

Defined struct's

adr defined in line 19; used 9 times
aka defined in line 12; used 38 times
home defined in line 25; used 40 times

Defined macros

AK_ERROR defined in line 48; used 7 times
AK_LIMIT defined in line 49; used 1 times
AK_NOFILE defined in line 47; used 2 times
AK_NOGROUP defined in line 50; used 2 times
EVERYONE defined in line 10; used 1 times
GROUP defined in line 8; never used
PASSWD defined in line 6; never used

Usage of this include

Last modified: 1985-08-15
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 922
Valid CSS Valid XHTML 1.0 Strict