17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 57c478bd9Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 67c478bd9Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 77c478bd9Sstevel@tonic-gate * with the License. 87c478bd9Sstevel@tonic-gate * 97c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 107c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 117c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 127c478bd9Sstevel@tonic-gate * and limitations under the License. 137c478bd9Sstevel@tonic-gate * 147c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 157c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 167c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 177c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 187c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 197c478bd9Sstevel@tonic-gate * 207c478bd9Sstevel@tonic-gate * CDDL HEADER END 217c478bd9Sstevel@tonic-gate */ 227c478bd9Sstevel@tonic-gate /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 237c478bd9Sstevel@tonic-gate /* All Rights Reserved */ 247c478bd9Sstevel@tonic-gate 257c478bd9Sstevel@tonic-gate /* 26*34e48580Sdp * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 27*34e48580Sdp * Use is subject to license terms. 287c478bd9Sstevel@tonic-gate */ 297c478bd9Sstevel@tonic-gate 30*34e48580Sdp #ifndef _EXTERN_H 31*34e48580Sdp #define _EXTERN_H 327c478bd9Sstevel@tonic-gate 33*34e48580Sdp #pragma ident "%Z%%M% %I% %E% SMI" 34*34e48580Sdp 35*34e48580Sdp #ifdef __cplusplus 36*34e48580Sdp extern "C" { 37*34e48580Sdp #endif 387c478bd9Sstevel@tonic-gate 397c478bd9Sstevel@tonic-gate extern void log(); 407c478bd9Sstevel@tonic-gate extern void initialize(); 417c478bd9Sstevel@tonic-gate extern void openlog(); 427c478bd9Sstevel@tonic-gate extern void opendebug(); 437c478bd9Sstevel@tonic-gate extern void debug(); 447c478bd9Sstevel@tonic-gate extern void insert(); 457c478bd9Sstevel@tonic-gate extern void startpms(); 467c478bd9Sstevel@tonic-gate extern void startit(); 477c478bd9Sstevel@tonic-gate extern void pollpms(); 487c478bd9Sstevel@tonic-gate extern void pollfail(); 497c478bd9Sstevel@tonic-gate extern void startpoll(); 507c478bd9Sstevel@tonic-gate extern void sigpoll(); 517c478bd9Sstevel@tonic-gate extern void sendpmmsg(); 527c478bd9Sstevel@tonic-gate extern void purge(); 537c478bd9Sstevel@tonic-gate extern void parse(); 547c478bd9Sstevel@tonic-gate extern void read_table(); 557c478bd9Sstevel@tonic-gate extern void readpipe(); 567c478bd9Sstevel@tonic-gate extern void error(); 577c478bd9Sstevel@tonic-gate extern void replace(); 587c478bd9Sstevel@tonic-gate extern void reap(); 597c478bd9Sstevel@tonic-gate extern void sendack(); 607c478bd9Sstevel@tonic-gate extern void account(); 617c478bd9Sstevel@tonic-gate extern void cleanutx(); 627c478bd9Sstevel@tonic-gate extern void readutmpx(); 63*34e48580Sdp extern void quit() __NORETURN; 647c478bd9Sstevel@tonic-gate extern void usage(); 657c478bd9Sstevel@tonic-gate 667c478bd9Sstevel@tonic-gate extern FILE *open_temp(); 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gate extern struct sactab *read_entry(); 697c478bd9Sstevel@tonic-gate extern struct sactab *findpm(); 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gate extern char *trim(); 72*34e48580Sdp extern char *pstate(unchar); 737c478bd9Sstevel@tonic-gate extern char *nexttok(); 747c478bd9Sstevel@tonic-gate extern char **mkargv(); 757c478bd9Sstevel@tonic-gate extern char *make_tempname(); 767c478bd9Sstevel@tonic-gate extern char **dump_table(); 777c478bd9Sstevel@tonic-gate 787c478bd9Sstevel@tonic-gate extern int N_msgs; 797c478bd9Sstevel@tonic-gate extern unsigned Stime; 807c478bd9Sstevel@tonic-gate extern int Sfd; 817c478bd9Sstevel@tonic-gate extern int Cfd; 827c478bd9Sstevel@tonic-gate extern int Nentries; 837c478bd9Sstevel@tonic-gate extern struct sactab *Sactab; 847c478bd9Sstevel@tonic-gate extern struct errmsg Msgs[]; 857c478bd9Sstevel@tonic-gate extern char Scratch[]; 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gate extern char Comment[]; 887c478bd9Sstevel@tonic-gate extern int Saferrno; 897c478bd9Sstevel@tonic-gate 907c478bd9Sstevel@tonic-gate extern char **environ; 91*34e48580Sdp 92*34e48580Sdp #ifdef __cplusplus 93*34e48580Sdp } 94*34e48580Sdp #endif 95*34e48580Sdp 96*34e48580Sdp #endif /* _EXTERN_H */ 97