X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/59a210325d70e6a38c0ef9e5dcb105cec8bd38d2..b625c88a67183f545ef2d80375a07b98d637d76b:/h/aliasbr.h diff --git a/h/aliasbr.h b/h/aliasbr.h index d379cfc5..d1927b35 100644 --- a/h/aliasbr.h +++ b/h/aliasbr.h @@ -1,14 +1,8 @@ - -/* - * aliasbr.h -- definitions for the aliasing system +/* aliasbr.h -- definitions for the aliasing system * - * $Id$ */ extern char *AliasFile; /* mh-alias(5) */ -#define PASSWD "/etc/passwd" /* passwd(5) */ -#define GROUP "/etc/group" /* group(5) */ -#define EVERYONE 200 /* lowest uid for everyone */ struct aka { char *ak_name; /* name to match against */ @@ -23,40 +17,18 @@ struct adr { char ad_local; /* text is local (check for expansion) */ }; -/* - * incore version of /etc/passwd - */ -struct home { - char *h_name; /* user name */ - uid_t h_uid; /* user id */ - gid_t h_gid; /* user's group */ - char *h_home; /* user's home directory */ - char *h_shell; /* user's shell */ - int h_ngrps; /* number of groups this user belongs to */ - struct home *h_next; /* next home in list */ -}; - -struct home *seek_home (char *); - /* * prototypes */ int alias (char *); int akvisible (void); -void init_pw (void); char *akresult (struct aka *); char *akvalue (char *); char *akerror (int); /* codes returned by alias() */ -#define AK_OK 0 /* file parsed ok */ +#define AK_OK 0 /* file parsed OK */ #define AK_NOFILE 1 /* couldn't read file */ #define AK_ERROR 2 /* error parsing file */ #define AK_LIMIT 3 /* memory limit exceeded */ -#define AK_NOGROUP 4 /* no such group */ - -/* should live here, not in mts.c */ - -extern int Everyone; -extern char *NoShell;