xref: /netbsd-src/external/cddl/osnet/lib/libdtrace/unistd.d (revision ba2539a9805a0544ff82c0003cc02fe1eee5603d)
1 /*	$NetBSD: unistd.d,v 1.3 2018/05/28 21:05:09 chs Exp $	*/
2 
3 /*
4  * CDDL HEADER START
5  *
6  * The contents of this file are subject to the terms of the
7  * Common Development and Distribution License (the "License").
8  * You may not use this file except in compliance with the License.
9  *
10  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11  * or http://www.opensolaris.org/os/licensing.
12  * See the License for the specific language governing permissions
13  * and limitations under the License.
14  *
15  * When distributing Covered Code, include this CDDL HEADER in each
16  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17  * If applicable, add the following below this CDDL HEADER, with the
18  * fields enclosed by brackets "[]" replaced with your own identifying
19  * information: Portions Copyright [yyyy] [name of copyright owner]
20  *
21  * CDDL HEADER END
22  *
23  * $FreeBSD: head/cddl/lib/libdtrace/unistd.d 179189 2008-05-22 04:26:42Z jb $
24  */
25 /*
26  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
27  * Use is subject to license terms.
28  */
29 
30 inline int DTRACEFLT_UNKNOWN = 0;	/* Unknown fault */
31 #pragma D binding "1.0" DTRACEFLT_UNKNOWN
32 
33 inline int DTRACEFLT_BADADDR = 1;	/* Bad address */
34 #pragma D binding "1.0" DTRACEFLT_BADADDR
35 
36 inline int DTRACEFLT_BADALIGN = 2;	/* Bad alignment */
37 #pragma D binding "1.0" DTRACEFLT_BADALIGN
38 
39 inline int DTRACEFLT_ILLOP = 3;		/* Illegal operation */
40 #pragma D binding "1.0" DTRACEFLT_ILLOP
41 
42 inline int DTRACEFLT_DIVZERO = 4;	/* Divide-by-zero */
43 #pragma D binding "1.0" DTRACEFLT_DIVZERO
44 
45 inline int DTRACEFLT_NOSCRATCH = 5;	/* Out of scratch space */
46 #pragma D binding "1.0" DTRACEFLT_NOSCRATCH
47 
48 inline int DTRACEFLT_KPRIV = 6;		/* Illegal kernel access */
49 #pragma D binding "1.0" DTRACEFLT_KPRIV
50 
51 inline int DTRACEFLT_UPRIV = 7;		/* Illegal user access */
52 #pragma D binding "1.0" DTRACEFLT_UPRIV
53 
54 inline int DTRACEFLT_TUPOFLOW = 8;	/* Tuple stack overflow */
55 #pragma D binding "1.0" DTRACEFLT_TUPOFLOW
56 
57 inline int DTRACEFLT_BADSTACK = 9;	/* Bad stack */
58 #pragma D binding "1.4.1" DTRACEFLT_BADSTACK
59