Sync usage with man page.
[netbsd-mini2440.git] / sys / compat / darwin / darwin_sysctl.h
blob293ed79907bd743b423676287c1b57b6eab041a5
1 /* $NetBSD: darwin_sysctl.h,v 1.10 2005/12/11 12:19:56 christos Exp $ */
3 /*-
4 * Copyright (c) 2002 The NetBSD Foundation, Inc.
5 * All rights reserved.
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Emmanuel Dreyfus
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
32 #ifndef _DARWIN_SYSCTL_H_
33 #define _DARWIN_SYSCTL_H_
35 extern pid_t darwin_init_pid;
36 extern int darwin_ioframebuffer_unit;
37 extern int darwin_ioframebuffer_screen;
38 extern int darwin_iohidsystem_mux;
40 #define EMUL_DARWIN_INIT 1
41 #define EMUL_DARWIN_IOFRAMEBUFFER 2
42 #define EMUL_DARWIN_IOHIDSYSTEM 3
43 #define EMUL_DARWIN_MAXID 4
45 #define EMUL_DARWIN_INIT_PID 1
46 #define EMUL_DARWIN_INIT_MAXID 2
48 #define EMUL_DARWIN_IOFRAMEBUFFER_UNIT 1
49 #define EMUL_DARWIN_IOFRAMEBUFFER_SCREEN 2
50 #define EMUL_DARWIN_IOFRAMEBUFFER_MAXID 3
52 #define EMUL_DARWIN_IOHIDSYSTEM_MUX 1
53 #define EMUL_DARWIN_IOHIDSYSTEM_MAXID 2
56 #define DARWIN_CTL_UNSPEC 0
57 #define DARWIN_CTL_KERN 1
58 #define DARWIN_CTL_VM 2
59 #define DARWIN_CTL_VFS 3
60 #define DARWIN_CTL_NET 4
61 #define DARWIN_CTL_DEBUG 5
62 #define DARWIN_CTL_HW 6
63 #define DARWIN_CTL_MACHDEP 7
64 #define DARWIN_CTL_USER 8
65 #define DARWIN_CTL_MAXID 9
67 #define DARWIN_KERN_OSTYPE 1
68 #define DARWIN_KERN_OSRELEASE 2
69 #define DARWIN_KERN_OSREV 3
70 #define DARWIN_KERN_VERSION 4
71 #define DARWIN_KERN_MAXVNODES 5
72 #define DARWIN_KERN_MAXPROC 6
73 #define DARWIN_KERN_MAXFILES 7
74 #define DARWIN_KERN_ARGMAX 8
75 #define DARWIN_KERN_SECURELVL 9
76 #define DARWIN_KERN_HOSTNAME 10
77 #define DARWIN_KERN_HOSTID 11
78 #define DARWIN_KERN_CLOCKRATE 12
79 #define DARWIN_KERN_VNODE 13
80 #define DARWIN_KERN_PROC 14
81 #define DARWIN_KERN_FILE 15
82 #define DARWIN_KERN_PROF 16
83 #define DARWIN_KERN_POSIX1 17
84 #define DARWIN_KERN_NGROUPS 18
85 #define DARWIN_KERN_JOB_CONTROL 19
86 #define DARWIN_KERN_SAVED_IDS 20
87 #define DARWIN_KERN_BOOTTIME 21
88 #define DARWIN_KERN_NISDOMAINNAME 22
89 #define DARWIN_KERN_MAXPARTITIONS 23
90 #define DARWIN_KERN_KDEBUG 24
91 #define DARWIN_KERN_UPDATEINTERVAL 25
92 #define DARWIN_KERN_OSRELDATE 26
93 #define DARWIN_KERN_NTP_PLL 27
94 #define DARWIN_KERN_BOOTFILE 28
95 #define DARWIN_KERN_MAXFILESPERPROC 29
96 #define DARWIN_KERN_MAXPROCPERUID 30
97 #define DARWIN_KERN_DUMPDEV 31
98 #define DARWIN_KERN_IPC 32
99 #define DARWIN_KERN_DUMMY 33
100 #define DARWIN_KERN_PS_STRINGS 34
101 #define DARWIN_KERN_USRSTACK 35
102 #define DARWIN_KERN_LOGSIGEXIT 36
103 #define DARWIN_KERN_SYMFILE 37
104 #define DARWIN_KERN_PROCARGS 38
105 #define DARWIN_KERN_PCSAMPLES 39
106 #define DARWIN_KERN_NETBOOT 40
107 #define DARWIN_KERN_PANICINFO 41
108 #define DARWIN_KERN_SYSV 42
109 #define DARWIN_KERN_MAXID 43
111 #define DARWIN_KERN_KDEFLAGS 1
112 #define DARWIN_KERN_KDDFLAGS 2
113 #define DARWIN_KERN_KDENABLE 3
114 #define DARWIN_KERN_KDSETBUF 4
115 #define DARWIN_KERN_KDGETBUF 5
116 #define DARWIN_KERN_KDSETUP 6
117 #define DARWIN_KERN_KDREMOVE 7
118 #define DARWIN_KERN_KDSETREG 8
119 #define DARWIN_KERN_KDGETREG 9
120 #define DARWIN_KERN_KDREADTR 10
121 #define DARWIN_KERN_KDPIDTR 11
122 #define DARWIN_KERN_KDTHRMAP 12
123 #define DARWIN_KERN_KDPIDEX 14
124 #define DARWIN_KERN_KDSETRTCDEC 15
125 #define DARWIN_KERN_KDGETENTROPY 16
127 #define DARWIN_KERN_PCDISABLE 1
128 #define DARWIN_KERN_PCSETBUF 2
129 #define DARWIN_KERN_PCGETBUF 3
130 #define DARWIN_KERN_PCSETUP 4
131 #define DARWIN_KERN_PCREMOVE 5
132 #define DARWIN_KERN_PCREADBUF 6
133 #define DARWIN_KERN_PCSETREG 7
134 #define DARWIN_KERN_PCCOMM 8
136 #define DARWIN_KERN_PANICINFO_MAXSIZE 1
137 #define DARWIN_KERN_PANICINFO_IMAGE16 2
138 #define DARWIN_KERN_PANICINFO_IMAGE32 3
140 #define DARWIN_KSYSV_SHMMAX 1
141 #define DARWIN_KSYSV_SHMMIN 2
142 #define DARWIN_KSYSV_SHMMNI 3
143 #define DARWIN_KSYSV_SHMSEG 4
144 #define DARWIN_KSYSV_SHMALL 5
146 #define DARWIN_KERN_PROC_ALL 0
147 #define DARWIN_KERN_PROC_PID 1
148 #define DARWIN_KERN_PROC_PGRP 2
149 #define DARWIN_KERN_PROC_SESSION 3
150 #define DARWIN_KERN_PROC_TTY 4
151 #define DARWIN_KERN_PROC_UID 5
152 #define DARWIN_KERN_PROC_RUID 6
154 #define DARWIN_KIPC_MAXSOCKBUF 1
155 #define DARWIN_KIPC_SOCKBUF_WASTE 2
156 #define DARWIN_KIPC_SOMAXCONN 3
157 #define DARWIN_KIPC_MAX_LINKHDR 4
158 #define DARWIN_KIPC_MAX_PROTOHDR 5
159 #define DARWIN_KIPC_MAX_HDR 6
160 #define DARWIN_KIPC_MAX_DATALEN 7
161 #define DARWIN_KIPC_MBSTAT 8
162 #define DARWIN_KIPC_NMBCLUSTERS 9
164 #define DARWIN_VM_METER 1
165 #define DARWIN_VM_LOADAVG 2
166 #define DARWIN_VM_MAXID 3
167 #define DARWIN_VM_MACHFACTOR 4
169 #define DARWIN_HW_MACHINE 1
170 #define DARWIN_HW_MODEL 2
171 #define DARWIN_HW_NCPU 3
172 #define DARWIN_HW_BYTEORDER 4
173 #define DARWIN_HW_PHYSMEM 5
174 #define DARWIN_HW_USERMEM 6
175 #define DARWIN_HW_PAGESIZE 7
176 #define DARWIN_HW_DISKNAMES 8
177 #define DARWIN_HW_DISKSTATS 9
178 #define DARWIN_HW_EPOCH 10
179 #define DARWIN_HW_FLOATINGPT 11
180 #define DARWIN_HW_MACHINE_ARCH 12
181 #define DARWIN_HW_VECTORUNIT 13
182 #define DARWIN_HW_BUS_FREQ 14
183 #define DARWIN_HW_CPU_FREQ 15
184 #define DARWIN_HW_CACHELINE 16
185 #define DARWIN_HW_L1ICACHESIZE 17
186 #define DARWIN_HW_L1DCACHESIZE 18
187 #define DARWIN_HW_L2SETTINGS 19
188 #define DARWIN_HW_L2CACHESIZE 20
189 #define DARWIN_HW_L3SETTINGS 21
190 #define DARWIN_HW_L3CACHESIZE 22
191 #define DARWIN_HW_MAXID 23
193 #define DARWIN_USER_CS_PATH 1
194 #define DARWIN_USER_BC_BASE_MAX 2
195 #define DARWIN_USER_BC_DIM_MAX 3
196 #define DARWIN_USER_BC_SCALE_MAX 4
197 #define DARWIN_USER_BC_STRING_MAX 5
198 #define DARWIN_USER_COLL_WEIGHTS_MAX 6
199 #define DARWIN_USER_EXPR_NEST_MAX 7
200 #define DARWIN_USER_LINE_MAX 8
201 #define DARWIN_USER_RE_DUP_MAX 9
202 #define DARWIN_USER_POSIX2_VERSION 10
203 #define DARWIN_USER_POSIX2_C_BIND 11
204 #define DARWIN_USER_POSIX2_C_DEV 12
205 #define DARWIN_USER_POSIX2_CHAR_TERM 13
206 #define DARWIN_USER_POSIX2_FORT_DEV 14
207 #define DARWIN_USER_POSIX2_FORT_RUN 15
208 #define DARWIN_USER_POSIX2_LOCALEDEF 16
209 #define DARWIN_USER_POSIX2_SW_DEV 17
210 #define DARWIN_USER_POSIX2_UPE 18
211 #define DARWIN_USER_STREAM_MAX 19
212 #define DARWIN_USER_TZNAME_MAX 20
213 #define DARWIN_USER_MAXID 21
215 #define DARWIN_CTL_DEBUG_NAME 0
216 #define DARWIN_CTL_DEBUG_VALUE 1
217 #define DARWIN_CTL_DEBUG_MAXID 20
219 #endif /* _DARWIN_SYSCTL_H_ */