| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: sysctl.h,v 1.207 2013/02/02 14:02:09 matt Exp $ */ | | 1 | /* $NetBSD: sysctl.h,v 1.208 2013/08/01 01:16:34 matt Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 1989, 1993 | | 4 | * Copyright (c) 1989, 1993 |
5 | * The Regents of the University of California. All rights reserved. | | 5 | * The Regents of the University of California. All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to Berkeley by | | 7 | * This code is derived from software contributed to Berkeley by |
8 | * Mike Karels at Berkeley Software Design, Inc. | | 8 | * Mike Karels at Berkeley Software Design, Inc. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -149,33 +149,33 @@ struct ctlname { | | | @@ -149,33 +149,33 @@ struct ctlname { |
149 | CTLFLAG_HIDDEN) | | 149 | CTLFLAG_HIDDEN) |
150 | | | 150 | |
151 | /* | | 151 | /* |
152 | * Accessor macros | | 152 | * Accessor macros |
153 | */ | | 153 | */ |
154 | #define SYSCTL_TYPEMASK 0x0000000f | | 154 | #define SYSCTL_TYPEMASK 0x0000000f |
155 | #define SYSCTL_TYPE(x) ((x) & SYSCTL_TYPEMASK) | | 155 | #define SYSCTL_TYPE(x) ((x) & SYSCTL_TYPEMASK) |
156 | #define SYSCTL_FLAGMASK 0x00fffff0 | | 156 | #define SYSCTL_FLAGMASK 0x00fffff0 |
157 | #define SYSCTL_FLAGS(x) ((x) & SYSCTL_FLAGMASK) | | 157 | #define SYSCTL_FLAGS(x) ((x) & SYSCTL_FLAGMASK) |
158 | | | 158 | |
159 | /* | | 159 | /* |
160 | * Meta-identifiers | | 160 | * Meta-identifiers |
161 | */ | | 161 | */ |
162 | #define CTL_EOL -1 /* end of createv/destroyv list */ | | 162 | #define CTL_EOL (-1) /* end of createv/destroyv list */ |
163 | #define CTL_QUERY -2 /* enumerates children of a node */ | | 163 | #define CTL_QUERY (-2) /* enumerates children of a node */ |
164 | #define CTL_CREATE -3 /* node create request */ | | 164 | #define CTL_CREATE (-3) /* node create request */ |
165 | #define CTL_CREATESYM -4 /* node create request with symbol */ | | 165 | #define CTL_CREATESYM (-4) /* node create request with symbol */ |
166 | #define CTL_DESTROY -5 /* node destroy request */ | | 166 | #define CTL_DESTROY (-5) /* node destroy request */ |
167 | #define CTL_MMAP -6 /* mmap request */ | | 167 | #define CTL_MMAP (-6) /* mmap request */ |
168 | #define CTL_DESCRIBE -7 /* get node descriptions */ | | 168 | #define CTL_DESCRIBE (-7) /* get node descriptions */ |
169 | | | 169 | |
170 | /* | | 170 | /* |
171 | * Top-level identifiers | | 171 | * Top-level identifiers |
172 | */ | | 172 | */ |
173 | #define CTL_UNSPEC 0 /* unused */ | | 173 | #define CTL_UNSPEC 0 /* unused */ |
174 | #define CTL_KERN 1 /* "high kernel": proc, limits */ | | 174 | #define CTL_KERN 1 /* "high kernel": proc, limits */ |
175 | #define CTL_VM 2 /* virtual memory */ | | 175 | #define CTL_VM 2 /* virtual memory */ |
176 | #define CTL_VFS 3 /* file system, mount type is next */ | | 176 | #define CTL_VFS 3 /* file system, mount type is next */ |
177 | #define CTL_NET 4 /* network, see socket.h */ | | 177 | #define CTL_NET 4 /* network, see socket.h */ |
178 | #define CTL_DEBUG 5 /* debugging parameters */ | | 178 | #define CTL_DEBUG 5 /* debugging parameters */ |
179 | #define CTL_HW 6 /* generic CPU/io */ | | 179 | #define CTL_HW 6 /* generic CPU/io */ |
180 | #define CTL_MACHDEP 7 /* machine dependent */ | | 180 | #define CTL_MACHDEP 7 /* machine dependent */ |
181 | #define CTL_USER 8 /* user-level */ | | 181 | #define CTL_USER 8 /* user-level */ |