extern.h revision 150316
1169092Sdeischen/*-
2169092Sdeischen * Copyright (c) 1991, 1993
3169092Sdeischen *	The Regents of the University of California.  All rights reserved.
4156956Sume *
5156956Sume * Redistribution and use in source and binary forms, with or without
6156956Sume * modification, are permitted provided that the following conditions
7156956Sume * are met:
8156956Sume * 1. Redistributions of source code must retain the above copyright
9156956Sume *    notice, this list of conditions and the following disclaimer.
10156956Sume * 2. Redistributions in binary form must reproduce the above copyright
11156956Sume *    notice, this list of conditions and the following disclaimer in the
12156956Sume *    documentation and/or other materials provided with the distribution.
13156956Sume * 3. All advertising materials mentioning features or use of this software
14156956Sume *    must display the following acknowledgement:
15156956Sume *	This product includes software developed by the University of
16156956Sume *	California, Berkeley and its contributors.
17156956Sume * 4. Neither the name of the University nor the names of its contributors
18156956Sume *    may be used to endorse or promote products derived from this software
19156956Sume *    without specific prior written permission.
20156956Sume *
21156956Sume * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22156956Sume * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23156956Sume * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24156956Sume * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25156956Sume * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26156956Sume * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27156956Sume * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28170548Sdelphij * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29170548Sdelphij * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30156956Sume * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31156956Sume * SUCH DAMAGE.
32156956Sume *
33156956Sume *	@(#)extern.h	8.2 (Berkeley) 4/28/95
34156956Sume * $FreeBSD: head/usr.bin/finger/extern.h 150316 2005-09-19 10:11:47Z dds $
35156956Sume */
36156956Sume
37156956Sume#ifndef	_EXTERN_H_
38156956Sume#define	_EXTERN_H_
39
40extern char tbuf[1024];			/* Temp buffer for anybody. */
41extern int entries;			/* Number of people. */
42extern DB *db;				/* Database. */
43extern int d_first;
44extern sa_family_t family;
45extern int gflag;
46extern int lflag;
47extern time_t now;
48extern int oflag;
49extern int pplan;			/* don't show .plan/.project */
50extern int Tflag;
51extern int invoker_root;		/* Invoked by root */
52
53void	 enter_lastlog(PERSON *);
54PERSON	*enter_person(struct passwd *);
55void	 enter_where(struct utmp *, PERSON *);
56PERSON	*find_person(const char *);
57int	 hide(struct passwd *);
58void	 lflag_print(void);
59int	 match(struct passwd *, const char *);
60void	 netfinger(char *);
61PERSON	*palloc(void);
62char	*prphone(char *);
63void	 sflag_print(void);
64int	 show_text(const char *, const char *, const char *);
65
66#endif /* !_EXTERN_H_ */
67