1 /* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Tony Nardo of the Johns Hopkins University/Applied Physics Lab. 7 * 8 * %sccs.include.redist.c% 9 * 10 * @(#)finger.h 8.1 (Berkeley) 06/06/93 11 */ 12 13 typedef struct person { 14 uid_t uid; /* user id */ 15 char *dir; /* user's home directory */ 16 char *homephone; /* pointer to home phone no. */ 17 char *name; /* login name */ 18 char *office; /* pointer to office name */ 19 char *officephone; /* pointer to office phone no. */ 20 char *realname; /* pointer to full name */ 21 char *shell; /* user's shell */ 22 struct where *whead, *wtail; /* list of where user is or has been */ 23 } PERSON; 24 25 enum status { LASTLOG, LOGGEDIN }; 26 27 typedef struct where { 28 struct where *next; /* next place user is or has been */ 29 enum status info; /* type/status of request */ 30 short writable; /* tty is writable */ 31 time_t loginat; /* time of (last) login */ 32 time_t idletime; /* how long idle (if logged in) */ 33 char tty[UT_LINESIZE+1]; /* null terminated tty line */ 34 char host[UT_HOSTSIZE+1]; /* null terminated remote host name */ 35 } WHERE; 36 37 #include "extern.h" 38