|
|
1.1 root 1: /*
2: * params.h - parameters for everyone.
3: */
4:
5: static char *Params = "@(#)params.h 2.5 4/26/83";
6:
7: #include <stdio.h>
8: #include <signal.h>
9: #include <sys/types.h>
10: #include <grp.h>
11: #include <pwd.h>
12: #include <sys/stat.h>
13: #include <ctype.h>
14: #include <time.h>
15:
16: #include "defs.h"
17:
18: #ifndef UNAME
19: /*
20: * 9 bytes is for compatibility with USG, in case you forget to define UNAME.
21: * 33 bytes in nodename because many sites have names longer than 8 chars.
22: */
23: struct utsname {
24: char sysname[9];
25: char nodename[33];
26: char release[9];
27: char version[9];
28: };
29: #else
30: #include <sys/utsname.h>
31: #endif
32:
33: #ifndef USG
34: #include <sys/timeb.h>
35: #else
36: struct timeb
37: {
38: time_t time;
39: unsigned short millitm;
40: short timezone;
41: short dstflag;
42: };
43: #endif
44:
45: #include "header.h"
46:
47: /* line from SUBFILE */
48: struct srec {
49: char s_name[BUFLEN]; /* system name */
50: char s_nbuf[LBUFLEN]; /* system subscriptions */
51: char s_flags[BUFLEN]; /* system flags */
52: char s_xmit[LBUFLEN]; /* system xmit routine */
53: };
54:
55: extern unsigned uid, gid, duid, dgid;
56: extern int savmask,sigtrap,mode,lockcount,defexp;
57: extern struct hbuf header;
58: extern char bfr[LBUFLEN],username[BUFLEN],userhome[BUFLEN];
59:
60: extern char SPOOL[], LIB[];
61: extern char SUBFILE[], NGFILE[], ACTIVE[];
62: extern char LOCKFILE[], SEQFILE[], ARTFILE[];
63:
64: #ifdef NOTIFY
65: extern char TELLME[];
66: #endif
67:
68: extern char FULLSYSNAME[],SYSNAME[],*NEWSU,*NEWSG;
69: #ifndef SHELL
70: extern char *SHELL;
71: #endif
72:
73: /* external function declarations */
74: extern FILE *xfopen(), *hread();
75: extern char *strcpy(), *strncpy(), *strcat(), *index(), *rindex();
76: extern char *ctime(), *mktemp(), *malloc(), *realloc(), *getenv();
77: extern char *arpadate(), *dirname(), *dotname();
78: extern struct passwd *getpwnam(), *getpwuid(), *getpwent();
79: extern struct group *getgrnam();
80: extern time_t time(), getdate(), cgtdate();
81: extern int broadcast(), save(), newssave(), ushell(), pshell(), onsig();
82: extern long atol();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.