extern.h revision 256281
10SN/A/*-
25323SN/A * Copyright (c) 1991, 1993
30SN/A *	The Regents of the University of California.  All rights reserved.
40SN/A *
50SN/A * Redistribution and use in source and binary forms, with or without
60SN/A * modification, are permitted provided that the following conditions
70SN/A * are met:
80SN/A * 1. Redistributions of source code must retain the above copyright
90SN/A *    notice, this list of conditions and the following disclaimer.
100SN/A * 2. Redistributions in binary form must reproduce the above copyright
110SN/A *    notice, this list of conditions and the following disclaimer in the
120SN/A *    documentation and/or other materials provided with the distribution.
130SN/A * 4. Neither the name of the University nor the names of its contributors
140SN/A *    may be used to endorse or promote products derived from this software
150SN/A *    without specific prior written permission.
160SN/A *
170SN/A * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
180SN/A * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
191472SN/A * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
201472SN/A * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
211472SN/A * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
220SN/A * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
230SN/A * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
240SN/A * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
250SN/A * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
260SN/A * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
270SN/A * SUCH DAMAGE.
280SN/A *
290SN/A *	@(#)extern.h	8.2 (Berkeley) 4/28/95
300SN/A * $FreeBSD: stable/10/usr.bin/finger/extern.h 216370 2010-12-11 08:32:16Z joel $
310SN/A */
320SN/A
330SN/A#ifndef	_EXTERN_H_
340SN/A#define	_EXTERN_H_
350SN/A
360SN/Aextern char tbuf[1024];			/* Temp buffer for anybody. */
370SN/Aextern int entries;			/* Number of people. */
380SN/Aextern DB *db;				/* Database. */
390SN/Aextern int d_first;
400SN/Aextern sa_family_t family;
410SN/Aextern int gflag;
420SN/Aextern int lflag;
430SN/Aextern time_t now;
445397SN/Aextern int oflag;
455397SN/Aextern int pplan;			/* don't show .plan/.project */
460SN/Aextern int invoker_root;		/* Invoked by root */
475397SN/A
485397SN/Avoid	 enter_lastlog(PERSON *);
495397SN/APERSON	*enter_person(struct passwd *);
500SN/Avoid	 enter_where(struct utmpx *, PERSON *);
515397SN/APERSON	*find_person(char *);
525397SN/Aint	 hide(struct passwd *);
535397SN/Avoid	 lflag_print(void);
540SN/Aint	 match(struct passwd *, const char *);
555397SN/Avoid	 netfinger(char *);
565397SN/APERSON	*palloc(void);
575397SN/Achar	*prphone(char *);
580SN/Avoid	 sflag_print(void);
595397SN/Aint	 show_text(const char *, const char *, const char *);
605397SN/A
615397SN/A#endif /* !_EXTERN_H_ */
620SN/A