finger.h revision 2537
1258945Sroberto/* 2258945Sroberto * Copyright (c) 1989, 1993 3258945Sroberto * The Regents of the University of California. All rights reserved. 4258945Sroberto * 5258945Sroberto * This code is derived from software contributed to Berkeley by 6258945Sroberto * Tony Nardo of the Johns Hopkins University/Applied Physics Lab. 7258945Sroberto * 8258945Sroberto * Redistribution and use in source and binary forms, with or without 9258945Sroberto * modification, are permitted provided that the following conditions 10258945Sroberto * are met: 11258945Sroberto * 1. Redistributions of source code must retain the above copyright 12258945Sroberto * notice, this list of conditions and the following disclaimer. 13258945Sroberto * 2. Redistributions in binary form must reproduce the above copyright 14258945Sroberto * notice, this list of conditions and the following disclaimer in the 15258945Sroberto * documentation and/or other materials provided with the distribution. 16258945Sroberto * 3. All advertising materials mentioning features or use of this software 17258945Sroberto * must display the following acknowledgement: 18280849Scy * This product includes software developed by the University of 19258945Sroberto * California, Berkeley and its contributors. 20258945Sroberto * 4. Neither the name of the University nor the names of its contributors 21258945Sroberto * may be used to endorse or promote products derived from this software 22258945Sroberto * without specific prior written permission. 23258945Sroberto * 24258945Sroberto * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 25258945Sroberto * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 26258945Sroberto * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27258945Sroberto * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 28258945Sroberto * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29258945Sroberto * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30258945Sroberto * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31258945Sroberto * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32258945Sroberto * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33258945Sroberto * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34258945Sroberto * SUCH DAMAGE. 35258945Sroberto * 36258945Sroberto * @(#)finger.h 8.1 (Berkeley) 6/6/93 37258945Sroberto */ 38258945Sroberto 39258945Srobertotypedef struct person { 40258945Sroberto uid_t uid; /* user id */ 41258945Sroberto char *dir; /* user's home directory */ 42258945Sroberto char *homephone; /* pointer to home phone no. */ 43258945Sroberto char *name; /* login name */ 44258945Sroberto char *office; /* pointer to office name */ 45258945Sroberto char *officephone; /* pointer to office phone no. */ 46258945Sroberto char *realname; /* pointer to full name */ 47258945Sroberto char *shell; /* user's shell */ 48258945Sroberto time_t mailread; /* last time mail was read */ 49258945Sroberto time_t mailrecv; /* last time mail was received */ 50258945Sroberto struct where *whead, *wtail; /* list of where user is or has been */ 51258945Sroberto} PERSON; 52258945Sroberto 53258945Srobertoenum status { LASTLOG, LOGGEDIN }; 54258945Sroberto 55258945Srobertotypedef struct where { 56258945Sroberto struct where *next; /* next place user is or has been */ 57258945Sroberto enum status info; /* type/status of request */ 58258945Sroberto short writable; /* tty is writable */ 59258945Sroberto time_t loginat; /* time of (last) login */ 60258945Sroberto time_t idletime; /* how long idle (if logged in) */ 61258945Sroberto char tty[UT_LINESIZE+1]; /* null terminated tty line */ 62258945Sroberto char host[UT_HOSTSIZE+1]; /* null terminated remote host name */ 63258945Sroberto} WHERE; 64258945Sroberto 65258945Sroberto#include "extern.h" 66258945Sroberto