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