home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
TELECOM
/
palias10.lzh
/
BNU
/
PALIAS
/
config.h
< prev
next >
Wrap
Text File
|
1993-06-07
|
3KB
|
107 lines
/* pathalias -- by steve bellovin, as told to peter honeyman */
/**************************************************************************
* +--------------------------------------------------------------------+ *
* | begin configuration section | *
* +--------------------------------------------------------------------+ *
**************************************************************************/
#undef STRCHR /* have strchr -- system v and many others */
#undef UNAME /* have uname() -- probably system v or 8th ed. */
#undef MEMSET /* have memset() -- probably system v or 8th ed. */
#define GETHOSTNAME /* have gethostname() -- probably bsd */
#define BZERO /* have bzero() -- probably bsd */
#undef RESOLVER /* have internet domain name resolver */
/* default place for dbm output of makedb (or use -o at run-time) */
#ifdef OSK
#define ALIASDB "/dd/usr/lib/smail/palias"
#else
#define ALIASDB "/usr/local/lib/palias"
#endif
/* creation mode for read/write all */
#ifdef OSK
#define RW_ALL 003
#else
#define RW_ALL 0666
#endif
/* /dev/null device */
#ifdef OSK
#define DEVNULL "/nil"
#else
#define DEVNULL "/dev/null"
#endif
/**************************************************************************
* +--------------------------------------------------------------------+ *
* | end of configuration section | *
* +--------------------------------------------------------------------+ *
**************************************************************************/
#ifdef MAIN
#ifndef lint
static char *c_sccsid = "@(#)config.h 9.3 91/05/23";
#endif /*lint*/
#endif /*MAIN*/
/*
* malloc/free fine tuned for pathalias.
*
* MYMALLOC should work everwhere, so it's not a configuration
* option (anymore). nonetheless, if you're getting strange
* core dumps (or panics!), comment out the following manifest,
* and use the inferior C library malloc/free.
*/
#define MYMALLOC /**/
#ifdef MYMALLOC
#define malloc mymalloc
#define calloc(n, s) malloc ((n)*(s))
#define free(s)
#define cfree(s)
extern char *memget();
#else /* !MYMALLOC */
extern char *calloc();
#endif /* MYMALLOC */
#ifdef STRCHR
#define index strchr
#define rindex strrchr
#else
#define strchr index
#define strrchr rindex
#endif
#ifdef BZERO
#define strclear(s, n) ((void) bzero((s), (n)))
#else /*!BZERO*/
#ifdef MEMSET
extern char *memset();
#define strclear(s, n) ((void) memset((s), 0, (n)))
#else /*!MEMSET*/
extern void strclear();
#endif /*MEMSET*/
#endif /*BZERO*/
extern char *malloc();
extern char *strcpy(), *index(), *rindex();
#ifndef STATIC
#ifdef DEBUG
#define STATIC extern
#else /*DEBUG*/
#define STATIC static
#endif /*DEBUG*/
#endif /*STATIC*/