* params.h - parameters for everyone.
/* @(#)params.h 2.25 10/15/87 */
#if defined(BSD4_2) || defined(BSD4_1C)
* 9 bytes is for compatibility with USG, in case you forget to define UNAME.
* 33 bytes in nodename because many sites have names longer than 8 chars.
char s_name
[2*BUFLEN
]; /* system name */
char *s_nosend
; /* systems that inhibit sending */
char s_nbuf
[LBUFLEN
]; /* system subscriptions */
char s_flags
[BUFLEN
]; /* system flags */
char s_xmit
[LBUFLEN
]; /* system xmit routine */
extern int uid
, gid
, duid
, dgid
;
extern int savmask
, SigTrap
, mode
, lockcount
;
extern struct hbuf header
;
extern char bfr
[LBUFLEN
], *username
, *userhome
;
extern char *SPOOL
, *LIB
, *BIN
, *SUBFILE
, *ACTIVE
;
extern char *LOCKFILE
, *SEQFILE
, *ARTFILE
;
extern char *news_version
, *Progname
;
extern char *LOCALSYSNAME
, *LOCALPATHSYSNAME
, *FROMSYSNAME
, *PATHSYSNAME
;
/* external function declarations */
extern FILE *xfopen(), *hread();
extern char *strcpy(), *strncpy(), *strcat(), *index(), *rindex();
extern char *ctime(), *mktemp(), *malloc(), *realloc(), *getenv();
extern char *arpadate(), *dirname(), *AllocCpy(), *strpbrk();
extern struct passwd
*getpwnam(), *getpwuid(), *getpwent();
extern struct group
*getgrnam();
extern time_t time(), getdate(), cgtdate();
extern int broadcast(), save(), newssave(), ushell(), onsig();
extern struct tm
*localtime();
/* This horrible gross kludge is the only way I know to
* convince lint that signal(SIGINT,SIG_IGN) is legal. It hates SIG_IGN.
#define LINK(a,b) vmslink(a,b)
#define UNLINK(a) vmsdelete(a)
FILE *art_open(), *xart_open();
#define LINK(a,b) link(a,b)
#define UNLINK(a) unlink(a)
/* Check for old naming scheme using HIDDENNET */
# ifndef GENERICFROM /* Ugly fix, only for use in pathinit.c */
# define GENERICFROM "%s%0.0s%s", HIDDENNET
# define HIDDENNET_IN_LOCALSYSNAME
# define GENERICPATH HIDDENNET
/* fake SVID adivsory locking with xenix routines */
#if defined(DBM) && !defined(M_XENIX)
#endif /* DBM &! XENIX */
#define STRCMP(a,b) ((*(a) != *(b)) ? (*(a)-*(b)) : strcmp((a)+1, (b)+1))
#define STRNCMP(a,b,n) ((*(a) != *(b)) ? (*(a)-*(b)) : strncmp(a, b, n))
#define PREFIX(a,b) ((*(a) != *(b)) ? FALSE : prefix((a)+1, (b)+1))
extern char *getserverbyfile();
extern int server_init();
extern void put_server();
extern void close_server();
extern FILE *open_active();
extern int open_server();
extern char *set_group();
extern char *active_name();
extern char *group_name();
extern FILE *getarticle();
extern FILE *getartbyid();
extern char *article_name();
extern void sync_server();