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