1*ee5c979cSperry /* $NetBSD: extern.h,v 1.10 2006/01/04 01:17:54 perry Exp $ */ 23fe138c1Sperry 3ca160a4eSjtc /*- 4ca160a4eSjtc * Copyright (c) 1991, 1993 5ca160a4eSjtc * The Regents of the University of California. All rights reserved. 6ca160a4eSjtc * 7ca160a4eSjtc * Redistribution and use in source and binary forms, with or without 8ca160a4eSjtc * modification, are permitted provided that the following conditions 9ca160a4eSjtc * are met: 10ca160a4eSjtc * 1. Redistributions of source code must retain the above copyright 11ca160a4eSjtc * notice, this list of conditions and the following disclaimer. 12ca160a4eSjtc * 2. Redistributions in binary form must reproduce the above copyright 13ca160a4eSjtc * notice, this list of conditions and the following disclaimer in the 14ca160a4eSjtc * documentation and/or other materials provided with the distribution. 1589aaa1bbSagc * 3. Neither the name of the University nor the names of its contributors 16ca160a4eSjtc * may be used to endorse or promote products derived from this software 17ca160a4eSjtc * without specific prior written permission. 18ca160a4eSjtc * 19ca160a4eSjtc * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 20ca160a4eSjtc * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21ca160a4eSjtc * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22ca160a4eSjtc * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 23ca160a4eSjtc * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24ca160a4eSjtc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25ca160a4eSjtc * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26ca160a4eSjtc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27ca160a4eSjtc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28ca160a4eSjtc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29ca160a4eSjtc * SUCH DAMAGE. 30ca160a4eSjtc * 31ca160a4eSjtc * @(#)extern.h 8.2 (Berkeley) 4/28/95 32ca160a4eSjtc */ 33ca160a4eSjtc 343ccb8ba1Slukem extern time_t now; /* Current time. */ 35ca160a4eSjtc extern char tbuf[1024]; /* Temp buffer for anybody. */ 36ca160a4eSjtc extern int entries; /* Number of people. */ 37987dbad8Smrg extern DB *db; /* Database. */ 383ccb8ba1Slukem extern int lflag; 393ccb8ba1Slukem extern int oflag; 4027032902Smrg extern int gflag; 41b3399fd7Skim extern int eightflag; 423ccb8ba1Slukem extern int pplan; 43ca160a4eSjtc 44*ee5c979cSperry void enter_lastlog(PERSON *); 45*ee5c979cSperry PERSON *enter_person(struct passwd *); 46*ee5c979cSperry void enter_where(struct utmpentry *, PERSON *); 47*ee5c979cSperry void expandusername(const char *, const char *, char *, int); 48*ee5c979cSperry PERSON *find_person(char *); 49*ee5c979cSperry int hash(char *); 50*ee5c979cSperry void lflag_print(void); 51*ee5c979cSperry int match(struct passwd *, char *); 52*ee5c979cSperry void netfinger(char *); 53*ee5c979cSperry PERSON *palloc(void); 54*ee5c979cSperry char *prphone(char *); 55*ee5c979cSperry int psort(const void *, const void *); 56*ee5c979cSperry void sflag_print(void); 57*ee5c979cSperry PERSON **sort(void); 58