X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/837386b3da0f7ad20e3a0b6dc5326c3fb2f2efba..82572cb6d0bf06d426eb607fb33ad54cb661c41b:/usr/src/usr.bin/rdist/defs.h diff --git a/usr/src/usr.bin/rdist/defs.h b/usr/src/usr.bin/rdist/defs.h index 0ab56e95ef..342835ca78 100644 --- a/usr/src/usr.bin/rdist/defs.h +++ b/usr/src/usr.bin/rdist/defs.h @@ -1,4 +1,4 @@ -/* defs.h 4.1 83/09/07 */ +/* defs.h 4.2 83/09/27 */ #include #include @@ -16,18 +16,29 @@ /* defines for yacc */ #define EQUAL 1 -#define ARROW 2 -#define LP 3 -#define RP 4 -#define NAME 5 -#define INSTALL 6 -#define VERIFY 7 -#define NOTIFY 8 -#define EXCEPT 9 +#define LP 2 +#define RP 3 +#define ARROW 4 +#define DCOLON 5 +#define NAME 6 +#define INSTALL 7 +#define VERIFY 8 +#define NOTIFY 9 +#define EXCEPT 10 + +#define VAR 11 + + /* lexical definitions */ +#define QUOTE 0200 /* used internally for quoted characters */ +#define TRIM 0177 /* Mask to strip quote bit */ /* table sizes */ #define HASHSIZE 1021 #define INMAX 3500 +#define NCARGS 10240 +#define GAVSIZ NCARGS / 6 +#define NSTAMPS 15 + #define ALLOC(x) (struct x *) malloc(sizeof(struct x)) @@ -49,7 +60,7 @@ extern int rem; /* remote file descriptor */ extern int iamremote; /* acting as remote server */ extern int filec; /* number of files to update */ extern char **filev; /* list of files/directories to update */ -extern char *tmpfile; /* file name for logging changes */ +extern char tmpfile[]; /* file name for logging changes */ extern char host[]; /* host name of master copy */ extern char *rhost; /* host name of remote being updated */ extern struct block *except; /* list of files to exclude */ @@ -58,5 +69,7 @@ extern int errno; /* system error number */ extern char *sys_errlist[]; struct block *lookup(); +struct block *makeblock(); struct block *expand(); char *rindex(); +char *index();