1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 22/* All Rights Reserved */ 23 24/* 25 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 26 * Use is subject to license terms. 27 */ 28 29#ifndef _EXTERN_H 30#define _EXTERN_H 31 32#include "structs.h" 33 34#ifdef __cplusplus 35extern "C" { 36#endif 37 38extern void log(); 39extern void initialize(); 40extern void openlog(); 41extern void opendebug(); 42extern void debug(); 43extern void insert(); 44extern void startpms(); 45extern void startit(); 46extern void pollpms(); 47extern void pollfail(); 48extern void startpoll(); 49extern void sigpoll(); 50extern void sendpmmsg(); 51extern void purge(); 52extern void parse(); 53extern void read_table(); 54extern void readpipe(); 55extern void error(); 56extern void replace(); 57extern void reap(); 58extern void sendack(); 59extern void account(); 60extern void cleanutx(); 61extern void readutmpx(); 62extern void quit() __NORETURN; 63extern void usage(); 64 65extern FILE *open_temp(); 66 67extern struct sactab *read_entry(); 68extern struct sactab *findpm(); 69 70extern char *trim(); 71extern char *pstate(uchar_t); 72extern char *nexttok(); 73extern char **mkargv(); 74extern char *make_tempname(); 75extern char **dump_table(); 76 77extern int N_msgs; 78extern unsigned Stime; 79extern int Sfd; 80extern int Cfd; 81extern int Nentries; 82extern struct sactab *Sactab; 83extern struct errmsg Msgs[]; 84extern char Scratch[]; 85 86extern char Comment[]; 87extern int Saferrno; 88 89extern char **environ; 90 91#ifdef __cplusplus 92} 93#endif 94 95#endif /* _EXTERN_H */ 96