xref: /titanic_44/usr/src/head/apptrace_impl.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 /*
23  * Copyright 1998-2003 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_APPTRACE_IMPL_H
28 #define	_APPTRACE_IMPL_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #ifdef	__cplusplus
33 extern "C" {
34 #endif
35 
36 typedef struct abisym {
37 	void	*a_real;
38 	int	a_vflag;
39 	int	a_tflag;
40 } abisym_t;
41 
42 /*
43  * From the apptrace auditing object
44  */
45 extern FILE *__abi_outfile;
46 extern struct liblist *__abi_pflib_list;
47 
48 extern sigset_t abisigset;
49 
50 #ifdef	__STDC__
51 
52 extern void abilock(sigset_t *);
53 extern void abiunlock(sigset_t *);
54 
55 extern size_t	strnlen(char const *, size_t);
56 extern int	is_empty_string(char const *);
57 
58 extern int (*abi_thr_main)(void);
59 extern thread_t (*abi_thr_self)(void);
60 extern int (*abi_sigsetmask)(int, const sigset_t *, sigset_t *);
61 extern int (*abi_sigaction)(int, const struct sigaction *, struct sigaction *);
62 extern int (*abi_mutex_lock)(mutex_t *);
63 extern int (*abi_mutex_unlock)(mutex_t *);
64 
65 #else	/* __STDC__ */
66 
67 extern void abilock();
68 extern void abiunlock();
69 extern size_t	strnlen();
70 extern int	is_empty_string();
71 extern int (*abi_thr_main)();
72 extern thread_t (*abi_thr_self)();
73 extern int (*abi_sigsetmask)();
74 extern int (*abi_sigaction)();
75 extern int (*abi_mutex_lock)();
76 extern int (*abi_mutex_unlock)();
77 
78 #endif	/* __STDC__ */
79 
80 #ifdef	__cplusplus
81 }
82 #endif
83 
84 #endif	/* _APPTRACE_IMPL_H */
85