extern.h revision 102944
1139749Simp/*-
2102445Sjhb * Copyright (c) 1991, 1993
3102445Sjhb *	The Regents of the University of California.  All rights reserved.
4102445Sjhb *
5102445Sjhb * Redistribution and use in source and binary forms, with or without
6102445Sjhb * modification, are permitted provided that the following conditions
7102445Sjhb * are met:
8102445Sjhb * 1. Redistributions of source code must retain the above copyright
9102445Sjhb *    notice, this list of conditions and the following disclaimer.
10102445Sjhb * 2. Redistributions in binary form must reproduce the above copyright
11102445Sjhb *    notice, this list of conditions and the following disclaimer in the
12102445Sjhb *    documentation and/or other materials provided with the distribution.
13102445Sjhb * 3. All advertising materials mentioning features or use of this software
14102445Sjhb *    must display the following acknowledgement:
15102445Sjhb *	This product includes software developed by the University of
16102445Sjhb *	California, Berkeley and its contributors.
17102445Sjhb * 4. Neither the name of the University nor the names of its contributors
18102445Sjhb *    may be used to endorse or promote products derived from this software
19102445Sjhb *    without specific prior written permission.
20102445Sjhb *
21102445Sjhb * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22102445Sjhb * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23102445Sjhb * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24102445Sjhb * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25102445Sjhb * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26102445Sjhb * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27102445Sjhb * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28102445Sjhb * 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
31119418Sobrien * SUCH DAMAGE.
32257251Skib *
33257251Skib *	@(#)extern.h	8.2 (Berkeley) 4/28/95
34102445Sjhb * $FreeBSD: head/usr.bin/finger/extern.h 102944 2002-09-04 23:29:10Z dwmalone $
35102445Sjhb */
36102445Sjhb
37102445Sjhbextern char tbuf[1024];			/* Temp buffer for anybody. */
38102445Sjhbextern int entries;			/* Number of people. */
39102445Sjhbextern DB *db;				/* Database. */
40102445Sjhbextern int d_first;
41193530Sjkimextern sa_family_t family;
42193530Sjkimextern int gflag;
43193530Sjkimextern int lflag;
44102445Sjhbextern time_t now;
45297679Sjhbextern int oflag;
46102445Sjhbextern int pplan;			/* don't show .plan/.project */
47102445Sjhbextern int Tflag;
48102445Sjhb
49102445Sjhbvoid	 enter_lastlog(PERSON *);
50102445SjhbPERSON	*enter_person(struct passwd *);
51102445Sjhbvoid	 enter_where(struct utmp *, PERSON *);
52102445SjhbPERSON	*find_person(const char *);
53102445Sjhbint	 hide(struct passwd *);
54102445Sjhbvoid	 lflag_print(void);
55129829Snjlint	 match(struct passwd *, const char *);
56102445Sjhbvoid	 netfinger(char *);
57102445SjhbPERSON	*palloc(void);
58102445Sjhbchar	*prphone(char *);
59102445Sjhbvoid	 sflag_print(void);
60129829Snjlint	 show_text(const char *, const char *, const char *);
61129829Snjl