annotate usr/src/cmd/truss/print.h @ 14022:19e11862653b

3713 Implement accept4() 3714 Implement pipe2() 3715 Implement dup3() 3716 Implement mkostemp() and mkostemps() 3719 so_socketpair syscall should preserve FD_CLOEXEC flag Reviewed by: Dan McDonald <danmcd@nexenta.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Garrett D'Amore <garrett@damore.org>
author Theo Schlossnagle <jesus@omniti.com>
date Thu, 11 Apr 2013 04:50:36 +0000
parents 82cffaae72d5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
1 /*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
2 * CDDL HEADER START
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
3 *
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
4 * The contents of this file are subject to the terms of the
1676
37f4a3e2bd99 PSARC/2002/762 Layered Trusted Solaris
jpk
parents: 0
diff changeset
5 * Common Development and Distribution License (the "License").
37f4a3e2bd99 PSARC/2002/762 Layered Trusted Solaris
jpk
parents: 0
diff changeset
6 * You may not use this file except in compliance with the License.
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
7 *
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
9 * or http://www.opensolaris.org/os/licensing.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
10 * See the License for the specific language governing permissions
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
11 * and limitations under the License.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
12 *
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
13 * When distributing Covered Code, include this CDDL HEADER in each
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
15 * If applicable, add the following below this CDDL HEADER, with the
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
16 * fields enclosed by brackets "[]" replaced with your own identifying
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
17 * information: Portions Copyright [yyyy] [name of copyright owner]
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
18 *
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
19 * CDDL HEADER END
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
20 */
12801
82cffaae72d5 PSARC 2010/235 POSIX 1003.1-2008 *at(2) syscalls
Roger A. Faulkner <Roger.Faulkner@Oracle.COM>
parents: 12643
diff changeset
21
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
22 /*
12643
044ff822d212 PSARC/2009/590 Socket Filter Framework
Anders Persson <Anders.Persson@Sun.COM>
parents: 11798
diff changeset
23 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
24 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
25
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
26 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
27 /* All Rights Reserved */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
28
14022
19e11862653b 3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents: 12801
diff changeset
29 /* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All right reserved. */
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
30
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
31 #ifndef _TRUSS_PRINT_H
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
32 #define _TRUSS_PRINT_H
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
33
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
34 #ifdef __cplusplus
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
35 extern "C" {
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
36 #endif
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
37
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
38 /*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
39 * Argument & return value print codes.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
40 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
41 #define NOV 0 /* no value */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
42 #define DEC 1 /* print value in decimal */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
43 #define OCT 2 /* print value in octal */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
44 #define HEX 3 /* print value in hexadecimal */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
45 #define DEX 4 /* print value in hexadecimal if big enough */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
46 #define STG 5 /* print value as string */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
47 #define IOC 6 /* print ioctl code */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
48 #define FCN 7 /* print fcntl code */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
49 #define S86 8 /* print sysi86 code */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
50 #define UTS 9 /* print utssys code */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
51 #define OPN 10 /* print open code */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
52 #define SIG 11 /* print signal name plus flags */
12801
82cffaae72d5 PSARC 2010/235 POSIX 1003.1-2008 *at(2) syscalls
Roger A. Faulkner <Roger.Faulkner@Oracle.COM>
parents: 12643
diff changeset
53 #define UAT 12 /* print unlinkat() flag */
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
54 #define MSC 13 /* print msgsys command */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
55 #define MSF 14 /* print msgsys flags */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
56 #define SMC 15 /* print semsys command */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
57 #define SEF 16 /* print semsys flags */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
58 #define SHC 17 /* print shmsys command */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
59 #define SHF 18 /* print shmsys flags */
12801
82cffaae72d5 PSARC 2010/235 POSIX 1003.1-2008 *at(2) syscalls
Roger A. Faulkner <Roger.Faulkner@Oracle.COM>
parents: 12643
diff changeset
60 #define FAT 19 /* print faccessat() flag */
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
61 #define SFS 20 /* print sysfs code */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
62 #define RST 21 /* print string returned by sys call */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
63 #define SMF 22 /* print streams message flags */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
64 #define IOA 23 /* print ioctl argument */
14022
19e11862653b 3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents: 12801
diff changeset
65 #define PIP 24 /* print pipe flags */
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
66 #define MTF 25 /* print mount flags */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
67 #define MFT 26 /* print mount file system type */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
68 #define IOB 27 /* print contents of I/O buffer */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
69 #define HHX 28 /* print value in hexadecimal (half size) */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
70 #define WOP 29 /* print waitsys() options */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
71 #define SPM 30 /* print sigprocmask argument */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
72 #define RLK 31 /* print readlink buffer */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
73 #define MPR 32 /* print mmap()/mprotect() flags */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
74 #define MTY 33 /* print mmap() mapping type flags */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
75 #define MCF 34 /* print memcntl() function */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
76 #define MC4 35 /* print memcntl() (fourth) argument */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
77 #define MC5 36 /* print memcntl() (fifth) argument */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
78 #define MAD 37 /* print madvise() argument */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
79 #define ULM 38 /* print ulimit() argument */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
80 #define RLM 39 /* print get/setrlimit() argument */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
81 #define CNF 40 /* print sysconfig() argument */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
82 #define INF 41 /* print sysinfo() argument */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
83 #define PTC 42 /* print pathconf/fpathconf() argument */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
84 #define FUI 43 /* print fusers() input argument */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
85 #define IDT 44 /* print idtype_t, waitid() argument */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
86 #define LWF 45 /* print lwp_create() flags */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
87 #define ITM 46 /* print [get|set]itimer() arg */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
88 #define LLO 47 /* print long long offset */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
89 #define MOD 48 /* print modctl() code */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
90 #define WHN 49 /* print lseek() whence argument */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
91 #define ACL 50 /* print acl() code */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
92 #define AIO 51 /* print kaio() code */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
93 #define AUD 52 /* print auditsys() code */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
94 #define UNS 53 /* print value in unsigned decimal */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
95 #define CLC 54 /* print cladm() command argument */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
96 #define CLF 55 /* print cladm() flag argument */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
97 #define COR 56 /* print corectl() subcode */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
98 #define CCO 57 /* print corectl() options */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
99 #define CCC 58 /* print corectl() content */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
100 #define RCC 59 /* print corectl() content */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
101 #define CPC 60 /* print cpc() subcode */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
102 #define SQC 61 /* print sigqueue() si_code argument */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
103 #define PC4 62 /* print priocntlsys() (fourth) argument */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
104 #define PC5 63 /* print priocntlsys() (key-value) pairs */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
105 #define PST 64 /* print processor set id */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
106 #define MIF 65 /* print meminfo() argument */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
107 #define PFM 66 /* print so_socket() proto-family (1st) arg */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
108 #define SKT 67 /* print so_socket() socket type (2nd) arg */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
109 #define SKP 68 /* print so_socket() protocol (3rd) arg */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
110 #define SKV 69 /* print so_socket() version (5th) arg */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
111 #define SOL 70 /* print [sg]etsockopt() level (2nd) arg */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
112 #define SON 71 /* print [sg]etsockopt() name (3rd) arg */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
113 #define UTT 72 /* print utrap type */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
114 #define UTH 73 /* print utrap handler */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
115 #define ACC 74 /* print access flags */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
116 #define SHT 75 /* print shutdown() "how" (2nd) arg */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
117 #define FFG 76 /* print fcntl() flags (3rd) arg */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
118 #define PRS 77 /* privilege set */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
119 #define PRO 78 /* privilege set operation */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
120 #define PRN 79 /* privilege set name */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
121 #define PFL 80 /* privilege/process flag name */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
122 #define LAF 81 /* print lgrp_affinity arguments */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
123 #define KEY 82 /* print key_t 0 as IPC_PRIVATE */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
124 #define ZGA 83 /* print zone_getattr attribute types */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
125 #define ATC 84 /* print AT_FDCWD or file descriptor */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
126 #define LIO 85 /* print LIO_XX flags */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
127 #define DFL 86 /* print door_create() flags */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
128 #define DPM 87 /* print DOOR_PARAM_XX flags */
1676
37f4a3e2bd99 PSARC/2002/762 Layered Trusted Solaris
jpk
parents: 0
diff changeset
129 #define TND 88 /* print trusted network data base opcode */
2447
8e8f3bf6a3f3 6201153 rctl exceeded message should include zonename
nf202958
parents: 1676
diff changeset
130 #define RSC 89 /* print rctlsys subcode */
8e8f3bf6a3f3 6201153 rctl exceeded message should include zonename
nf202958
parents: 1676
diff changeset
131 #define RGF 90 /* print rctlsys_get flags */
8e8f3bf6a3f3 6201153 rctl exceeded message should include zonename
nf202958
parents: 1676
diff changeset
132 #define RSF 91 /* print rctlsys_set flags */
8e8f3bf6a3f3 6201153 rctl exceeded message should include zonename
nf202958
parents: 1676
diff changeset
133 #define RCF 92 /* print rctlsys_ctl flags */
3235
9af05252020c PSARC 2006/659 fork extensions
raf
parents: 2447
diff changeset
134 #define FXF 93 /* print forkx flags */
3684
a0773f73b68d PSARC 2006/554 setproject(3PROJECT) defining, and enhancing behaviour
rd117015
parents: 3235
diff changeset
135 #define SPF 94 /* print rctlsys_projset flags */
4321
a8930ec16e52 PSARC 2007/064 Unified POSIX and Windows Credentials for Solaris
casper
parents: 3684
diff changeset
136 #define UN1 95 /* unsigned except for -1 */
10198
34520123946e 6861993 "truss" does not understand flags used by mmapobj(2)
Ali Bahrami <Ali.Bahrami@Sun.COM>
parents: 4321
diff changeset
137 #define MOB 96 /* print mmapobj() flags */
12801
82cffaae72d5 PSARC 2010/235 POSIX 1003.1-2008 *at(2) syscalls
Roger A. Faulkner <Roger.Faulkner@Oracle.COM>
parents: 12643
diff changeset
138 #define SNF 97 /* print AT_SYMLINK_[NO]FOLLOW flag */
12643
044ff822d212 PSARC/2009/590 Socket Filter Framework
Anders Persson <Anders.Persson@Sun.COM>
parents: 11798
diff changeset
139 #define SKC 98 /* print sockconfig subcode */
14022
19e11862653b 3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents: 12801
diff changeset
140 #define ACF 99 /* accept4 flags */
19e11862653b 3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents: 12801
diff changeset
141 #define PFD 100 /* pipe fds[2] */
19e11862653b 3713 Implement accept4()
Theo Schlossnagle <jesus@omniti.com>
parents: 12801
diff changeset
142 #define HID 101 /* hidden argument, don't print */
0
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
143 /* make sure HID is always the last member */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
144
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
145 /*
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
146 * Print routines, indexed by print codes.
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
147 */
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
148 extern void (* const Print[])();
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
149
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
150 #ifdef __cplusplus
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
151 }
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
152 #endif
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
153
68f95e015346 OpenSolaris Launch
stevel@tonic-gate
parents:
diff changeset
154 #endif /* _TRUSS_PRINT_H */