* Copyright (c) 1983 Regents of the University of California.
* %sccs.include.redist.c%
* @(#)defs.h 5.10 (Berkeley) %G%
* The version number should be changed whenever the protocol changes.
/* lexical definitions */
#define QUOTE 0200 /* used internally for quoted characters */
#define TRIM 0177 /* Mask to strip quote bit */
/* expand type definitions */
/* actions for lookup() */
#define ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#define ALLOC(x) (struct x *) malloc(sizeof(struct x))
struct namelist
{ /* for making lists of strings */
short sc_type
; /* type - INSTALL,NOTIFY,EXCEPT,SPECIAL */
struct namelist
*sc_args
;
int c_type
; /* type - ARROW,DCOLON */
char *c_name
; /* hostname or time stamp file name */
char *c_label
; /* label for partial update */
struct namelist
*c_files
;
extern int debug
; /* debugging flag */
extern int nflag
; /* NOP flag, don't execute commands */
extern int qflag
; /* Quiet. don't print messages */
extern int options
; /* global options */
extern int nerrs
; /* number of errors seen */
extern int rem
; /* remote file descriptor */
extern int iamremote
; /* acting as remote server */
extern char tempfile
[]; /* file name for logging changes */
extern struct linkbuf
*ihead
; /* list of files with more than one link */
extern struct passwd
*pw
; /* pointer to static area used by getpwent */
extern struct group
*gr
; /* pointer to static area used by getgrent */
extern char host
[]; /* host name of master copy */
extern char buf
[]; /* general purpose buffer */
int any
__P((int, char *));
char *colon
__P((char *));
void define
__P((char *));
void docmds
__P((char **, int, char **));
void error
__P((const char *, ...));
int except
__P((char *));
expand
__P((struct namelist
*, int));
char *exptilde
__P((char [], char *));
void fatal
__P((const char *, ...));
int inlist
__P((struct namelist
*, char *));
struct namelist
*, struct namelist
*, struct subcmd
*));
void install
__P((char *, char *, int, int));
void log
__P((FILE *, const char *, ...));
lookup
__P((char *, int, struct namelist
*));
void lostconn
__P((int));
void prnames
__P((struct namelist
*));
void yyerror
__P((char *));