1*37660Sbostic /* 2*37660Sbostic * Copyright (c) 1989 The Regents of the University of California. 3*37660Sbostic * All rights reserved. 4*37660Sbostic * 5*37660Sbostic * This code is derived from software contributed to Berkeley by 6*37660Sbostic * Tony Nardo of the Johns Hopkins University/Applied Physics Lab. 7*37660Sbostic * 8*37660Sbostic * Redistribution and use in source and binary forms are permitted 9*37660Sbostic * provided that the above copyright notice and this paragraph are 10*37660Sbostic * duplicated in all such forms and that any documentation, 11*37660Sbostic * advertising materials, and other materials related to such 12*37660Sbostic * distribution and use acknowledge that the software was developed 13*37660Sbostic * by the University of California, Berkeley. The name of the 14*37660Sbostic * University may not be used to endorse or promote products derived 15*37660Sbostic * from this software without specific prior written permission. 16*37660Sbostic * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17*37660Sbostic * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18*37660Sbostic * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19*37660Sbostic * 20*37660Sbostic * @(#)finger.h 5.1 (Berkeley) 05/06/89 21*37660Sbostic */ 22*37660Sbostic 23*37660Sbostic #include <pwd.h> 24*37660Sbostic #include <utmp.h> 25*37660Sbostic 26*37660Sbostic enum status { PRINTED, FOUND, LOGGEDIN }; 27*37660Sbostic typedef struct person { 28*37660Sbostic struct person *next; /* link to next person */ 29*37660Sbostic time_t loginat; /* time of (last) login */ 30*37660Sbostic time_t idletime; /* how long idle (if logged in) */ 31*37660Sbostic uid_t uid; /* user id */ 32*37660Sbostic enum status info; /* type/status of request */ 33*37660Sbostic short writable; /* tty is writable */ 34*37660Sbostic char *dir; /* user's home directory */ 35*37660Sbostic char *homephone; /* pointer to home phone no. */ 36*37660Sbostic char *name; /* login name */ 37*37660Sbostic char *office; /* pointer to office name */ 38*37660Sbostic char *officephone; /* pointer to office phone no. */ 39*37660Sbostic char *realname; /* pointer to full name */ 40*37660Sbostic char *shell; /* user's shell */ 41*37660Sbostic char tty[UT_LINESIZE+1]; /* null terminated tty line */ 42*37660Sbostic char host[UT_HOSTSIZE+1]; /* null terminated remote host name */ 43*37660Sbostic } PERSON; 44*37660Sbostic 45*37660Sbostic extern char tbuf[1024]; /* temp buffer for anybody */ 46