/*
 * External definitions
 */

extern char *dial[];
extern char	*ttyx;			/* My terminal device pathname */
extern char   terms[][16];          /* Logged on user terminals */
extern char	unm[];		/* User name to log into */
extern char	pw[];			/* Encrypted password of account */
extern char	buf[];		/* General work buffer */
extern char	passbuf[];		/* Password input buffer */
extern char 	*mytty;		/* My terminal name */
extern int	moerr;			/* Interrupt or Quit during MOTD */
extern int	mail;		/* Mail flag: 1 = mail, 0 = no mail */
extern int	motdflg;		/* Print MOTD: 1 = No, 0 = Yes */
extern int	kflg;		/* Flag to indicate timeout proc */
extern int	passflg;	/* Password supplied on name line */

int	tmout();		/* Alarm clock expired */
int	mint();			/* Interrupt or Quit during MOTD */
extern int	quoflg;		/* Is user over quota */
char   *ttyname();
int	ttyslot();
extern	char **environ;

extern char	*QFILE;
extern struct	pwent	pwe;
extern struct	utmp	who;
extern struct	info	info;
extern struct	qent	q;

extern char	wbuf[];
extern char	homedir[];
extern char	teletype[];
extern char	*envinit[];
extern char	*paddr[];
extern int	plen[];

extern int	qfd;
extern uint	qval;
extern short	usercnt;		/* Number of users already logged in */

#ifdef	EXPSTUFF
extern struct	exp entry;
#endif

extern char *errmsg[];	/* errors */
