xref: /illumos-gate/usr/src/cmd/truss/print.h (revision 2b395c3c)
17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate  * CDDL HEADER START
37c478bd9Sstevel@tonic-gate  *
47c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
545916cd2Sjpk  * Common Development and Distribution License (the "License").
645916cd2Sjpk  * You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate  *
87c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate  * and limitations under the License.
127c478bd9Sstevel@tonic-gate  *
137c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate  *
197c478bd9Sstevel@tonic-gate  * CDDL HEADER END
207c478bd9Sstevel@tonic-gate  */
21794f0adbSRoger A. Faulkner 
227c478bd9Sstevel@tonic-gate /*
233e95bd4aSAnders Persson  * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
249d12795fSRobert Mustacchi  * Copyright (c) 2015, Joyent, Inc.
257c478bd9Sstevel@tonic-gate  */
267c478bd9Sstevel@tonic-gate 
277c478bd9Sstevel@tonic-gate /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
28*2b395c3cSAndy Fiddaman /*	  All Rights Reserved	*/
297c478bd9Sstevel@tonic-gate 
305dbfd19aSTheo Schlossnagle /* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All right reserved. */
317c478bd9Sstevel@tonic-gate 
327c478bd9Sstevel@tonic-gate #ifndef	_TRUSS_PRINT_H
337c478bd9Sstevel@tonic-gate #define	_TRUSS_PRINT_H
347c478bd9Sstevel@tonic-gate 
357c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
367c478bd9Sstevel@tonic-gate extern "C" {
377c478bd9Sstevel@tonic-gate #endif
387c478bd9Sstevel@tonic-gate 
397c478bd9Sstevel@tonic-gate /*
407c478bd9Sstevel@tonic-gate  * Argument & return value print codes.
417c478bd9Sstevel@tonic-gate  */
427c478bd9Sstevel@tonic-gate #define	NOV	0		/* no value */
437c478bd9Sstevel@tonic-gate #define	DEC	1		/* print value in decimal */
447c478bd9Sstevel@tonic-gate #define	OCT	2		/* print value in octal */
457c478bd9Sstevel@tonic-gate #define	HEX	3		/* print value in hexadecimal */
467c478bd9Sstevel@tonic-gate #define	DEX	4		/* print value in hexadecimal if big enough */
477c478bd9Sstevel@tonic-gate #define	STG	5		/* print value as string */
487c478bd9Sstevel@tonic-gate #define	IOC	6		/* print ioctl code */
497c478bd9Sstevel@tonic-gate #define	FCN	7		/* print fcntl code */
507c478bd9Sstevel@tonic-gate #define	S86	8		/* print sysi86 code */
517c478bd9Sstevel@tonic-gate #define	UTS	9		/* print utssys code */
527c478bd9Sstevel@tonic-gate #define	OPN	10		/* print open code */
537c478bd9Sstevel@tonic-gate #define	SIG	11		/* print signal name plus flags */
54794f0adbSRoger A. Faulkner #define	UAT	12		/* print unlinkat() flag */
557c478bd9Sstevel@tonic-gate #define	MSC	13		/* print msgsys command */
567c478bd9Sstevel@tonic-gate #define	MSF	14		/* print msgsys flags */
577c478bd9Sstevel@tonic-gate #define	SMC	15		/* print semsys command */
587c478bd9Sstevel@tonic-gate #define	SEF	16		/* print semsys flags */
597c478bd9Sstevel@tonic-gate #define	SHC	17		/* print shmsys command */
607c478bd9Sstevel@tonic-gate #define	SHF	18		/* print shmsys flags */
61794f0adbSRoger A. Faulkner #define	FAT	19		/* print faccessat() flag */
627c478bd9Sstevel@tonic-gate #define	SFS	20		/* print sysfs code */
637c478bd9Sstevel@tonic-gate #define	RST	21		/* print string returned by sys call */
647c478bd9Sstevel@tonic-gate #define	SMF	22		/* print streams message flags */
657c478bd9Sstevel@tonic-gate #define	IOA	23		/* print ioctl argument */
665dbfd19aSTheo Schlossnagle #define	PIP	24		/* print pipe flags */
677c478bd9Sstevel@tonic-gate #define	MTF	25		/* print mount flags */
687c478bd9Sstevel@tonic-gate #define	MFT	26		/* print mount file system type */
697c478bd9Sstevel@tonic-gate #define	IOB	27		/* print contents of I/O buffer */
707c478bd9Sstevel@tonic-gate #define	HHX	28		/* print value in hexadecimal (half size) */
717c478bd9Sstevel@tonic-gate #define	WOP	29		/* print waitsys() options */
727c478bd9Sstevel@tonic-gate #define	SPM	30		/* print sigprocmask argument */
737c478bd9Sstevel@tonic-gate #define	RLK	31		/* print readlink buffer */
747c478bd9Sstevel@tonic-gate #define	MPR	32		/* print mmap()/mprotect() flags */
757c478bd9Sstevel@tonic-gate #define	MTY	33		/* print mmap() mapping type flags */
767c478bd9Sstevel@tonic-gate #define	MCF	34		/* print memcntl() function */
777c478bd9Sstevel@tonic-gate #define	MC4	35		/* print memcntl() (fourth) argument */
787c478bd9Sstevel@tonic-gate #define	MC5	36		/* print memcntl() (fifth) argument */
797c478bd9Sstevel@tonic-gate #define	MAD	37		/* print madvise() argument */
807c478bd9Sstevel@tonic-gate #define	ULM	38		/* print ulimit() argument */
817c478bd9Sstevel@tonic-gate #define	RLM	39		/* print get/setrlimit() argument */
827c478bd9Sstevel@tonic-gate #define	CNF	40		/* print sysconfig() argument */
837c478bd9Sstevel@tonic-gate #define	INF	41		/* print sysinfo() argument */
847c478bd9Sstevel@tonic-gate #define	PTC	42		/* print pathconf/fpathconf() argument */
857c478bd9Sstevel@tonic-gate #define	FUI	43		/* print fusers() input argument */
867c478bd9Sstevel@tonic-gate #define	IDT	44		/* print idtype_t, waitid() argument */
877c478bd9Sstevel@tonic-gate #define	LWF	45		/* print lwp_create() flags */
887c478bd9Sstevel@tonic-gate #define	ITM	46		/* print [get|set]itimer() arg */
897c478bd9Sstevel@tonic-gate #define	LLO	47		/* print long long offset */
907c478bd9Sstevel@tonic-gate #define	MOD	48		/* print modctl() code */
917c478bd9Sstevel@tonic-gate #define	WHN	49		/* print lseek() whence argument */
927c478bd9Sstevel@tonic-gate #define	ACL	50		/* print acl() code */
937c478bd9Sstevel@tonic-gate #define	AIO	51		/* print kaio() code */
947c478bd9Sstevel@tonic-gate #define	AUD	52		/* print auditsys() code */
957c478bd9Sstevel@tonic-gate #define	UNS	53		/* print value in unsigned decimal */
967c478bd9Sstevel@tonic-gate #define	CLC	54		/* print cladm() command argument */
977c478bd9Sstevel@tonic-gate #define	CLF	55		/* print cladm() flag argument */
987c478bd9Sstevel@tonic-gate #define	COR	56		/* print corectl() subcode */
997c478bd9Sstevel@tonic-gate #define	CCO	57		/* print corectl() options */
1007c478bd9Sstevel@tonic-gate #define	CCC	58		/* print corectl() content */
1017c478bd9Sstevel@tonic-gate #define	RCC	59		/* print corectl() content */
1027c478bd9Sstevel@tonic-gate #define	CPC	60		/* print cpc() subcode */
1037c478bd9Sstevel@tonic-gate #define	SQC	61		/* print sigqueue() si_code argument */
1047c478bd9Sstevel@tonic-gate #define	PC4	62		/* print priocntlsys() (fourth) argument */
1057c478bd9Sstevel@tonic-gate #define	PC5	63		/* print priocntlsys() (key-value) pairs */
1067c478bd9Sstevel@tonic-gate #define	PST	64		/* print processor set id */
1077c478bd9Sstevel@tonic-gate #define	MIF	65		/* print meminfo() argument */
1087c478bd9Sstevel@tonic-gate #define	PFM	66		/* print so_socket() proto-family (1st) arg */
1097c478bd9Sstevel@tonic-gate #define	SKT	67		/* print so_socket() socket type (2nd) arg */
1107c478bd9Sstevel@tonic-gate #define	SKP	68		/* print so_socket() protocol (3rd) arg */
1117c478bd9Sstevel@tonic-gate #define	SKV	69		/* print so_socket() version (5th) arg */
1127c478bd9Sstevel@tonic-gate #define	SOL	70		/* print [sg]etsockopt() level (2nd) arg */
1137c478bd9Sstevel@tonic-gate #define	SON	71		/* print [sg]etsockopt() name (3rd) arg */
1147c478bd9Sstevel@tonic-gate #define	UTT	72		/* print utrap type */
1157c478bd9Sstevel@tonic-gate #define	UTH	73		/* print utrap handler */
1167c478bd9Sstevel@tonic-gate #define	ACC	74		/* print access flags */
1177c478bd9Sstevel@tonic-gate #define	SHT	75		/* print shutdown() "how" (2nd) arg */
1187c478bd9Sstevel@tonic-gate #define	FFG	76		/* print fcntl() flags (3rd) arg */
1197c478bd9Sstevel@tonic-gate #define	PRS	77		/* privilege set */
1207c478bd9Sstevel@tonic-gate #define	PRO	78		/* privilege set operation */
1217c478bd9Sstevel@tonic-gate #define	PRN	79		/* privilege set name */
1227c478bd9Sstevel@tonic-gate #define	PFL	80		/* privilege/process flag name */
1237c478bd9Sstevel@tonic-gate #define	LAF	81		/* print lgrp_affinity arguments */
1247c478bd9Sstevel@tonic-gate #define	KEY	82		/* print key_t 0 as IPC_PRIVATE */
1257c478bd9Sstevel@tonic-gate #define	ZGA	83		/* print zone_getattr attribute types */
1267c478bd9Sstevel@tonic-gate #define	ATC	84		/* print AT_FDCWD or file descriptor */
1277c478bd9Sstevel@tonic-gate #define	LIO	85		/* print LIO_XX flags */
1287c478bd9Sstevel@tonic-gate #define	DFL	86		/* print door_create() flags */
1297c478bd9Sstevel@tonic-gate #define	DPM	87		/* print DOOR_PARAM_XX flags */
13045916cd2Sjpk #define	TND	88		/* print trusted network data base opcode */
131aa4a4f3bSnf #define	RSC	89		/* print rctlsys subcode */
132aa4a4f3bSnf #define	RGF	90		/* print rctlsys_get flags */
133aa4a4f3bSnf #define	RSF	91		/* print rctlsys_set flags */
134aa4a4f3bSnf #define	RCF	92		/* print rctlsys_ctl flags */
135657b1f3dSraf #define	FXF	93		/* print forkx flags */
136532877c4Srd #define	SPF	94		/* print rctlsys_projset flags */
137f48205beScasper #define	UN1	95		/* unsigned except for -1 */
138bcddb677SAli Bahrami #define	MOB	96		/* print mmapobj() flags */
139794f0adbSRoger A. Faulkner #define	SNF	97		/* print AT_SYMLINK_[NO]FOLLOW flag */
1403e95bd4aSAnders Persson #define	SKC	98		/* print sockconfig subcode */
1415dbfd19aSTheo Schlossnagle #define	ACF	99		/* accept4 flags */
1425dbfd19aSTheo Schlossnagle #define	PFD	100		/* pipe fds[2] */
1439d12795fSRobert Mustacchi #define	GRF	101		/* getrandom flags */
144d2a70789SRichard Lowe #define	PSDLT	102		/* secflagsdelta_t */
145d2a70789SRichard Lowe #define	PSFW	103		/* psecflagswhich_t */
146*2b395c3cSAndy Fiddaman #define	EXC	104		/* execx flags */
147*2b395c3cSAndy Fiddaman #define	HID	105		/* hidden argument, don't print */
1487c478bd9Sstevel@tonic-gate 				/* make sure HID is always the last member */
1497c478bd9Sstevel@tonic-gate 
1507c478bd9Sstevel@tonic-gate /*
1517c478bd9Sstevel@tonic-gate  * Print routines, indexed by print codes.
1527c478bd9Sstevel@tonic-gate  */
1537c478bd9Sstevel@tonic-gate extern void (* const Print[])();
1547c478bd9Sstevel@tonic-gate 
1557c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
1567c478bd9Sstevel@tonic-gate }
1577c478bd9Sstevel@tonic-gate #endif
1587c478bd9Sstevel@tonic-gate 
1597c478bd9Sstevel@tonic-gate #endif	/* _TRUSS_PRINT_H */
160