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.
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.
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]
23 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
24 * Copyright (c) 2015, Joyent, Inc.
27 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
28 /* All Rights Reserved */
30 /* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All right reserved. */
32 #ifndef _TRUSS_PRINT_H
33 #define _TRUSS_PRINT_H
40 * Argument & return value print codes.
43 NOV
= 0, /* no value */
44 DEC
, /* print value in decimal */
45 OCT
, /* print value in octal */
46 HEX
, /* print value in hexadecimal */
47 DEX
, /* print value in hexadecimal if big enough */
48 STG
, /* print value as string */
49 IOC
, /* print ioctl code */
50 FCN
, /* print fcntl code */
51 S86
, /* print sysi86 code */
52 UTS
, /* print utssys code */
53 OPN
, /* print open code */
54 SIG
, /* print signal name plus flags */
55 UAT
, /* print unlinkat() flag */
56 MSC
, /* print msgsys command */
57 MSF
, /* print msgsys flags */
58 SMC
, /* print semsys command */
59 SEF
, /* print semsys flags */
60 SHC
, /* print shmsys command */
61 SHF
, /* print shmsys flags */
62 FAT
, /* print faccessat() flag */
63 SFS
, /* print sysfs code */
64 RST
, /* print string returned by sys call */
65 SMF
, /* print streams message flags */
66 IOA
, /* print ioctl argument */
67 PIP
, /* print pipe flags */
68 MTF
, /* print mount flags */
69 MFT
, /* print mount file system type */
70 IOB
, /* print contents of I/O buffer */
71 HHX
, /* print value in hexadecimal (half size) */
72 WOP
, /* print waitsys() options */
73 SPM
, /* print sigprocmask argument */
74 RLK
, /* print readlink buffer */
75 MPR
, /* print mmap()/mprotect() flags */
76 MTY
, /* print mmap() mapping type flags */
77 MCF
, /* print memcntl() function */
78 MC4
, /* print memcntl() (fourth) argument */
79 MC5
, /* print memcntl() (fifth) argument */
80 MAD
, /* print madvise() argument */
81 ULM
, /* print ulimit() argument */
82 RLM
, /* print get/setrlimit() argument */
83 CNF
, /* print sysconfig() argument */
84 INF
, /* print sysinfo() argument */
85 PTC
, /* print pathconf/fpathconf() argument */
86 FUI
, /* print fusers() input argument */
87 IDT
, /* print idtype_t, waitid() argument */
88 LWF
, /* print lwp_create() flags */
89 ITM
, /* print [get|set]itimer() arg */
90 LLO
, /* print long long offset */
91 MOD
, /* print modctl() code */
92 WHN
, /* print lseek() whence argument */
93 ACL
, /* print acl() code */
94 AIO
, /* print kaio() code */
95 UNS
, /* print value in unsigned decimal */
96 COR
, /* print corectl() subcode */
97 CCO
, /* print corectl() options */
98 CCC
, /* print corectl() content */
99 RCC
, /* print corectl() content */
100 CPC
, /* print cpc() subcode */
101 SQC
, /* print sigqueue() si_code argument */
102 PC4
, /* print priocntlsys() (fourth) argument */
103 PC5
, /* print priocntlsys() (key-value) pairs */
104 PST
, /* print processor set id */
105 MIF
, /* print meminfo() argument */
106 PFM
, /* print so_socket() proto-family (1st) arg */
107 SKT
, /* print so_socket() socket type (2nd) arg */
108 SKP
, /* print so_socket() protocol (3rd) arg */
109 SKV
, /* print so_socket() version (5th) arg */
110 SOL
, /* print [sg]etsockopt() level (2nd) arg */
111 SON
, /* print [sg]etsockopt() name (3rd) arg */
112 UTT
, /* print utrap type */
113 UTH
, /* print utrap handler */
114 ACC
, /* print access flags */
115 SHT
, /* print shutdown() "how" (2nd) arg */
116 FFG
, /* print fcntl() flags (3rd) arg */
117 PRS
, /* privilege set */
118 PRO
, /* privilege set operation */
119 PRN
, /* privilege set name */
120 PFL
, /* privilege/process flag name */
121 LAF
, /* print lgrp_affinity arguments */
122 KEY
, /* print key_t 0 as IPC_PRIVATE */
123 ZGA
, /* print zone_getattr attribute types */
124 ATC
, /* print AT_FDCWD or file descriptor */
125 LIO
, /* print LIO_XX flags */
126 DFL
, /* print door_create() flags */
127 DPM
, /* print DOOR_PARAM_XX flags */
128 TND
, /* print trusted network data base opcode */
129 RSC
, /* print rctlsys subcode */
130 RGF
, /* print rctlsys_get flags */
131 RSF
, /* print rctlsys_set flags */
132 RCF
, /* print rctlsys_ctl flags */
133 FXF
, /* print forkx flags */
134 SPF
, /* print rctlsys_projset flags */
135 UN1
, /* unsigned except for -1 */
136 MOB
, /* print mmapobj() flags */
137 SNF
, /* print AT_SYMLINK_[NO]FOLLOW flag */
138 SKC
, /* print sockconfig subcode */
139 ACF
, /* accept4 flags */
140 PFD
, /* pipe fds[2] */
141 GRF
, /* getrandom flags */
142 PSDLT
, /* secflagsdelta_t */
143 PSFW
, /* psecflagswhich_t */
144 HID
/* hidden argument, don't print */
145 /* make sure HID is always the last member */
149 * Print routines, indexed by print codes.
151 extern void (* const Print
[])();
157 #endif /* _TRUSS_PRINT_H */