xref: /titanic_52/usr/src/cmd/saf/extern.h (revision 1a7c1b724419d3cb5fa6eea75123c6b2060ba31b)
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, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23 /*	  All Rights Reserved  	*/
24 
25 /*
26  * Copyright (c) 1998 by Sun Microsystems, Inc.
27  * All rights reserved.
28  */
29 
30 #ident	"%Z%%M%	%I%	%E% SMI"       /* SVr4.0 1.5*/
31 
32 
33 extern	void	log();
34 extern	void	initialize();
35 extern	void	openlog();
36 extern	void	opendebug();
37 extern	void	debug();
38 extern	void	insert();
39 extern	void	startpms();
40 extern	void	startit();
41 extern	void	pollpms();
42 extern	void	pollfail();
43 extern	void	startpoll();
44 extern	void	sigpoll();
45 extern	void	sendpmmsg();
46 extern	void	purge();
47 extern	void	parse();
48 extern	void	read_table();
49 extern	void	readpipe();
50 extern	void	error();
51 extern	void	replace();
52 extern	void	reap();
53 extern	void	sendack();
54 extern	void	account();
55 extern	void	cleanutx();
56 extern	void	readutmpx();
57 extern	void	quit();
58 extern	void	usage();
59 
60 extern	FILE	*open_temp();
61 
62 extern	struct	sactab	*read_entry();
63 extern	struct	sactab	*findpm();
64 
65 extern	char	*trim();
66 extern	char	*pstate();
67 extern	char	*nexttok();
68 extern	char	**mkargv();
69 extern	char	*make_tempname();
70 extern	char	**dump_table();
71 
72 extern	time_t	time();
73 extern	long	atol();
74 extern	char	*ctime();
75 extern	char	*strchr();
76 extern	char	*strrchr();
77 extern	char	*strcat();
78 extern	char	*strpbrk();
79 extern	char	*strtok();
80 extern	char	*strcpy();
81 extern	char	*fgets();
82 extern	char	*malloc();
83 extern	char	*calloc();
84 extern	char	*mktemp();
85 extern	void	free();
86 extern	void	setutent();
87 extern	void	endutent();
88 extern	struct	utmp	*getutid();
89 extern	struct	utmp	*getutent();
90 
91 extern	int	N_msgs;
92 extern	unsigned	Stime;
93 extern	int	Sfd;
94 extern	int	Cfd;
95 extern	int	Nentries;
96 extern	struct	sactab	*Sactab;
97 extern	struct	errmsg	Msgs[];
98 extern	char	Scratch[];
99 
100 extern	char	Comment[];
101 extern	int	Saferrno;
102 
103 extern	char	**environ;
104 extern	int	errno;
105 extern	char	*optarg;
106 extern	int	optind;
107 extern	int	opterr;
108