1221345Sdim/*- 2218885Sdim * SPDX-License-Identifier: BSD-3-Clause 3218885Sdim * 4218885Sdim * Copyright (c) 1991, 1993 5218885Sdim * The Regents of the University of California. All rights reserved. 6218885Sdim * 7218885Sdim * Redistribution and use in source and binary forms, with or without 8218885Sdim * modification, are permitted provided that the following conditions 9218885Sdim * are met: 10218885Sdim * 1. Redistributions of source code must retain the above copyright 11218885Sdim * notice, this list of conditions and the following disclaimer. 12243830Sdim * 2. Redistributions in binary form must reproduce the above copyright 13243830Sdim * notice, this list of conditions and the following disclaimer in the 14218885Sdim * documentation and/or other materials provided with the distribution. 15243830Sdim * 3. Neither the name of the University nor the names of its contributors 16243830Sdim * may be used to endorse or promote products derived from this software 17263508Sdim * without specific prior written permission. 18251662Sdim * 19249423Sdim * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 20249423Sdim * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21249423Sdim * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22263508Sdim * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 23221345Sdim * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24249423Sdim * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25218885Sdim * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26221345Sdim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27239462Sdim * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28218885Sdim * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29218885Sdim * SUCH DAMAGE. 30218885Sdim */ 31218885Sdim 32218885Sdim#ifndef _EXTERN_H_ 33218885Sdim#define _EXTERN_H_ 34218885Sdim 35218885Sdimextern char tbuf[1024]; /* Temp buffer for anybody. */ 36218885Sdimextern int entries; /* Number of people. */ 37218885Sdimextern DB *db; /* Database. */ 38218885Sdimextern int d_first; 39218885Sdimextern sa_family_t family; 40218885Sdimextern int gflag; 41218885Sdimextern int lflag; 42218885Sdimextern time_t now; 43218885Sdimextern int oflag; 44263508Sdimextern int pplan; /* don't show .plan/.project */ 45218885Sdimextern int invoker_root; /* Invoked by root */ 46223017Sdim 47218885Sdimvoid enter_lastlog(PERSON *); 48218885SdimPERSON *enter_person(struct passwd *); 49218885Sdimvoid enter_where(struct utmpx *, PERSON *); 50218885SdimPERSON *find_person(char *); 51218885Sdimint hide(struct passwd *); 52263508Sdimvoid lflag_print(void); 53263508Sdimint match(struct passwd *, const char *); 54218885Sdimvoid netfinger(char *); 55218885SdimPERSON *palloc(void); 56243830Sdimchar *prphone(char *); 57243830Sdimvoid sflag_print(void); 58263508Sdimint show_text(const char *, const char *, const char *); 59263508Sdim 60221345Sdim#endif /* !_EXTERN_H_ */ 61263508Sdim