xref: /titanic_44/usr/src/cmd/truss/print.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate  *
4*7c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate  * with the License.
8*7c478bd9Sstevel@tonic-gate  *
9*7c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate  * and limitations under the License.
13*7c478bd9Sstevel@tonic-gate  *
14*7c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate  *
20*7c478bd9Sstevel@tonic-gate  * CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate  */
22*7c478bd9Sstevel@tonic-gate /*
23*7c478bd9Sstevel@tonic-gate  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24*7c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
25*7c478bd9Sstevel@tonic-gate  */
26*7c478bd9Sstevel@tonic-gate 
27*7c478bd9Sstevel@tonic-gate /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
28*7c478bd9Sstevel@tonic-gate /*	  All Rights Reserved  	*/
29*7c478bd9Sstevel@tonic-gate 
30*7c478bd9Sstevel@tonic-gate 
31*7c478bd9Sstevel@tonic-gate #ifndef	_TRUSS_PRINT_H
32*7c478bd9Sstevel@tonic-gate #define	_TRUSS_PRINT_H
33*7c478bd9Sstevel@tonic-gate 
34*7c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.6   */
35*7c478bd9Sstevel@tonic-gate 
36*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
37*7c478bd9Sstevel@tonic-gate extern "C" {
38*7c478bd9Sstevel@tonic-gate #endif
39*7c478bd9Sstevel@tonic-gate 
40*7c478bd9Sstevel@tonic-gate /*
41*7c478bd9Sstevel@tonic-gate  * Argument & return value print codes.
42*7c478bd9Sstevel@tonic-gate  */
43*7c478bd9Sstevel@tonic-gate #define	NOV	0		/* no value */
44*7c478bd9Sstevel@tonic-gate #define	DEC	1		/* print value in decimal */
45*7c478bd9Sstevel@tonic-gate #define	OCT	2		/* print value in octal */
46*7c478bd9Sstevel@tonic-gate #define	HEX	3		/* print value in hexadecimal */
47*7c478bd9Sstevel@tonic-gate #define	DEX	4		/* print value in hexadecimal if big enough */
48*7c478bd9Sstevel@tonic-gate #define	STG	5		/* print value as string */
49*7c478bd9Sstevel@tonic-gate #define	IOC	6		/* print ioctl code */
50*7c478bd9Sstevel@tonic-gate #define	FCN	7		/* print fcntl code */
51*7c478bd9Sstevel@tonic-gate #define	S86	8		/* print sysi86 code */
52*7c478bd9Sstevel@tonic-gate #define	UTS	9		/* print utssys code */
53*7c478bd9Sstevel@tonic-gate #define	OPN	10		/* print open code */
54*7c478bd9Sstevel@tonic-gate #define	SIG	11		/* print signal name plus flags */
55*7c478bd9Sstevel@tonic-gate #define	ACT	12		/* print signal action value */
56*7c478bd9Sstevel@tonic-gate #define	MSC	13		/* print msgsys command */
57*7c478bd9Sstevel@tonic-gate #define	MSF	14		/* print msgsys flags */
58*7c478bd9Sstevel@tonic-gate #define	SMC	15		/* print semsys command */
59*7c478bd9Sstevel@tonic-gate #define	SEF	16		/* print semsys flags */
60*7c478bd9Sstevel@tonic-gate #define	SHC	17		/* print shmsys command */
61*7c478bd9Sstevel@tonic-gate #define	SHF	18		/* print shmsys flags */
62*7c478bd9Sstevel@tonic-gate #define	PLK	19		/* print plock code */
63*7c478bd9Sstevel@tonic-gate #define	SFS	20		/* print sysfs code */
64*7c478bd9Sstevel@tonic-gate #define	RST	21		/* print string returned by sys call */
65*7c478bd9Sstevel@tonic-gate #define	SMF	22		/* print streams message flags */
66*7c478bd9Sstevel@tonic-gate #define	IOA	23		/* print ioctl argument */
67*7c478bd9Sstevel@tonic-gate #define	SIX	24		/* print signal, masked with SIGNO_MASK */
68*7c478bd9Sstevel@tonic-gate #define	MTF	25		/* print mount flags */
69*7c478bd9Sstevel@tonic-gate #define	MFT	26		/* print mount file system type */
70*7c478bd9Sstevel@tonic-gate #define	IOB	27		/* print contents of I/O buffer */
71*7c478bd9Sstevel@tonic-gate #define	HHX	28		/* print value in hexadecimal (half size) */
72*7c478bd9Sstevel@tonic-gate #define	WOP	29		/* print waitsys() options */
73*7c478bd9Sstevel@tonic-gate #define	SPM	30		/* print sigprocmask argument */
74*7c478bd9Sstevel@tonic-gate #define	RLK	31		/* print readlink buffer */
75*7c478bd9Sstevel@tonic-gate #define	MPR	32		/* print mmap()/mprotect() flags */
76*7c478bd9Sstevel@tonic-gate #define	MTY	33		/* print mmap() mapping type flags */
77*7c478bd9Sstevel@tonic-gate #define	MCF	34		/* print memcntl() function */
78*7c478bd9Sstevel@tonic-gate #define	MC4	35		/* print memcntl() (fourth) argument */
79*7c478bd9Sstevel@tonic-gate #define	MC5	36		/* print memcntl() (fifth) argument */
80*7c478bd9Sstevel@tonic-gate #define	MAD	37		/* print madvise() argument */
81*7c478bd9Sstevel@tonic-gate #define	ULM	38		/* print ulimit() argument */
82*7c478bd9Sstevel@tonic-gate #define	RLM	39		/* print get/setrlimit() argument */
83*7c478bd9Sstevel@tonic-gate #define	CNF	40		/* print sysconfig() argument */
84*7c478bd9Sstevel@tonic-gate #define	INF	41		/* print sysinfo() argument */
85*7c478bd9Sstevel@tonic-gate #define	PTC	42		/* print pathconf/fpathconf() argument */
86*7c478bd9Sstevel@tonic-gate #define	FUI	43		/* print fusers() input argument */
87*7c478bd9Sstevel@tonic-gate #define	IDT	44		/* print idtype_t, waitid() argument */
88*7c478bd9Sstevel@tonic-gate #define	LWF	45		/* print lwp_create() flags */
89*7c478bd9Sstevel@tonic-gate #define	ITM	46		/* print [get|set]itimer() arg */
90*7c478bd9Sstevel@tonic-gate #define	LLO	47		/* print long long offset */
91*7c478bd9Sstevel@tonic-gate #define	MOD	48		/* print modctl() code */
92*7c478bd9Sstevel@tonic-gate #define	WHN	49		/* print lseek() whence argument */
93*7c478bd9Sstevel@tonic-gate #define	ACL	50		/* print acl() code */
94*7c478bd9Sstevel@tonic-gate #define	AIO	51		/* print kaio() code */
95*7c478bd9Sstevel@tonic-gate #define	AUD	52		/* print auditsys() code */
96*7c478bd9Sstevel@tonic-gate #define	UNS	53		/* print value in unsigned decimal */
97*7c478bd9Sstevel@tonic-gate #define	CLC	54		/* print cladm() command argument */
98*7c478bd9Sstevel@tonic-gate #define	CLF	55		/* print cladm() flag argument */
99*7c478bd9Sstevel@tonic-gate #define	COR	56		/* print corectl() subcode */
100*7c478bd9Sstevel@tonic-gate #define	CCO	57		/* print corectl() options */
101*7c478bd9Sstevel@tonic-gate #define	CCC	58		/* print corectl() content */
102*7c478bd9Sstevel@tonic-gate #define	RCC	59		/* print corectl() content */
103*7c478bd9Sstevel@tonic-gate #define	CPC	60		/* print cpc() subcode */
104*7c478bd9Sstevel@tonic-gate #define	SQC	61		/* print sigqueue() si_code argument */
105*7c478bd9Sstevel@tonic-gate #define	PC4	62		/* print priocntlsys() (fourth) argument */
106*7c478bd9Sstevel@tonic-gate #define	PC5	63		/* print priocntlsys() (key-value) pairs */
107*7c478bd9Sstevel@tonic-gate #define	PST	64		/* print processor set id */
108*7c478bd9Sstevel@tonic-gate #define	MIF	65		/* print meminfo() argument */
109*7c478bd9Sstevel@tonic-gate #define	PFM	66		/* print so_socket() proto-family (1st) arg */
110*7c478bd9Sstevel@tonic-gate #define	SKT	67		/* print so_socket() socket type (2nd) arg */
111*7c478bd9Sstevel@tonic-gate #define	SKP	68		/* print so_socket() protocol (3rd) arg */
112*7c478bd9Sstevel@tonic-gate #define	SKV	69		/* print so_socket() version (5th) arg */
113*7c478bd9Sstevel@tonic-gate #define	SOL	70		/* print [sg]etsockopt() level (2nd) arg */
114*7c478bd9Sstevel@tonic-gate #define	SON	71		/* print [sg]etsockopt() name (3rd) arg */
115*7c478bd9Sstevel@tonic-gate #define	UTT	72		/* print utrap type */
116*7c478bd9Sstevel@tonic-gate #define	UTH	73		/* print utrap handler */
117*7c478bd9Sstevel@tonic-gate #define	ACC	74		/* print access flags */
118*7c478bd9Sstevel@tonic-gate #define	SHT	75		/* print shutdown() "how" (2nd) arg */
119*7c478bd9Sstevel@tonic-gate #define	FFG	76		/* print fcntl() flags (3rd) arg */
120*7c478bd9Sstevel@tonic-gate #define	PRS	77		/* privilege set */
121*7c478bd9Sstevel@tonic-gate #define	PRO	78		/* privilege set operation */
122*7c478bd9Sstevel@tonic-gate #define	PRN	79		/* privilege set name */
123*7c478bd9Sstevel@tonic-gate #define	PFL	80		/* privilege/process flag name */
124*7c478bd9Sstevel@tonic-gate #define	LAF	81		/* print lgrp_affinity arguments */
125*7c478bd9Sstevel@tonic-gate #define	KEY	82		/* print key_t 0 as IPC_PRIVATE */
126*7c478bd9Sstevel@tonic-gate #define	ZGA	83		/* print zone_getattr attribute types */
127*7c478bd9Sstevel@tonic-gate #define	ATC	84		/* print AT_FDCWD or file descriptor */
128*7c478bd9Sstevel@tonic-gate #define	LIO	85		/* print LIO_XX flags */
129*7c478bd9Sstevel@tonic-gate #define	DFL	86		/* print door_create() flags */
130*7c478bd9Sstevel@tonic-gate #define	DPM	87		/* print DOOR_PARAM_XX flags */
131*7c478bd9Sstevel@tonic-gate #define	HID	88		/* hidden argument, don't print */
132*7c478bd9Sstevel@tonic-gate 				/* make sure HID is always the last member */
133*7c478bd9Sstevel@tonic-gate 
134*7c478bd9Sstevel@tonic-gate /*
135*7c478bd9Sstevel@tonic-gate  * Print routines, indexed by print codes.
136*7c478bd9Sstevel@tonic-gate  */
137*7c478bd9Sstevel@tonic-gate extern void (* const Print[])();
138*7c478bd9Sstevel@tonic-gate 
139*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
140*7c478bd9Sstevel@tonic-gate }
141*7c478bd9Sstevel@tonic-gate #endif
142*7c478bd9Sstevel@tonic-gate 
143*7c478bd9Sstevel@tonic-gate #endif	/* _TRUSS_PRINT_H */
144