From a79cd7832f0154b7099bdeda5f9fbff6402d6760 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 12 Feb 2006 00:34:08 +0000 Subject: more changes --- src/cmd/upas/common/sys.h | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'src/cmd/upas/common/sys.h') diff --git a/src/cmd/upas/common/sys.h b/src/cmd/upas/common/sys.h index 50691558..dd4cd6fe 100644 --- a/src/cmd/upas/common/sys.h +++ b/src/cmd/upas/common/sys.h @@ -21,16 +21,25 @@ struct Mlock { /* * from config.c - call upasconfig() before using */ -extern char *MAILROOT; /* root of mail system */ -extern char *UPASLOG; /* log directory */ -extern char *UPASLIB; /* upas library directory */ -extern char *UPASBIN; /* upas binary directory */ -extern char *UPASTMP; /* temporary directory */ -extern char *SHELL; /* path name of shell */ -extern char *POST; /* path name of post server addresses */ +extern char *_MAILROOT; /* root of mail system */ +extern char *_UPASLOG; /* log directory */ +extern char *_UPASLIB; /* upas library directory */ +extern char *_UPASBIN; /* upas binary directory */ +extern char *_UPASTMP; /* temporary directory */ +extern char *_SHELL; /* path name of shell */ +extern char *_POST; /* path name of post server addresses */ extern int MBOXMODE; /* default mailbox protection mode */ extern void upasconfig(void); +/* forgive me */ +#define MAILROOT (upasconfig(), _MAILROOT) +#define UPASLOG (upasconfig(), _UPASLOG) +#define UPASLIB (upasconfig(), _UPASLIB) +#define UPASBIN (upasconfig(), _UPASBIN) +#define UPASTMP (upasconfig(), _UPASTMP) +#define SHELL (upasconfig(), _SHELL) +#define POST (upasconfig(), _POST) + /* * files in libsys.c */ -- cgit v1.2.3