extern.h revision 126963
160894Smsmith/*- 260894Smsmith * Copyright (c) 1991, 1993 360894Smsmith * The Regents of the University of California. All rights reserved. 460894Smsmith * 560894Smsmith * Redistribution and use in source and binary forms, with or without 660894Smsmith * modification, are permitted provided that the following conditions 760894Smsmith * are met: 860894Smsmith * 1. Redistributions of source code must retain the above copyright 960894Smsmith * notice, this list of conditions and the following disclaimer. 1060894Smsmith * 2. Redistributions in binary form must reproduce the above copyright 1160894Smsmith * notice, this list of conditions and the following disclaimer in the 1260894Smsmith * documentation and/or other materials provided with the distribution. 1360894Smsmith * 3. All advertising materials mentioning features or use of this software 1460894Smsmith * must display the following acknowledgement: 1560894Smsmith * This product includes software developed by the University of 1660894Smsmith * California, Berkeley and its contributors. 1760894Smsmith * 4. Neither the name of the University nor the names of its contributors 1860894Smsmith * may be used to endorse or promote products derived from this software 1960894Smsmith * without specific prior written permission. 2060894Smsmith * 2160894Smsmith * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2260894Smsmith * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2360894Smsmith * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2460894Smsmith * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2560894Smsmith * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2660894Smsmith * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2760894Smsmith * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2860894Smsmith * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2960894Smsmith * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3060894Smsmith * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3160894Smsmith * SUCH DAMAGE. 3260894Smsmith * 3360894Smsmith * @(#)extern.h 8.2 (Berkeley) 4/28/95 3460894Smsmith * $FreeBSD: head/usr.bin/finger/extern.h 126963 2004-03-14 06:43:34Z jmallett $ 3560894Smsmith */ 3660894Smsmith 3760894Smsmith#ifndef _EXTERN_H_ 3860894Smsmith#define _EXTERN_H_ 3960894Smsmith 4060894Smsmithextern char tbuf[1024]; /* Temp buffer for anybody. */ 4160894Smsmithextern int entries; /* Number of people. */ 4260894Smsmithextern DB *db; /* Database. */ 4360894Smsmithextern int d_first; 4460894Smsmithextern sa_family_t family; 4560894Smsmithextern int gflag; 4660894Smsmithextern int lflag; 4760894Smsmithextern time_t now; 4860894Smsmithextern int oflag; 4960894Smsmithextern int pplan; /* don't show .plan/.project */ 5060894Smsmithextern int Tflag; 5160894Smsmith 5260894Smsmithvoid enter_lastlog(PERSON *); 5360894SmsmithPERSON *enter_person(struct passwd *); 5460894Smsmithvoid enter_where(struct utmp *, PERSON *); 5560894SmsmithPERSON *find_person(const char *); 5660894Smsmithint hide(struct passwd *); 5760894Smsmithvoid lflag_print(void); 5860894Smsmithint match(struct passwd *, const char *); 5960894Smsmithvoid netfinger(char *); 6060894SmsmithPERSON *palloc(void); 6160894Smsmithchar *prphone(char *); 6260894Smsmithvoid sflag_print(void); 6360894Smsmithint show_text(const char *, const char *, const char *); 6460894Smsmith 6560894Smsmith#endif /* !_EXTERN_H_ */ 6660894Smsmith