xref: /titanic_41/usr/src/cmd/saf/extern.h (revision d67944fbe3fa0b31893a7116a09b0718eecf6078)
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
5*d67944fbSScott Rotondo  * Common Development and Distribution License (the "License").
6*d67944fbSScott Rotondo  * You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate  *
87c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate  * and limitations under the License.
127c478bd9Sstevel@tonic-gate  *
137c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate  *
197c478bd9Sstevel@tonic-gate  * CDDL HEADER END
207c478bd9Sstevel@tonic-gate  */
217c478bd9Sstevel@tonic-gate /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
227c478bd9Sstevel@tonic-gate /*	  All Rights Reserved  	*/
237c478bd9Sstevel@tonic-gate 
247c478bd9Sstevel@tonic-gate /*
25*d67944fbSScott Rotondo  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2634e48580Sdp  * Use is subject to license terms.
277c478bd9Sstevel@tonic-gate  */
287c478bd9Sstevel@tonic-gate 
2934e48580Sdp #ifndef	_EXTERN_H
3034e48580Sdp #define	_EXTERN_H
317c478bd9Sstevel@tonic-gate 
32*d67944fbSScott Rotondo #include "structs.h"
3334e48580Sdp 
3434e48580Sdp #ifdef	__cplusplus
3534e48580Sdp extern "C" {
3634e48580Sdp #endif
377c478bd9Sstevel@tonic-gate 
387c478bd9Sstevel@tonic-gate extern	void	log();
397c478bd9Sstevel@tonic-gate extern	void	initialize();
407c478bd9Sstevel@tonic-gate extern	void	openlog();
417c478bd9Sstevel@tonic-gate extern	void	opendebug();
427c478bd9Sstevel@tonic-gate extern	void	debug();
437c478bd9Sstevel@tonic-gate extern	void	insert();
447c478bd9Sstevel@tonic-gate extern	void	startpms();
457c478bd9Sstevel@tonic-gate extern	void	startit();
467c478bd9Sstevel@tonic-gate extern	void	pollpms();
477c478bd9Sstevel@tonic-gate extern	void	pollfail();
487c478bd9Sstevel@tonic-gate extern	void	startpoll();
497c478bd9Sstevel@tonic-gate extern	void	sigpoll();
507c478bd9Sstevel@tonic-gate extern	void	sendpmmsg();
517c478bd9Sstevel@tonic-gate extern	void	purge();
527c478bd9Sstevel@tonic-gate extern	void	parse();
537c478bd9Sstevel@tonic-gate extern	void	read_table();
547c478bd9Sstevel@tonic-gate extern	void	readpipe();
557c478bd9Sstevel@tonic-gate extern	void	error();
567c478bd9Sstevel@tonic-gate extern	void	replace();
577c478bd9Sstevel@tonic-gate extern	void	reap();
587c478bd9Sstevel@tonic-gate extern	void	sendack();
597c478bd9Sstevel@tonic-gate extern	void	account();
607c478bd9Sstevel@tonic-gate extern	void	cleanutx();
617c478bd9Sstevel@tonic-gate extern	void	readutmpx();
6234e48580Sdp extern	void	quit() __NORETURN;
637c478bd9Sstevel@tonic-gate extern	void	usage();
647c478bd9Sstevel@tonic-gate 
657c478bd9Sstevel@tonic-gate extern	FILE	*open_temp();
667c478bd9Sstevel@tonic-gate 
677c478bd9Sstevel@tonic-gate extern	struct	sactab	*read_entry();
687c478bd9Sstevel@tonic-gate extern	struct	sactab	*findpm();
697c478bd9Sstevel@tonic-gate 
707c478bd9Sstevel@tonic-gate extern	char	*trim();
71*d67944fbSScott Rotondo extern	char	*pstate(uchar_t);
727c478bd9Sstevel@tonic-gate extern	char	*nexttok();
737c478bd9Sstevel@tonic-gate extern	char	**mkargv();
747c478bd9Sstevel@tonic-gate extern	char	*make_tempname();
757c478bd9Sstevel@tonic-gate extern	char	**dump_table();
767c478bd9Sstevel@tonic-gate 
777c478bd9Sstevel@tonic-gate extern	int	N_msgs;
787c478bd9Sstevel@tonic-gate extern	unsigned	Stime;
797c478bd9Sstevel@tonic-gate extern	int	Sfd;
807c478bd9Sstevel@tonic-gate extern	int	Cfd;
817c478bd9Sstevel@tonic-gate extern	int	Nentries;
827c478bd9Sstevel@tonic-gate extern	struct	sactab	*Sactab;
837c478bd9Sstevel@tonic-gate extern	struct	errmsg	Msgs[];
847c478bd9Sstevel@tonic-gate extern	char	Scratch[];
857c478bd9Sstevel@tonic-gate 
867c478bd9Sstevel@tonic-gate extern	char	Comment[];
877c478bd9Sstevel@tonic-gate extern	int	Saferrno;
887c478bd9Sstevel@tonic-gate 
897c478bd9Sstevel@tonic-gate extern	char	**environ;
9034e48580Sdp 
9134e48580Sdp #ifdef	__cplusplus
9234e48580Sdp }
9334e48580Sdp #endif
9434e48580Sdp 
9534e48580Sdp #endif	/* _EXTERN_H */
96