extern.h revision 74586
150397Sobrien/*-
250397Sobrien * Copyright (c) 1991, 1993
350397Sobrien *	The Regents of the University of California.  All rights reserved.
4169689Skan *
550397Sobrien * Redistribution and use in source and binary forms, with or without
6169689Skan * modification, are permitted provided that the following conditions
7169689Skan * are met:
850397Sobrien * 1. Redistributions of source code must retain the above copyright
9169689Skan *    notice, this list of conditions and the following disclaimer.
1050397Sobrien * 2. Redistributions in binary form must reproduce the above copyright
11132718Skan *    notice, this list of conditions and the following disclaimer in the
1250397Sobrien *    documentation and/or other materials provided with the distribution.
13132718Skan * 3. All advertising materials mentioning features or use of this software
1450397Sobrien *    must display the following acknowledgement:
1550397Sobrien *	This product includes software developed by the University of
1650397Sobrien *	California, Berkeley and its contributors.
17169689Skan * 4. Neither the name of the University nor the names of its contributors
18132718Skan *    may be used to endorse or promote products derived from this software
1950397Sobrien *    without specific prior written permission.
2050397Sobrien *
2150397Sobrien * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22169689Skan * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2350397Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24132718Skan * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25169689Skan * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26169689Skan * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2750397Sobrien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2850397Sobrien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2950397Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30132718Skan * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31132718Skan * SUCH DAMAGE.
3250397Sobrien *
3350397Sobrien *	@(#)extern.h	8.2 (Berkeley) 4/28/95
34169689Skan * $FreeBSD: head/usr.bin/finger/extern.h 74586 2001-03-21 18:43:49Z ache $
3590075Sobrien */
36169689Skan
3750397Sobrienextern char tbuf[1024];			/* Temp buffer for anybody. */
3850397Sobrienextern int entries;			/* Number of people. */
3990075Sobrienextern DB *db;				/* Database. */
4090075Sobrienextern int d_first;
4190075Sobrien
4290075Sobrienvoid	 enter_lastlog __P((PERSON *));
4390075SobrienPERSON	*enter_person __P((struct passwd *));
4490075Sobrienvoid	 enter_where __P((struct utmp *, PERSON *));
45169689SkanPERSON	*find_person __P((char *));
46132718Skanint		hide __P((struct passwd *));
47169689Skanvoid	 lflag_print __P((void));
48169689Skanint	 match __P((struct passwd *, char *));
49169689Skanvoid	 netfinger __P((char *));
5050397SobrienPERSON	*palloc __P((void));
5150397Sobrienchar	*prphone __P((char *));
5250397Sobrienvoid	 sflag_print __P((void));
5350397Sobrienint	 show_text __P((char *, char *, char *));
54169689Skan