xref: /illumos-gate/usr/src/cmd/saf/extern.h (revision 657a8c206b913d1ee578fd725f0b25eca5b77253)
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
35 extern "C" {
36 #endif
37 
38 extern	void	log();
39 extern	void	initialize();
40 extern	void	openlog();
41 extern	void	opendebug();
42 extern	void	debug();
43 extern	void	insert();
44 extern	void	startpms();
45 extern	void	startit();
46 extern	void	pollpms();
47 extern	void	pollfail();
48 extern	void	startpoll();
49 extern	void	sigpoll();
50 extern	void	sendpmmsg();
51 extern	void	purge();
52 extern	void	parse();
53 extern	void	read_table();
54 extern	void	readpipe();
55 extern	void	error();
56 extern	void	replace();
57 extern	void	reap();
58 extern	void	sendack();
59 extern	void	account();
60 extern	void	cleanutx();
61 extern	void	readutmpx();
62 extern	void	quit() __NORETURN;
63 extern	void	usage();
64 
65 extern	FILE	*open_temp();
66 
67 extern	struct	sactab	*read_entry();
68 extern	struct	sactab	*findpm();
69 
70 extern	char	*trim();
71 extern	char	*pstate(uchar_t);
72 extern	char	*nexttok();
73 extern	char	**mkargv();
74 extern	char	*make_tempname();
75 extern	char	**dump_table();
76 
77 extern	int	N_msgs;
78 extern	unsigned	Stime;
79 extern	int	Sfd;
80 extern	int	Cfd;
81 extern	int	Nentries;
82 extern	struct	sactab	*Sactab;
83 extern	struct	errmsg	Msgs[];
84 extern	char	Scratch[];
85 
86 extern	char	Comment[];
87 extern	int	Saferrno;
88 
89 extern	char	**environ;
90 
91 #ifdef	__cplusplus
92 }
93 #endif
94 
95 #endif	/* _EXTERN_H */
96