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