xref: /titanic_44/usr/src/cmd/truss/print.h (revision 104d3bde5b4ac46904f144d3676110fc57a69603)
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 /*
22  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
27 /*	  All Rights Reserved  	*/
28 
29 
30 #ifndef	_TRUSS_PRINT_H
31 #define	_TRUSS_PRINT_H
32 
33 #ifdef	__cplusplus
34 extern "C" {
35 #endif
36 
37 /*
38  * Argument & return value print codes.
39  */
40 #define	NOV	0		/* no value */
41 #define	DEC	1		/* print value in decimal */
42 #define	OCT	2		/* print value in octal */
43 #define	HEX	3		/* print value in hexadecimal */
44 #define	DEX	4		/* print value in hexadecimal if big enough */
45 #define	STG	5		/* print value as string */
46 #define	IOC	6		/* print ioctl code */
47 #define	FCN	7		/* print fcntl code */
48 #define	S86	8		/* print sysi86 code */
49 #define	UTS	9		/* print utssys code */
50 #define	OPN	10		/* print open code */
51 #define	SIG	11		/* print signal name plus flags */
52 #define	ACT	12		/* print signal action value */
53 #define	MSC	13		/* print msgsys command */
54 #define	MSF	14		/* print msgsys flags */
55 #define	SMC	15		/* print semsys command */
56 #define	SEF	16		/* print semsys flags */
57 #define	SHC	17		/* print shmsys command */
58 #define	SHF	18		/* print shmsys flags */
59 #define	PLK	19		/* print plock code */
60 #define	SFS	20		/* print sysfs code */
61 #define	RST	21		/* print string returned by sys call */
62 #define	SMF	22		/* print streams message flags */
63 #define	IOA	23		/* print ioctl argument */
64 #define	SIX	24		/* print signal, masked with SIGNO_MASK */
65 #define	MTF	25		/* print mount flags */
66 #define	MFT	26		/* print mount file system type */
67 #define	IOB	27		/* print contents of I/O buffer */
68 #define	HHX	28		/* print value in hexadecimal (half size) */
69 #define	WOP	29		/* print waitsys() options */
70 #define	SPM	30		/* print sigprocmask argument */
71 #define	RLK	31		/* print readlink buffer */
72 #define	MPR	32		/* print mmap()/mprotect() flags */
73 #define	MTY	33		/* print mmap() mapping type flags */
74 #define	MCF	34		/* print memcntl() function */
75 #define	MC4	35		/* print memcntl() (fourth) argument */
76 #define	MC5	36		/* print memcntl() (fifth) argument */
77 #define	MAD	37		/* print madvise() argument */
78 #define	ULM	38		/* print ulimit() argument */
79 #define	RLM	39		/* print get/setrlimit() argument */
80 #define	CNF	40		/* print sysconfig() argument */
81 #define	INF	41		/* print sysinfo() argument */
82 #define	PTC	42		/* print pathconf/fpathconf() argument */
83 #define	FUI	43		/* print fusers() input argument */
84 #define	IDT	44		/* print idtype_t, waitid() argument */
85 #define	LWF	45		/* print lwp_create() flags */
86 #define	ITM	46		/* print [get|set]itimer() arg */
87 #define	LLO	47		/* print long long offset */
88 #define	MOD	48		/* print modctl() code */
89 #define	WHN	49		/* print lseek() whence argument */
90 #define	ACL	50		/* print acl() code */
91 #define	AIO	51		/* print kaio() code */
92 #define	AUD	52		/* print auditsys() code */
93 #define	UNS	53		/* print value in unsigned decimal */
94 #define	CLC	54		/* print cladm() command argument */
95 #define	CLF	55		/* print cladm() flag argument */
96 #define	COR	56		/* print corectl() subcode */
97 #define	CCO	57		/* print corectl() options */
98 #define	CCC	58		/* print corectl() content */
99 #define	RCC	59		/* print corectl() content */
100 #define	CPC	60		/* print cpc() subcode */
101 #define	SQC	61		/* print sigqueue() si_code argument */
102 #define	PC4	62		/* print priocntlsys() (fourth) argument */
103 #define	PC5	63		/* print priocntlsys() (key-value) pairs */
104 #define	PST	64		/* print processor set id */
105 #define	MIF	65		/* print meminfo() argument */
106 #define	PFM	66		/* print so_socket() proto-family (1st) arg */
107 #define	SKT	67		/* print so_socket() socket type (2nd) arg */
108 #define	SKP	68		/* print so_socket() protocol (3rd) arg */
109 #define	SKV	69		/* print so_socket() version (5th) arg */
110 #define	SOL	70		/* print [sg]etsockopt() level (2nd) arg */
111 #define	SON	71		/* print [sg]etsockopt() name (3rd) arg */
112 #define	UTT	72		/* print utrap type */
113 #define	UTH	73		/* print utrap handler */
114 #define	ACC	74		/* print access flags */
115 #define	SHT	75		/* print shutdown() "how" (2nd) arg */
116 #define	FFG	76		/* print fcntl() flags (3rd) arg */
117 #define	PRS	77		/* privilege set */
118 #define	PRO	78		/* privilege set operation */
119 #define	PRN	79		/* privilege set name */
120 #define	PFL	80		/* privilege/process flag name */
121 #define	LAF	81		/* print lgrp_affinity arguments */
122 #define	KEY	82		/* print key_t 0 as IPC_PRIVATE */
123 #define	ZGA	83		/* print zone_getattr attribute types */
124 #define	ATC	84		/* print AT_FDCWD or file descriptor */
125 #define	LIO	85		/* print LIO_XX flags */
126 #define	DFL	86		/* print door_create() flags */
127 #define	DPM	87		/* print DOOR_PARAM_XX flags */
128 #define	TND	88		/* print trusted network data base opcode */
129 #define	RSC	89		/* print rctlsys subcode */
130 #define	RGF	90		/* print rctlsys_get flags */
131 #define	RSF	91		/* print rctlsys_set flags */
132 #define	RCF	92		/* print rctlsys_ctl flags */
133 #define	FXF	93		/* print forkx flags */
134 #define	SPF	94		/* print rctlsys_projset flags */
135 #define	UN1	95		/* unsigned except for -1 */
136 #define	MOB	96		/* print mmapobj() flags */
137 #define	UTF	97		/* print utimensat() flag */
138 #define	HID	98		/* hidden argument, don't print */
139 				/* make sure HID is always the last member */
140 
141 /*
142  * Print routines, indexed by print codes.
143  */
144 extern void (* const Print[])();
145 
146 #ifdef	__cplusplus
147 }
148 #endif
149 
150 #endif	/* _TRUSS_PRINT_H */
151