xref: /csrg-svn/usr.bin/finger/finger.h (revision 61995)
137660Sbostic /*
2*61995Sbostic  * Copyright (c) 1989, 1993
3*61995Sbostic  *	The Regents of the University of California.  All rights reserved.
437660Sbostic  *
540027Sbostic  * This code is derived from software contributed to Berkeley by
640027Sbostic  * Tony Nardo of the Johns Hopkins University/Applied Physics Lab.
740027Sbostic  *
842731Sbostic  * %sccs.include.redist.c%
937660Sbostic  *
10*61995Sbostic  *	@(#)finger.h	8.1 (Berkeley) 06/06/93
1137660Sbostic  */
1237660Sbostic 
1337660Sbostic typedef struct person {
1437660Sbostic 	uid_t uid;			/* user id */
1537660Sbostic 	char *dir;			/* user's home directory */
1637660Sbostic 	char *homephone;		/* pointer to home phone no. */
1737660Sbostic 	char *name;			/* login name */
1837660Sbostic 	char *office;			/* pointer to office name */
1937660Sbostic 	char *officephone;		/* pointer to office phone no. */
2037660Sbostic 	char *realname;			/* pointer to full name */
2137660Sbostic 	char *shell;			/* user's shell */
2250613Sbostic 	struct where *whead, *wtail;	/* list of where user is or has been */
2337664Sedward } PERSON;
2437664Sedward 
2537664Sedward enum status { LASTLOG, LOGGEDIN };
2637664Sedward 
2737664Sedward typedef struct where {
2850613Sbostic 	struct where *next;		/* next place user is or has been */
2937664Sedward 	enum status info;		/* type/status of request */
3037664Sedward 	short writable;			/* tty is writable */
3137664Sedward 	time_t loginat;			/* time of (last) login */
3237664Sedward 	time_t idletime;		/* how long idle (if logged in) */
3337660Sbostic 	char tty[UT_LINESIZE+1];	/* null terminated tty line */
3437660Sbostic 	char host[UT_HOSTSIZE+1];	/* null terminated remote host name */
3537664Sedward } WHERE;
3637660Sbostic 
3750596Sbostic #include "extern.h"
38