extern.h revision 92920
1122394Sharti/*-
2122394Sharti * Copyright (c) 1991, 1993
3122394Sharti *	The Regents of the University of California.  All rights reserved.
4122394Sharti *
5122394Sharti * Redistribution and use in source and binary forms, with or without
6122394Sharti * modification, are permitted provided that the following conditions
7310903Sngie * are met:
8133211Sharti * 1. Redistributions of source code must retain the above copyright
9133211Sharti *    notice, this list of conditions and the following disclaimer.
10133211Sharti * 2. Redistributions in binary form must reproduce the above copyright
11133211Sharti *    notice, this list of conditions and the following disclaimer in the
12133211Sharti *    documentation and/or other materials provided with the distribution.
13122394Sharti * 3. All advertising materials mentioning features or use of this software
14122394Sharti *    must display the following acknowledgement:
15122394Sharti *	This product includes software developed by the University of
16310903Sngie *	California, Berkeley and its contributors.
17133211Sharti * 4. Neither the name of the University nor the names of its contributors
18133211Sharti *    may be used to endorse or promote products derived from this software
19133211Sharti *    without specific prior written permission.
20133211Sharti *
21133211Sharti * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22133211Sharti * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23133211Sharti * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24133211Sharti * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25133211Sharti * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26133211Sharti * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27133211Sharti * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28122394Sharti * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29156066Sharti * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30122394Sharti * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31122394Sharti * SUCH DAMAGE.
32122394Sharti *
33122394Sharti *	@(#)extern.h	8.2 (Berkeley) 4/28/95
34216294Ssyrinx * $FreeBSD: head/usr.bin/finger/extern.h 92920 2002-03-22 01:22:50Z imp $
35122394Sharti */
36122394Sharti
37122394Shartiextern char tbuf[1024];			/* Temp buffer for anybody. */
38122394Shartiextern int entries;			/* Number of people. */
39122394Shartiextern DB *db;				/* Database. */
40122394Shartiextern int d_first;
41122394Sharti
42122394Shartivoid	 enter_lastlog(PERSON *);
43122394ShartiPERSON	*enter_person(struct passwd *);
44122394Shartivoid	 enter_where(struct utmp *, PERSON *);
45122394ShartiPERSON	*find_person(char *);
46122394Shartiint		hide(struct passwd *);
47122394Shartivoid	 lflag_print(void);
48122394Shartiint	 match(struct passwd *, char *);
49122394Shartivoid	 netfinger(char *);
50122394ShartiPERSON	*palloc(void);
51122394Shartichar	*prphone(char *);
52122394Shartivoid	 sflag_print(void);
53122394Shartiint	 show_text(const char *, const char *, const char *);
54122394Sharti