extern.h revision 330897
1128785Ssmkelly/*-
21590Srgrimes * SPDX-License-Identifier: BSD-3-Clause
3128785Ssmkelly *
41590Srgrimes * Copyright (c) 1991, 1993
5128785Ssmkelly *	The Regents of the University of California.  All rights reserved.
6128785Ssmkelly *
7128785Ssmkelly * Redistribution and use in source and binary forms, with or without
8128785Ssmkelly * modification, are permitted provided that the following conditions
9128785Ssmkelly * are met:
10128785Ssmkelly * 1. Redistributions of source code must retain the above copyright
11128785Ssmkelly *    notice, this list of conditions and the following disclaimer.
12128785Ssmkelly * 2. Redistributions in binary form must reproduce the above copyright
131590Srgrimes *    notice, this list of conditions and the following disclaimer in the
14128785Ssmkelly *    documentation and/or other materials provided with the distribution.
151590Srgrimes * 4. Neither the name of the University nor the names of its contributors
161590Srgrimes *    may be used to endorse or promote products derived from this software
171590Srgrimes *    without specific prior written permission.
18128785Ssmkelly *
191590Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20128785Ssmkelly * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
211590Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
221590Srgrimes * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23128785Ssmkelly * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
241590Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25128785Ssmkelly * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
261590Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
271590Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
281590Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
291590Srgrimes * SUCH DAMAGE.
301590Srgrimes *
311590Srgrimes *	@(#)extern.h	8.2 (Berkeley) 4/28/95
321590Srgrimes * $FreeBSD: stable/11/usr.bin/finger/extern.h 330897 2018-03-14 03:19:51Z eadler $
331590Srgrimes */
34128785Ssmkelly
351590Srgrimes#ifndef	_EXTERN_H_
36128785Ssmkelly#define	_EXTERN_H_
37128785Ssmkelly
38128785Ssmkellyextern char tbuf[1024];			/* Temp buffer for anybody. */
391590Srgrimesextern int entries;			/* Number of people. */
401590Srgrimesextern DB *db;				/* Database. */
411590Srgrimesextern int d_first;
42128785Ssmkellyextern sa_family_t family;
43128785Ssmkellyextern int gflag;
44128785Ssmkellyextern int lflag;
45128785Ssmkellyextern time_t now;
46128785Ssmkellyextern int oflag;
471590Srgrimesextern int pplan;			/* don't show .plan/.project */
481590Srgrimesextern int invoker_root;		/* Invoked by root */
491590Srgrimes
501590Srgrimesvoid	 enter_lastlog(PERSON *);
511590SrgrimesPERSON	*enter_person(struct passwd *);
521590Srgrimesvoid	 enter_where(struct utmpx *, PERSON *);
531590SrgrimesPERSON	*find_person(char *);
541590Srgrimesint	 hide(struct passwd *);
55128785Ssmkellyvoid	 lflag_print(void);
56128785Ssmkellyint	 match(struct passwd *, const char *);
57128785Ssmkellyvoid	 netfinger(char *);
581590SrgrimesPERSON	*palloc(void);
591590Srgrimeschar	*prphone(char *);
60228975Suqsvoid	 sflag_print(void);
61128785Ssmkellyint	 show_text(const char *, const char *, const char *);
62128785Ssmkelly
63128785Ssmkelly#endif /* !_EXTERN_H_ */
64128785Ssmkelly