extern.h revision 102944
162053Smarkm/*-
2128059Smarkm * Copyright (c) 1991, 1993
362053Smarkm *	The Regents of the University of California.  All rights reserved.
462053Smarkm *
562053Smarkm * Redistribution and use in source and binary forms, with or without
662053Smarkm * modification, are permitted provided that the following conditions
762053Smarkm * are met:
862053Smarkm * 1. Redistributions of source code must retain the above copyright
962053Smarkm *    notice, this list of conditions and the following disclaimer.
1062053Smarkm * 2. Redistributions in binary form must reproduce the above copyright
1162053Smarkm *    notice, this list of conditions and the following disclaimer in the
1262053Smarkm *    documentation and/or other materials provided with the distribution.
1362053Smarkm * 3. All advertising materials mentioning features or use of this software
1462053Smarkm *    must display the following acknowledgement:
1562053Smarkm *	This product includes software developed by the University of
1662053Smarkm *	California, Berkeley and its contributors.
1762053Smarkm * 4. Neither the name of the University nor the names of its contributors
1862053Smarkm *    may be used to endorse or promote products derived from this software
1962053Smarkm *    without specific prior written permission.
2062053Smarkm *
2162053Smarkm * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2262053Smarkm * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2362053Smarkm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2462053Smarkm * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2562053Smarkm * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2662053Smarkm * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2762053Smarkm * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28119418Sobrien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29119418Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30119418Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3162053Smarkm * SUCH DAMAGE.
3262053Smarkm *
3376166Smarkm *	@(#)extern.h	8.2 (Berkeley) 4/28/95
3462053Smarkm * $FreeBSD: head/usr.bin/finger/extern.h 102944 2002-09-04 23:29:10Z dwmalone $
3576166Smarkm */
3674771Smarkm
3762053Smarkmextern char tbuf[1024];			/* Temp buffer for anybody. */
3874072Smarkmextern int entries;			/* Number of people. */
3976166Smarkmextern DB *db;				/* Database. */
4062053Smarkmextern int d_first;
41129876Sphkextern sa_family_t family;
4276166Smarkmextern int gflag;
4367112Smarkmextern int lflag;
4483366Sjulianextern time_t now;
4570834Swollmanextern int oflag;
4676166Smarkmextern int pplan;			/* don't show .plan/.project */
4776166Smarkmextern int Tflag;
4867112Smarkm
4974072Smarkmvoid	 enter_lastlog(PERSON *);
5062053SmarkmPERSON	*enter_person(struct passwd *);
5174072Smarkmvoid	 enter_where(struct utmp *, PERSON *);
5262053SmarkmPERSON	*find_person(const char *);
5374072Smarkmint	 hide(struct passwd *);
5462053Smarkmvoid	 lflag_print(void);
55122871Smarkmint	 match(struct passwd *, const char *);
5662053Smarkmvoid	 netfinger(char *);
57128059SmarkmPERSON	*palloc(void);
58128059Smarkmchar	*prphone(char *);
59128059Smarkmvoid	 sflag_print(void);
60128059Smarkmint	 show_text(const char *, const char *, const char *);
61128059Smarkm