[flang][cuda] Adapt ExternalNameConversion to work in gpu module (#117039)
[llvm-project.git] / compiler-rt / lib / sanitizer_common / sanitizer_platform_limits_netbsd.cpp
blobc40877ba48d072ba4570c638327b279b5b3b6e00
1 //===-- sanitizer_platform_limits_netbsd.cpp ------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file is a part of Sanitizer common code.
11 // Sizes and layouts of platform-specific NetBSD data structures.
12 //===----------------------------------------------------------------------===//
14 #include "sanitizer_platform.h"
16 #if SANITIZER_NETBSD
18 #define _KMEMUSER
19 #define RAY_DO_SIGLEV
20 #define __LEGACY_PT_LWPINFO
22 // clang-format off
23 #include <sys/param.h>
24 #include <sys/types.h>
25 #include <sys/sysctl.h>
26 #include <sys/disk.h>
27 #include <sys/disklabel.h>
28 #include <sys/mount.h>
29 #include <sys/agpio.h>
30 #include <sys/ataio.h>
31 #include <sys/audioio.h>
32 #include <sys/cdbr.h>
33 #include <sys/cdio.h>
34 #include <sys/chio.h>
35 #include <sys/clockctl.h>
36 #include <sys/cpuio.h>
37 #include <sys/dkbad.h>
38 #include <sys/dkio.h>
39 #include <sys/drvctlio.h>
40 #include <sys/dvdio.h>
41 #include <sys/envsys.h>
42 #include <sys/event.h>
43 #include <sys/fdio.h>
44 #include <sys/filio.h>
45 #include <sys/gpio.h>
46 #include <sys/ioctl.h>
47 #include <sys/ioctl_compat.h>
48 #include <sys/joystick.h>
49 #include <sys/ksyms.h>
50 #include <sys/lua.h>
51 #include <sys/midiio.h>
52 #include <sys/mtio.h>
53 #include <sys/power.h>
54 #include <sys/radioio.h>
55 #include <sys/rndio.h>
56 #include <sys/scanio.h>
57 #include <sys/scsiio.h>
58 #include <sys/sockio.h>
59 #include <sys/timepps.h>
60 #include <sys/ttycom.h>
61 #include <sys/verified_exec.h>
62 #include <sys/videoio.h>
63 #include <sys/wdog.h>
64 #include <sys/event.h>
65 #include <sys/filio.h>
66 #include <sys/ipc.h>
67 #include <sys/ipmi.h>
68 #include <sys/kcov.h>
69 #include <sys/mman.h>
70 #include <sys/module.h>
71 #include <sys/mount.h>
72 #include <sys/mqueue.h>
73 #include <sys/msg.h>
74 #include <sys/mtio.h>
75 #include <sys/ptrace.h>
77 // Compat for NetBSD < 9.99.30.
78 #ifndef PT_LWPSTATUS
79 #define PT_LWPSTATUS 24
80 #endif
81 #ifndef PT_LWPNEXT
82 #define PT_LWPNEXT 25
83 #endif
85 #include <sys/resource.h>
86 #include <sys/sem.h>
87 #include <sys/scsiio.h>
88 #include <sys/sha1.h>
89 #include <sys/sha2.h>
90 #include <sys/shm.h>
91 #include <sys/signal.h>
92 #include <sys/socket.h>
93 #include <sys/sockio.h>
94 #include <sys/soundcard.h>
95 #include <sys/stat.h>
96 #include <sys/statvfs.h>
97 #include <sys/time.h>
98 #include <sys/timeb.h>
99 #include <sys/times.h>
100 #include <sys/timespec.h>
101 #include <sys/timex.h>
102 #include <sys/types.h>
103 #include <sys/ucontext.h>
104 #include <sys/utsname.h>
105 #include <altq/altq.h>
106 #include <altq/altq_afmap.h>
107 #include <altq/altq_blue.h>
108 #include <altq/altq_cbq.h>
109 #include <altq/altq_cdnr.h>
110 #include <altq/altq_fifoq.h>
111 #include <altq/altq_hfsc.h>
112 #include <altq/altq_jobs.h>
113 #include <altq/altq_priq.h>
114 #include <altq/altq_red.h>
115 #include <altq/altq_rio.h>
116 #include <altq/altq_wfq.h>
117 #include <arpa/inet.h>
118 #include <crypto/cryptodev.h>
119 #include <dev/apm/apmio.h>
120 #include <dev/dm/netbsd-dm.h>
121 #include <dev/dmover/dmover_io.h>
122 #include <dev/dtv/dtvio_demux.h>
123 #include <dev/dtv/dtvio_frontend.h>
124 #if !__NetBSD_Prereq__(9, 99, 26)
125 #include <dev/filemon/filemon.h>
126 #else
127 #define FILEMON_SET_FD _IOWR('S', 1, int)
128 #define FILEMON_SET_PID _IOWR('S', 2, pid_t)
129 #endif
130 #include <dev/hdaudio/hdaudioio.h>
131 #include <dev/hdmicec/hdmicecio.h>
132 #include <dev/hpc/hpcfbio.h>
133 #include <dev/i2o/iopio.h>
134 #include <dev/ic/athioctl.h>
135 #include <dev/ic/bt8xx.h>
136 #include <dev/ic/icp_ioctl.h>
137 #include <dev/ic/isp_ioctl.h>
138 #include <dev/ic/mlxio.h>
139 #include <dev/ic/qemufwcfgio.h>
140 #include <dev/ic/nvmeio.h>
141 #include <dev/ir/irdaio.h>
142 #include <dev/isa/isvio.h>
143 #include <dev/isa/wtreg.h>
144 #if __has_include(<dev/iscsi/iscsi_ioctl.h>)
145 #include <dev/iscsi/iscsi_ioctl.h>
146 #else
147 /* Fallback for MKISCSI=no */
149 typedef struct {
150 uint32_t status;
151 uint32_t session_id;
152 uint32_t connection_id;
153 } iscsi_conn_status_parameters_t;
155 typedef struct {
156 uint32_t status;
157 uint16_t interface_version;
158 uint16_t major;
159 uint16_t minor;
160 uint8_t version_string[224];
161 } iscsi_get_version_parameters_t;
163 typedef struct {
164 uint32_t status;
165 uint32_t session_id;
166 uint32_t connection_id;
167 struct {
168 unsigned int immediate : 1;
169 } options;
170 uint64_t lun;
171 scsireq_t req; /* from <sys/scsiio.h> */
172 } iscsi_iocommand_parameters_t;
174 typedef enum {
175 ISCSI_AUTH_None = 0,
176 ISCSI_AUTH_CHAP = 1,
177 ISCSI_AUTH_KRB5 = 2,
178 ISCSI_AUTH_SRP = 3
179 } iscsi_auth_types_t;
181 typedef enum {
182 ISCSI_LOGINTYPE_DISCOVERY = 0,
183 ISCSI_LOGINTYPE_NOMAP = 1,
184 ISCSI_LOGINTYPE_MAP = 2
185 } iscsi_login_session_type_t;
187 typedef enum { ISCSI_DIGEST_None = 0, ISCSI_DIGEST_CRC32C = 1 } iscsi_digest_t;
189 typedef enum {
190 ISCSI_SESSION_TERMINATED = 1,
191 ISCSI_CONNECTION_TERMINATED,
192 ISCSI_RECOVER_CONNECTION,
193 ISCSI_DRIVER_TERMINATING
194 } iscsi_event_t;
196 typedef struct {
197 unsigned int mutual_auth : 1;
198 unsigned int is_secure : 1;
199 unsigned int auth_number : 4;
200 iscsi_auth_types_t auth_type[4];
201 } iscsi_auth_info_t;
203 typedef struct {
204 uint32_t status;
205 int socket;
206 struct {
207 unsigned int HeaderDigest : 1;
208 unsigned int DataDigest : 1;
209 unsigned int MaxConnections : 1;
210 unsigned int DefaultTime2Wait : 1;
211 unsigned int DefaultTime2Retain : 1;
212 unsigned int MaxRecvDataSegmentLength : 1;
213 unsigned int auth_info : 1;
214 unsigned int user_name : 1;
215 unsigned int password : 1;
216 unsigned int target_password : 1;
217 unsigned int TargetName : 1;
218 unsigned int TargetAlias : 1;
219 unsigned int ErrorRecoveryLevel : 1;
220 } is_present;
221 iscsi_auth_info_t auth_info;
222 iscsi_login_session_type_t login_type;
223 iscsi_digest_t HeaderDigest;
224 iscsi_digest_t DataDigest;
225 uint32_t session_id;
226 uint32_t connection_id;
227 uint32_t MaxRecvDataSegmentLength;
228 uint16_t MaxConnections;
229 uint16_t DefaultTime2Wait;
230 uint16_t DefaultTime2Retain;
231 uint16_t ErrorRecoveryLevel;
232 void *user_name;
233 void *password;
234 void *target_password;
235 void *TargetName;
236 void *TargetAlias;
237 } iscsi_login_parameters_t;
239 typedef struct {
240 uint32_t status;
241 uint32_t session_id;
242 } iscsi_logout_parameters_t;
244 typedef struct {
245 uint32_t status;
246 uint32_t event_id;
247 } iscsi_register_event_parameters_t;
249 typedef struct {
250 uint32_t status;
251 uint32_t session_id;
252 uint32_t connection_id;
253 } iscsi_remove_parameters_t;
255 typedef struct {
256 uint32_t status;
257 uint32_t session_id;
258 void *response_buffer;
259 uint32_t response_size;
260 uint32_t response_used;
261 uint32_t response_total;
262 uint8_t key[224];
263 } iscsi_send_targets_parameters_t;
265 typedef struct {
266 uint32_t status;
267 uint8_t InitiatorName[224];
268 uint8_t InitiatorAlias[224];
269 uint8_t ISID[6];
270 } iscsi_set_node_name_parameters_t;
272 typedef struct {
273 uint32_t status;
274 uint32_t event_id;
275 iscsi_event_t event_kind;
276 uint32_t session_id;
277 uint32_t connection_id;
278 uint32_t reason;
279 } iscsi_wait_event_parameters_t;
281 #define ISCSI_GET_VERSION _IOWR(0, 1, iscsi_get_version_parameters_t)
282 #define ISCSI_LOGIN _IOWR(0, 2, iscsi_login_parameters_t)
283 #define ISCSI_LOGOUT _IOWR(0, 3, iscsi_logout_parameters_t)
284 #define ISCSI_ADD_CONNECTION _IOWR(0, 4, iscsi_login_parameters_t)
285 #define ISCSI_RESTORE_CONNECTION _IOWR(0, 5, iscsi_login_parameters_t)
286 #define ISCSI_REMOVE_CONNECTION _IOWR(0, 6, iscsi_remove_parameters_t)
287 #define ISCSI_CONNECTION_STATUS _IOWR(0, 7, iscsi_conn_status_parameters_t)
288 #define ISCSI_SEND_TARGETS _IOWR(0, 8, iscsi_send_targets_parameters_t)
289 #define ISCSI_SET_NODE_NAME _IOWR(0, 9, iscsi_set_node_name_parameters_t)
290 #define ISCSI_IO_COMMAND _IOWR(0, 10, iscsi_iocommand_parameters_t)
291 #define ISCSI_REGISTER_EVENT _IOWR(0, 11, iscsi_register_event_parameters_t)
292 #define ISCSI_DEREGISTER_EVENT _IOWR(0, 12, iscsi_register_event_parameters_t)
293 #define ISCSI_WAIT_EVENT _IOWR(0, 13, iscsi_wait_event_parameters_t)
294 #define ISCSI_POLL_EVENT _IOWR(0, 14, iscsi_wait_event_parameters_t)
295 #endif
296 #include <dev/ofw/openfirmio.h>
297 #include <dev/pci/amrio.h>
298 #include <dev/pci/mlyreg.h>
299 #include <dev/pci/mlyio.h>
300 #include <dev/pci/pciio.h>
301 #include <dev/pci/tweio.h>
302 #include <dev/pcmcia/if_cnwioctl.h>
303 #include <net/bpf.h>
304 #include <net/if_gre.h>
305 #include <net/ppp_defs.h>
306 #include <net/if_ppp.h>
307 #include <net/if_pppoe.h>
308 #include <net/if_sppp.h>
309 #include <net/if_srt.h>
310 #include <net/if_tap.h>
311 #include <net/if_tun.h>
312 #include <net/npf.h>
313 #include <net/pfvar.h>
314 #include <net/slip.h>
315 #include <netbt/hci.h>
316 #include <netinet/ip_compat.h>
317 #if __has_include(<netinet/ip_fil.h>)
318 #include <netinet/ip_fil.h>
319 #include <netinet/ip_nat.h>
320 #include <netinet/ip_proxy.h>
321 #else
322 /* Fallback for MKIPFILTER=no */
324 typedef struct ap_control {
325 char apc_label[16];
326 char apc_config[16];
327 unsigned char apc_p;
328 unsigned long apc_cmd;
329 unsigned long apc_arg;
330 void *apc_data;
331 size_t apc_dsize;
332 } ap_ctl_t;
334 typedef struct ipftq {
335 ipfmutex_t ifq_lock;
336 unsigned int ifq_ttl;
337 void *ifq_head;
338 void **ifq_tail;
339 void *ifq_next;
340 void **ifq_pnext;
341 int ifq_ref;
342 unsigned int ifq_flags;
343 } ipftq_t;
345 typedef struct ipfobj {
346 uint32_t ipfo_rev;
347 uint32_t ipfo_size;
348 void *ipfo_ptr;
349 int ipfo_type;
350 int ipfo_offset;
351 int ipfo_retval;
352 unsigned char ipfo_xxxpad[28];
353 } ipfobj_t;
355 #define SIOCADNAT _IOW('r', 60, struct ipfobj)
356 #define SIOCRMNAT _IOW('r', 61, struct ipfobj)
357 #define SIOCGNATS _IOWR('r', 62, struct ipfobj)
358 #define SIOCGNATL _IOWR('r', 63, struct ipfobj)
359 #define SIOCPURGENAT _IOWR('r', 100, struct ipfobj)
360 #endif
361 #include <netinet6/in6_var.h>
362 #include <netinet6/nd6.h>
363 #if !__NetBSD_Prereq__(9, 99, 51)
364 #include <netsmb/smb_dev.h>
365 #else
366 struct smbioc_flags {
367 int ioc_level;
368 int ioc_mask;
369 int ioc_flags;
371 struct smbioc_oshare {
372 int ioc_opt;
373 int ioc_stype;
374 char ioc_share[129];
375 char ioc_password[129];
376 uid_t ioc_owner;
377 gid_t ioc_group;
378 mode_t ioc_mode;
379 mode_t ioc_rights;
381 struct smbioc_ossn {
382 int ioc_opt;
383 uint32_t ioc_svlen;
384 struct sockaddr *ioc_server;
385 uint32_t ioc_lolen;
386 struct sockaddr *ioc_local;
387 char ioc_srvname[16];
388 int ioc_timeout;
389 int ioc_retrycount;
390 char ioc_localcs[16];
391 char ioc_servercs[16];
392 char ioc_user[129];
393 char ioc_workgroup[129];
394 char ioc_password[129];
395 uid_t ioc_owner;
396 gid_t ioc_group;
397 mode_t ioc_mode;
398 mode_t ioc_rights;
400 struct smbioc_lookup {
401 int ioc_level;
402 int ioc_flags;
403 struct smbioc_ossn ioc_ssn;
404 struct smbioc_oshare ioc_sh;
406 struct smbioc_rq {
407 u_char ioc_cmd;
408 u_char ioc_twc;
409 void *ioc_twords;
410 u_short ioc_tbc;
411 void *ioc_tbytes;
412 int ioc_rpbufsz;
413 char *ioc_rpbuf;
414 u_char ioc_rwc;
415 u_short ioc_rbc;
417 struct smbioc_rw {
418 u_int16_t ioc_fh;
419 char *ioc_base;
420 off_t ioc_offset;
421 int ioc_cnt;
423 #define SMBIOC_OPENSESSION _IOW('n', 100, struct smbioc_ossn)
424 #define SMBIOC_OPENSHARE _IOW('n', 101, struct smbioc_oshare)
425 #define SMBIOC_REQUEST _IOWR('n', 102, struct smbioc_rq)
426 #define SMBIOC_T2RQ _IOWR('n', 103, struct smbioc_t2rq)
427 #define SMBIOC_SETFLAGS _IOW('n', 104, struct smbioc_flags)
428 #define SMBIOC_LOOKUP _IOW('n', 106, struct smbioc_lookup)
429 #define SMBIOC_READ _IOWR('n', 107, struct smbioc_rw)
430 #define SMBIOC_WRITE _IOWR('n', 108, struct smbioc_rw)
431 #endif
432 #include <dev/biovar.h>
433 #include <dev/bluetooth/btdev.h>
434 #include <dev/bluetooth/btsco.h>
435 #include <dev/ccdvar.h>
436 #include <dev/cgdvar.h>
437 #include <dev/fssvar.h>
438 #include <dev/kttcpio.h>
439 #include <dev/lockstat.h>
440 #include <dev/md.h>
441 #include <net/if_ether.h>
442 #include <dev/pcmcia/if_rayreg.h>
443 #include <stdio.h>
444 #include <dev/raidframe/raidframeio.h>
445 #include <dev/sbus/mbppio.h>
446 #include <dev/scsipi/ses.h>
447 #include <dev/spi/spi_io.h>
448 #include <dev/spkrio.h>
449 #include <dev/sun/disklabel.h>
450 #include <dev/sun/fbio.h>
451 #include <dev/sun/kbio.h>
452 #include <dev/sun/vuid_event.h>
453 #include <dev/tc/sticio.h>
454 #include <dev/usb/ukyopon.h>
455 #if !__NetBSD_Prereq__(9, 99, 44)
456 #include <dev/usb/urio.h>
457 #else
458 struct urio_command {
459 unsigned short length;
460 int request;
461 int requesttype;
462 int value;
463 int index;
464 void *buffer;
465 int timeout;
467 #define URIO_SEND_COMMAND _IOWR('U', 200, struct urio_command)
468 #define URIO_RECV_COMMAND _IOWR('U', 201, struct urio_command)
469 #endif
470 #include <dev/usb/usb.h>
471 #include <dev/usb/utoppy.h>
472 #include <dev/vme/xio.h>
473 #include <dev/vndvar.h>
474 #include <dev/wscons/wsconsio.h>
475 #include <dev/wscons/wsdisplay_usl_io.h>
476 #include <fs/autofs/autofs_ioctl.h>
477 #include <dirent.h>
478 #include <dlfcn.h>
479 #include <glob.h>
480 #include <grp.h>
481 #include <ifaddrs.h>
482 #include <limits.h>
483 #include <link_elf.h>
484 #include <net/if.h>
485 #include <net/route.h>
486 #include <netdb.h>
487 #include <netinet/in.h>
488 #include <netinet/ip_mroute.h>
489 #include <netinet/sctp_uio.h>
490 #include <poll.h>
491 #include <pthread.h>
492 #include <pwd.h>
493 #include <semaphore.h>
494 #include <signal.h>
495 #include <stddef.h>
496 #include <md2.h>
497 #include <md4.h>
498 #include <md5.h>
499 #include <rmd160.h>
500 #include <soundcard.h>
501 #include <term.h>
502 #include <termios.h>
503 #include <time.h>
504 #include <ttyent.h>
505 #include <utime.h>
506 #include <utmp.h>
507 #include <utmpx.h>
508 #include <vis.h>
509 #include <wchar.h>
510 #include <wordexp.h>
511 #include <ttyent.h>
512 #include <fts.h>
513 #include <regex.h>
514 #include <fstab.h>
515 #include <stringlist.h>
517 #if defined(__x86_64__)
518 #include <nvmm.h>
519 #endif
520 // clang-format on
522 // Include these after system headers to avoid name clashes and ambiguities.
523 #include "sanitizer_internal_defs.h"
524 #include "sanitizer_libc.h"
525 #include "sanitizer_platform_limits_netbsd.h"
527 namespace __sanitizer {
528 void *__sanitizer_get_link_map_by_dlopen_handle(void *handle) {
529 void *p = nullptr;
530 return internal_dlinfo(handle, RTLD_DI_LINKMAP, &p) == 0 ? p : nullptr;
533 unsigned struct_utsname_sz = sizeof(struct utsname);
534 unsigned struct_stat_sz = sizeof(struct stat);
535 unsigned struct_rusage_sz = sizeof(struct rusage);
536 unsigned struct_tm_sz = sizeof(struct tm);
537 unsigned struct_passwd_sz = sizeof(struct passwd);
538 unsigned struct_group_sz = sizeof(struct group);
539 unsigned siginfo_t_sz = sizeof(siginfo_t);
540 unsigned struct_sigaction_sz = sizeof(struct sigaction);
541 unsigned struct_stack_t_sz = sizeof(stack_t);
542 unsigned struct_itimerval_sz = sizeof(struct itimerval);
543 unsigned pthread_t_sz = sizeof(pthread_t);
544 unsigned pthread_mutex_t_sz = sizeof(pthread_mutex_t);
545 unsigned pthread_cond_t_sz = sizeof(pthread_cond_t);
546 unsigned pid_t_sz = sizeof(pid_t);
547 unsigned timeval_sz = sizeof(timeval);
548 unsigned uid_t_sz = sizeof(uid_t);
549 unsigned gid_t_sz = sizeof(gid_t);
550 unsigned mbstate_t_sz = sizeof(mbstate_t);
551 unsigned sigset_t_sz = sizeof(sigset_t);
552 unsigned struct_timezone_sz = sizeof(struct timezone);
553 unsigned struct_tms_sz = sizeof(struct tms);
554 unsigned struct_sigevent_sz = sizeof(struct sigevent);
555 unsigned struct_sched_param_sz = sizeof(struct sched_param);
556 unsigned struct_sockaddr_sz = sizeof(struct sockaddr);
557 unsigned ucontext_t_sz(void *ctx) { return sizeof(ucontext_t); }
558 unsigned struct_rlimit_sz = sizeof(struct rlimit);
559 unsigned struct_timespec_sz = sizeof(struct timespec);
560 unsigned struct_sembuf_sz = sizeof(struct sembuf);
561 unsigned struct_kevent_sz = sizeof(struct kevent);
562 unsigned struct_FTS_sz = sizeof(FTS);
563 unsigned struct_FTSENT_sz = sizeof(FTSENT);
564 unsigned struct_regex_sz = sizeof(regex_t);
565 unsigned struct_regmatch_sz = sizeof(regmatch_t);
566 unsigned struct_fstab_sz = sizeof(struct fstab);
567 unsigned struct_utimbuf_sz = sizeof(struct utimbuf);
568 unsigned struct_itimerspec_sz = sizeof(struct itimerspec);
569 unsigned struct_timex_sz = sizeof(struct timex);
570 unsigned struct_msqid_ds_sz = sizeof(struct msqid_ds);
571 unsigned struct_mq_attr_sz = sizeof(struct mq_attr);
572 unsigned struct_statvfs_sz = sizeof(struct statvfs);
573 unsigned struct_sigaltstack_sz = sizeof(stack_t);
575 const uptr sig_ign = (uptr)SIG_IGN;
576 const uptr sig_dfl = (uptr)SIG_DFL;
577 const uptr sig_err = (uptr)SIG_ERR;
578 const uptr sa_siginfo = (uptr)SA_SIGINFO;
580 const unsigned long __sanitizer_bufsiz = BUFSIZ;
582 int ptrace_pt_io = PT_IO;
583 int ptrace_pt_lwpinfo = PT_LWPINFO;
584 int ptrace_pt_set_event_mask = PT_SET_EVENT_MASK;
585 int ptrace_pt_get_event_mask = PT_GET_EVENT_MASK;
586 int ptrace_pt_get_process_state = PT_GET_PROCESS_STATE;
587 int ptrace_pt_set_siginfo = PT_SET_SIGINFO;
588 int ptrace_pt_get_siginfo = PT_GET_SIGINFO;
589 int ptrace_pt_lwpstatus = PT_LWPSTATUS;
590 int ptrace_pt_lwpnext = PT_LWPNEXT;
591 int ptrace_piod_read_d = PIOD_READ_D;
592 int ptrace_piod_write_d = PIOD_WRITE_D;
593 int ptrace_piod_read_i = PIOD_READ_I;
594 int ptrace_piod_write_i = PIOD_WRITE_I;
595 int ptrace_piod_read_auxv = PIOD_READ_AUXV;
597 #if defined(PT_SETREGS) && defined(PT_GETREGS)
598 int ptrace_pt_setregs = PT_SETREGS;
599 int ptrace_pt_getregs = PT_GETREGS;
600 #else
601 int ptrace_pt_setregs = -1;
602 int ptrace_pt_getregs = -1;
603 #endif
605 #if defined(PT_SETFPREGS) && defined(PT_GETFPREGS)
606 int ptrace_pt_setfpregs = PT_SETFPREGS;
607 int ptrace_pt_getfpregs = PT_GETFPREGS;
608 #else
609 int ptrace_pt_setfpregs = -1;
610 int ptrace_pt_getfpregs = -1;
611 #endif
613 #if defined(PT_SETDBREGS) && defined(PT_GETDBREGS)
614 int ptrace_pt_setdbregs = PT_SETDBREGS;
615 int ptrace_pt_getdbregs = PT_GETDBREGS;
616 #else
617 int ptrace_pt_setdbregs = -1;
618 int ptrace_pt_getdbregs = -1;
619 #endif
621 unsigned struct_ptrace_ptrace_io_desc_struct_sz = sizeof(struct ptrace_io_desc);
622 unsigned struct_ptrace_ptrace_lwpinfo_struct_sz = sizeof(struct ptrace_lwpinfo);
623 unsigned struct_ptrace_ptrace_lwpstatus_struct_sz =
624 sizeof(struct __sanitizer_ptrace_lwpstatus);
625 unsigned struct_ptrace_ptrace_event_struct_sz = sizeof(ptrace_event_t);
626 unsigned struct_ptrace_ptrace_siginfo_struct_sz = sizeof(ptrace_siginfo_t);
628 #if defined(PT_SETREGS)
629 unsigned struct_ptrace_reg_struct_sz = sizeof(struct reg);
630 #else
631 unsigned struct_ptrace_reg_struct_sz = -1;
632 #endif
634 #if defined(PT_SETFPREGS)
635 unsigned struct_ptrace_fpreg_struct_sz = sizeof(struct fpreg);
636 #else
637 unsigned struct_ptrace_fpreg_struct_sz = -1;
638 #endif
640 #if defined(PT_SETDBREGS)
641 unsigned struct_ptrace_dbreg_struct_sz = sizeof(struct dbreg);
642 #else
643 unsigned struct_ptrace_dbreg_struct_sz = -1;
644 #endif
646 int shmctl_ipc_stat = (int)IPC_STAT;
648 unsigned struct_utmp_sz = sizeof(struct utmp);
649 unsigned struct_utmpx_sz = sizeof(struct utmpx);
651 int map_fixed = MAP_FIXED;
653 int af_inet = (int)AF_INET;
654 int af_inet6 = (int)AF_INET6;
656 uptr __sanitizer_in_addr_sz(int af) {
657 if (af == AF_INET)
658 return sizeof(struct in_addr);
659 else if (af == AF_INET6)
660 return sizeof(struct in6_addr);
661 else
662 return 0;
665 unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
667 int glob_nomatch = GLOB_NOMATCH;
668 int glob_altdirfunc = GLOB_ALTDIRFUNC;
669 const int wordexp_wrde_dooffs = WRDE_DOOFFS;
671 unsigned path_max = PATH_MAX;
673 int struct_ttyent_sz = sizeof(struct ttyent);
675 struct __sanitizer_nvlist_ref_t {
676 void *buf;
677 uptr len;
678 int flags;
681 typedef __sanitizer_nvlist_ref_t nvlist_ref_t;
683 // ioctl arguments
684 unsigned struct_altqreq_sz = sizeof(altqreq);
685 unsigned struct_amr_user_ioctl_sz = sizeof(amr_user_ioctl);
686 unsigned struct_ap_control_sz = sizeof(ap_control);
687 unsigned struct_apm_ctl_sz = sizeof(apm_ctl);
688 unsigned struct_apm_event_info_sz = sizeof(apm_event_info);
689 unsigned struct_apm_power_info_sz = sizeof(apm_power_info);
690 unsigned struct_atabusiodetach_args_sz = sizeof(atabusiodetach_args);
691 unsigned struct_atabusioscan_args_sz = sizeof(atabusioscan_args);
692 unsigned struct_ath_diag_sz = sizeof(ath_diag);
693 unsigned struct_atm_flowmap_sz = sizeof(atm_flowmap);
694 unsigned struct_audio_buf_info_sz = sizeof(audio_buf_info);
695 unsigned struct_audio_device_sz = sizeof(audio_device);
696 unsigned struct_audio_encoding_sz = sizeof(audio_encoding);
697 unsigned struct_audio_info_sz = sizeof(audio_info);
698 unsigned struct_audio_offset_sz = sizeof(audio_offset);
699 unsigned struct_bio_locate_sz = sizeof(bio_locate);
700 unsigned struct_bioc_alarm_sz = sizeof(bioc_alarm);
701 unsigned struct_bioc_blink_sz = sizeof(bioc_blink);
702 unsigned struct_bioc_disk_sz = sizeof(bioc_disk);
703 unsigned struct_bioc_inq_sz = sizeof(bioc_inq);
704 unsigned struct_bioc_setstate_sz = sizeof(bioc_setstate);
705 unsigned struct_bioc_vol_sz = sizeof(bioc_vol);
706 unsigned struct_bioc_volops_sz = sizeof(bioc_volops);
707 unsigned struct_bktr_chnlset_sz = sizeof(bktr_chnlset);
708 unsigned struct_bktr_remote_sz = sizeof(bktr_remote);
709 unsigned struct_blue_conf_sz = sizeof(blue_conf);
710 unsigned struct_blue_interface_sz = sizeof(blue_interface);
711 unsigned struct_blue_stats_sz = sizeof(blue_stats);
712 unsigned struct_bpf_dltlist_sz = sizeof(bpf_dltlist);
713 unsigned struct_bpf_program_sz = sizeof(bpf_program);
714 unsigned struct_bpf_stat_old_sz = sizeof(bpf_stat_old);
715 unsigned struct_bpf_stat_sz = sizeof(bpf_stat);
716 unsigned struct_bpf_version_sz = sizeof(bpf_version);
717 unsigned struct_btreq_sz = sizeof(btreq);
718 unsigned struct_btsco_info_sz = sizeof(btsco_info);
719 unsigned struct_buffmem_desc_sz = sizeof(buffmem_desc);
720 unsigned struct_cbq_add_class_sz = sizeof(cbq_add_class);
721 unsigned struct_cbq_add_filter_sz = sizeof(cbq_add_filter);
722 unsigned struct_cbq_delete_class_sz = sizeof(cbq_delete_class);
723 unsigned struct_cbq_delete_filter_sz = sizeof(cbq_delete_filter);
724 unsigned struct_cbq_getstats_sz = sizeof(cbq_getstats);
725 unsigned struct_cbq_interface_sz = sizeof(cbq_interface);
726 unsigned struct_cbq_modify_class_sz = sizeof(cbq_modify_class);
727 unsigned struct_ccd_ioctl_sz = sizeof(ccd_ioctl);
728 unsigned struct_cdnr_add_element_sz = sizeof(cdnr_add_element);
729 unsigned struct_cdnr_add_filter_sz = sizeof(cdnr_add_filter);
730 unsigned struct_cdnr_add_tbmeter_sz = sizeof(cdnr_add_tbmeter);
731 unsigned struct_cdnr_add_trtcm_sz = sizeof(cdnr_add_trtcm);
732 unsigned struct_cdnr_add_tswtcm_sz = sizeof(cdnr_add_tswtcm);
733 unsigned struct_cdnr_delete_element_sz = sizeof(cdnr_delete_element);
734 unsigned struct_cdnr_delete_filter_sz = sizeof(cdnr_delete_filter);
735 unsigned struct_cdnr_get_stats_sz = sizeof(cdnr_get_stats);
736 unsigned struct_cdnr_interface_sz = sizeof(cdnr_interface);
737 unsigned struct_cdnr_modify_tbmeter_sz = sizeof(cdnr_modify_tbmeter);
738 unsigned struct_cdnr_modify_trtcm_sz = sizeof(cdnr_modify_trtcm);
739 unsigned struct_cdnr_modify_tswtcm_sz = sizeof(cdnr_modify_tswtcm);
740 unsigned struct_cdnr_tbmeter_stats_sz = sizeof(cdnr_tbmeter_stats);
741 unsigned struct_cdnr_tcm_stats_sz = sizeof(cdnr_tcm_stats);
742 unsigned struct_cgd_ioctl_sz = sizeof(cgd_ioctl);
743 unsigned struct_cgd_user_sz = sizeof(cgd_user);
744 unsigned struct_changer_element_status_request_sz =
745 sizeof(changer_element_status_request);
746 unsigned struct_changer_exchange_request_sz = sizeof(changer_exchange_request);
747 unsigned struct_changer_move_request_sz = sizeof(changer_move_request);
748 unsigned struct_changer_params_sz = sizeof(changer_params);
749 unsigned struct_changer_position_request_sz = sizeof(changer_position_request);
750 unsigned struct_changer_set_voltag_request_sz =
751 sizeof(changer_set_voltag_request);
752 unsigned struct_clockctl_adjtime_sz = sizeof(clockctl_adjtime);
753 unsigned struct_clockctl_clock_settime_sz = sizeof(clockctl_clock_settime);
754 unsigned struct_clockctl_ntp_adjtime_sz = sizeof(clockctl_ntp_adjtime);
755 unsigned struct_clockctl_settimeofday_sz = sizeof(clockctl_settimeofday);
756 unsigned struct_cnwistats_sz = sizeof(cnwistats);
757 unsigned struct_cnwitrail_sz = sizeof(cnwitrail);
758 unsigned struct_cnwstatus_sz = sizeof(cnwstatus);
759 unsigned struct_count_info_sz = sizeof(count_info);
760 unsigned struct_cpu_ucode_sz = sizeof(cpu_ucode);
761 unsigned struct_cpu_ucode_version_sz = sizeof(cpu_ucode_version);
762 unsigned struct_crypt_kop_sz = sizeof(crypt_kop);
763 unsigned struct_crypt_mkop_sz = sizeof(crypt_mkop);
764 unsigned struct_crypt_mop_sz = sizeof(crypt_mop);
765 unsigned struct_crypt_op_sz = sizeof(crypt_op);
766 unsigned struct_crypt_result_sz = sizeof(crypt_result);
767 unsigned struct_crypt_sfop_sz = sizeof(crypt_sfop);
768 unsigned struct_crypt_sgop_sz = sizeof(crypt_sgop);
769 unsigned struct_cryptret_sz = sizeof(cryptret);
770 unsigned struct_devdetachargs_sz = sizeof(devdetachargs);
771 unsigned struct_devlistargs_sz = sizeof(devlistargs);
772 unsigned struct_devpmargs_sz = sizeof(devpmargs);
773 unsigned struct_devrescanargs_sz = sizeof(devrescanargs);
774 unsigned struct_disk_badsecinfo_sz = sizeof(disk_badsecinfo);
775 unsigned struct_disk_strategy_sz = sizeof(disk_strategy);
776 unsigned struct_disklabel_sz = sizeof(disklabel);
777 unsigned struct_dkbad_sz = sizeof(dkbad);
778 unsigned struct_dkwedge_info_sz = sizeof(dkwedge_info);
779 unsigned struct_dkwedge_list_sz = sizeof(dkwedge_list);
780 unsigned struct_dmio_setfunc_sz = sizeof(dmio_setfunc);
781 unsigned struct_dmx_pes_filter_params_sz = sizeof(dmx_pes_filter_params);
782 unsigned struct_dmx_sct_filter_params_sz = sizeof(dmx_sct_filter_params);
783 unsigned struct_dmx_stc_sz = sizeof(dmx_stc);
784 unsigned struct_dvb_diseqc_master_cmd_sz = sizeof(dvb_diseqc_master_cmd);
785 unsigned struct_dvb_diseqc_slave_reply_sz = sizeof(dvb_diseqc_slave_reply);
786 unsigned struct_dvb_frontend_event_sz = sizeof(dvb_frontend_event);
787 unsigned struct_dvb_frontend_info_sz = sizeof(dvb_frontend_info);
788 unsigned struct_dvb_frontend_parameters_sz = sizeof(dvb_frontend_parameters);
789 unsigned struct_eccapreq_sz = sizeof(eccapreq);
790 unsigned struct_fbcmap_sz = sizeof(fbcmap);
791 unsigned struct_fbcurpos_sz = sizeof(fbcurpos);
792 unsigned struct_fbcursor_sz = sizeof(fbcursor);
793 unsigned struct_fbgattr_sz = sizeof(fbgattr);
794 unsigned struct_fbsattr_sz = sizeof(fbsattr);
795 unsigned struct_fbtype_sz = sizeof(fbtype);
796 unsigned struct_fdformat_cmd_sz = sizeof(fdformat_cmd);
797 unsigned struct_fdformat_parms_sz = sizeof(fdformat_parms);
798 unsigned struct_fifoq_conf_sz = sizeof(fifoq_conf);
799 unsigned struct_fifoq_getstats_sz = sizeof(fifoq_getstats);
800 unsigned struct_fifoq_interface_sz = sizeof(fifoq_interface);
801 unsigned struct_format_op_sz = sizeof(format_op);
802 unsigned struct_fss_get_sz = sizeof(fss_get);
803 unsigned struct_fss_set_sz = sizeof(fss_set);
804 unsigned struct_gpio_attach_sz = sizeof(gpio_attach);
805 unsigned struct_gpio_info_sz = sizeof(gpio_info);
806 unsigned struct_gpio_req_sz = sizeof(gpio_req);
807 unsigned struct_gpio_set_sz = sizeof(gpio_set);
808 unsigned struct_hfsc_add_class_sz = sizeof(hfsc_add_class);
809 unsigned struct_hfsc_add_filter_sz = sizeof(hfsc_add_filter);
810 unsigned struct_hfsc_attach_sz = sizeof(hfsc_attach);
811 unsigned struct_hfsc_class_stats_sz = sizeof(hfsc_class_stats);
812 unsigned struct_hfsc_delete_class_sz = sizeof(hfsc_delete_class);
813 unsigned struct_hfsc_delete_filter_sz = sizeof(hfsc_delete_filter);
814 unsigned struct_hfsc_interface_sz = sizeof(hfsc_interface);
815 unsigned struct_hfsc_modify_class_sz = sizeof(hfsc_modify_class);
816 unsigned struct_hpcfb_dsp_op_sz = sizeof(hpcfb_dsp_op);
817 unsigned struct_hpcfb_dspconf_sz = sizeof(hpcfb_dspconf);
818 unsigned struct_hpcfb_fbconf_sz = sizeof(hpcfb_fbconf);
819 unsigned struct_if_addrprefreq_sz = sizeof(if_addrprefreq);
820 unsigned struct_if_clonereq_sz = sizeof(if_clonereq);
821 unsigned struct_if_laddrreq_sz = sizeof(if_laddrreq);
822 unsigned struct_ifaddr_sz = sizeof(ifaddr);
823 unsigned struct_ifaliasreq_sz = sizeof(ifaliasreq);
824 unsigned struct_ifcapreq_sz = sizeof(ifcapreq);
825 unsigned struct_ifconf_sz = sizeof(ifconf);
826 unsigned struct_ifdatareq_sz = sizeof(ifdatareq);
827 unsigned struct_ifdrv_sz = sizeof(ifdrv);
828 unsigned struct_ifmediareq_sz = sizeof(ifmediareq);
829 unsigned struct_ifpppcstatsreq_sz = sizeof(ifpppcstatsreq);
830 unsigned struct_ifpppstatsreq_sz = sizeof(ifpppstatsreq);
831 unsigned struct_ifreq_sz = sizeof(ifreq);
832 unsigned struct_in6_addrpolicy_sz = sizeof(in6_addrpolicy);
833 unsigned struct_in6_ndireq_sz = sizeof(in6_ndireq);
834 unsigned struct_ioc_load_unload_sz = sizeof(ioc_load_unload);
835 unsigned struct_ioc_patch_sz = sizeof(ioc_patch);
836 unsigned struct_ioc_play_blocks_sz = sizeof(ioc_play_blocks);
837 unsigned struct_ioc_play_msf_sz = sizeof(ioc_play_msf);
838 unsigned struct_ioc_play_track_sz = sizeof(ioc_play_track);
839 unsigned struct_ioc_read_subchannel_sz = sizeof(ioc_read_subchannel);
840 unsigned struct_ioc_read_toc_entry_sz = sizeof(ioc_read_toc_entry);
841 unsigned struct_ioc_toc_header_sz = sizeof(ioc_toc_header);
842 unsigned struct_ioc_vol_sz = sizeof(ioc_vol);
843 unsigned struct_ioctl_pt_sz = sizeof(ioctl_pt);
844 unsigned struct_ioppt_sz = sizeof(ioppt);
845 unsigned struct_iovec_sz = sizeof(iovec);
846 unsigned struct_ipfobj_sz = sizeof(ipfobj);
847 unsigned struct_irda_params_sz = sizeof(irda_params);
848 unsigned struct_isp_fc_device_sz = sizeof(isp_fc_device);
849 unsigned struct_isp_fc_tsk_mgmt_sz = sizeof(isp_fc_tsk_mgmt);
850 unsigned struct_isp_hba_device_sz = sizeof(isp_hba_device);
851 unsigned struct_isv_cmd_sz = sizeof(isv_cmd);
852 unsigned struct_jobs_add_class_sz = sizeof(jobs_add_class);
853 unsigned struct_jobs_add_filter_sz = sizeof(jobs_add_filter);
854 unsigned struct_jobs_attach_sz = sizeof(jobs_attach);
855 unsigned struct_jobs_class_stats_sz = sizeof(jobs_class_stats);
856 unsigned struct_jobs_delete_class_sz = sizeof(jobs_delete_class);
857 unsigned struct_jobs_delete_filter_sz = sizeof(jobs_delete_filter);
858 unsigned struct_jobs_interface_sz = sizeof(jobs_interface);
859 unsigned struct_jobs_modify_class_sz = sizeof(jobs_modify_class);
860 unsigned struct_kbentry_sz = sizeof(kbentry);
861 unsigned struct_kfilter_mapping_sz = sizeof(kfilter_mapping);
862 unsigned struct_kiockeymap_sz = sizeof(kiockeymap);
863 unsigned struct_ksyms_gsymbol_sz = sizeof(ksyms_gsymbol);
864 unsigned struct_ksyms_gvalue_sz = sizeof(ksyms_gvalue);
865 unsigned struct_ksyms_ogsymbol_sz = sizeof(ksyms_ogsymbol);
866 unsigned struct_kttcp_io_args_sz = sizeof(kttcp_io_args);
867 unsigned struct_ltchars_sz = sizeof(ltchars);
868 unsigned struct_lua_create_sz = sizeof(struct lua_create);
869 unsigned struct_lua_info_sz = sizeof(struct lua_info);
870 unsigned struct_lua_load_sz = sizeof(struct lua_load);
871 unsigned struct_lua_require_sz = sizeof(lua_require);
872 unsigned struct_mbpp_param_sz = sizeof(mbpp_param);
873 unsigned struct_md_conf_sz = sizeof(md_conf);
874 unsigned struct_meteor_capframe_sz = sizeof(meteor_capframe);
875 unsigned struct_meteor_counts_sz = sizeof(meteor_counts);
876 unsigned struct_meteor_geomet_sz = sizeof(meteor_geomet);
877 unsigned struct_meteor_pixfmt_sz = sizeof(meteor_pixfmt);
878 unsigned struct_meteor_video_sz = sizeof(meteor_video);
879 unsigned struct_mlx_cinfo_sz = sizeof(mlx_cinfo);
880 unsigned struct_mlx_pause_sz = sizeof(mlx_pause);
881 unsigned struct_mlx_rebuild_request_sz = sizeof(mlx_rebuild_request);
882 unsigned struct_mlx_rebuild_status_sz = sizeof(mlx_rebuild_status);
883 unsigned struct_mlx_usercommand_sz = sizeof(mlx_usercommand);
884 unsigned struct_mly_user_command_sz = sizeof(mly_user_command);
885 unsigned struct_mly_user_health_sz = sizeof(mly_user_health);
886 unsigned struct_mtget_sz = sizeof(mtget);
887 unsigned struct_mtop_sz = sizeof(mtop);
888 unsigned struct_npf_ioctl_table_sz = sizeof(npf_ioctl_table);
889 unsigned struct_npioctl_sz = sizeof(npioctl);
890 unsigned struct_nvme_pt_command_sz = sizeof(nvme_pt_command);
891 unsigned struct_ochanger_element_status_request_sz =
892 sizeof(ochanger_element_status_request);
893 unsigned struct_ofiocdesc_sz = sizeof(ofiocdesc);
894 unsigned struct_okiockey_sz = sizeof(okiockey);
895 unsigned struct_ortentry_sz = sizeof(ortentry);
896 unsigned struct_oscsi_addr_sz = sizeof(oscsi_addr);
897 unsigned struct_oss_audioinfo_sz = sizeof(oss_audioinfo);
898 unsigned struct_oss_sysinfo_sz = sizeof(oss_sysinfo);
899 unsigned struct_pciio_bdf_cfgreg_sz = sizeof(pciio_bdf_cfgreg);
900 unsigned struct_pciio_businfo_sz = sizeof(pciio_businfo);
901 unsigned struct_pciio_cfgreg_sz = sizeof(pciio_cfgreg);
902 unsigned struct_pciio_drvname_sz = sizeof(pciio_drvname);
903 unsigned struct_pciio_drvnameonbus_sz = sizeof(pciio_drvnameonbus);
904 unsigned struct_pcvtid_sz = sizeof(pcvtid);
905 unsigned struct_pf_osfp_ioctl_sz = sizeof(pf_osfp_ioctl);
906 unsigned struct_pf_status_sz = sizeof(pf_status);
907 unsigned struct_pfioc_altq_sz = sizeof(pfioc_altq);
908 unsigned struct_pfioc_if_sz = sizeof(pfioc_if);
909 unsigned struct_pfioc_iface_sz = sizeof(pfioc_iface);
910 unsigned struct_pfioc_limit_sz = sizeof(pfioc_limit);
911 unsigned struct_pfioc_natlook_sz = sizeof(pfioc_natlook);
912 unsigned struct_pfioc_pooladdr_sz = sizeof(pfioc_pooladdr);
913 unsigned struct_pfioc_qstats_sz = sizeof(pfioc_qstats);
914 unsigned struct_pfioc_rule_sz = sizeof(pfioc_rule);
915 unsigned struct_pfioc_ruleset_sz = sizeof(pfioc_ruleset);
916 unsigned struct_pfioc_src_node_kill_sz = sizeof(pfioc_src_node_kill);
917 unsigned struct_pfioc_src_nodes_sz = sizeof(pfioc_src_nodes);
918 unsigned struct_pfioc_state_kill_sz = sizeof(pfioc_state_kill);
919 unsigned struct_pfioc_state_sz = sizeof(pfioc_state);
920 unsigned struct_pfioc_states_sz = sizeof(pfioc_states);
921 unsigned struct_pfioc_table_sz = sizeof(pfioc_table);
922 unsigned struct_pfioc_tm_sz = sizeof(pfioc_tm);
923 unsigned struct_pfioc_trans_sz = sizeof(pfioc_trans);
924 unsigned struct_plistref_sz = sizeof(plistref);
925 unsigned struct_power_type_sz = sizeof(power_type);
926 unsigned struct_ppp_idle_sz = sizeof(ppp_idle);
927 unsigned struct_ppp_option_data_sz = sizeof(ppp_option_data);
928 unsigned struct_ppp_rawin_sz = sizeof(ppp_rawin);
929 unsigned struct_pppoeconnectionstate_sz = sizeof(pppoeconnectionstate);
930 unsigned struct_pppoediscparms_sz = sizeof(pppoediscparms);
931 unsigned struct_priq_add_class_sz = sizeof(priq_add_class);
932 unsigned struct_priq_add_filter_sz = sizeof(priq_add_filter);
933 unsigned struct_priq_class_stats_sz = sizeof(priq_class_stats);
934 unsigned struct_priq_delete_class_sz = sizeof(priq_delete_class);
935 unsigned struct_priq_delete_filter_sz = sizeof(priq_delete_filter);
936 unsigned struct_priq_interface_sz = sizeof(priq_interface);
937 unsigned struct_priq_modify_class_sz = sizeof(priq_modify_class);
938 unsigned struct_ptmget_sz = sizeof(ptmget);
939 unsigned struct_radio_info_sz = sizeof(radio_info);
940 unsigned struct_red_conf_sz = sizeof(red_conf);
941 unsigned struct_red_interface_sz = sizeof(red_interface);
942 unsigned struct_red_stats_sz = sizeof(red_stats);
943 unsigned struct_redparams_sz = sizeof(redparams);
944 unsigned struct_rf_pmparams_sz = sizeof(rf_pmparams);
945 unsigned struct_rf_pmstat_sz = sizeof(rf_pmstat);
946 unsigned struct_rf_recon_req_sz = sizeof(rf_recon_req);
947 unsigned struct_rio_conf_sz = sizeof(rio_conf);
948 unsigned struct_rio_interface_sz = sizeof(rio_interface);
949 unsigned struct_rio_stats_sz = sizeof(rio_stats);
950 unsigned struct_scan_io_sz = sizeof(scan_io);
951 unsigned struct_scbusaccel_args_sz = sizeof(scbusaccel_args);
952 unsigned struct_scbusiodetach_args_sz = sizeof(scbusiodetach_args);
953 unsigned struct_scbusioscan_args_sz = sizeof(scbusioscan_args);
954 unsigned struct_scsi_addr_sz = sizeof(scsi_addr);
955 unsigned struct_seq_event_rec_sz = sizeof(seq_event_rec);
956 unsigned struct_session_op_sz = sizeof(session_op);
957 unsigned struct_sgttyb_sz = sizeof(sgttyb);
958 unsigned struct_sioc_sg_req_sz = sizeof(sioc_sg_req);
959 unsigned struct_sioc_vif_req_sz = sizeof(sioc_vif_req);
960 unsigned struct_smbioc_flags_sz = sizeof(smbioc_flags);
961 unsigned struct_smbioc_lookup_sz = sizeof(smbioc_lookup);
962 unsigned struct_smbioc_oshare_sz = sizeof(smbioc_oshare);
963 unsigned struct_smbioc_ossn_sz = sizeof(smbioc_ossn);
964 unsigned struct_smbioc_rq_sz = sizeof(smbioc_rq);
965 unsigned struct_smbioc_rw_sz = sizeof(smbioc_rw);
966 unsigned struct_spppauthcfg_sz = sizeof(spppauthcfg);
967 unsigned struct_spppauthfailuresettings_sz = sizeof(spppauthfailuresettings);
968 unsigned struct_spppauthfailurestats_sz = sizeof(spppauthfailurestats);
969 unsigned struct_spppdnsaddrs_sz = sizeof(spppdnsaddrs);
970 unsigned struct_spppdnssettings_sz = sizeof(spppdnssettings);
971 unsigned struct_spppidletimeout_sz = sizeof(spppidletimeout);
972 unsigned struct_spppkeepalivesettings_sz = sizeof(spppkeepalivesettings);
973 unsigned struct_sppplcpcfg_sz = sizeof(sppplcpcfg);
974 unsigned struct_spppstatus_sz = sizeof(spppstatus);
975 unsigned struct_spppstatusncp_sz = sizeof(spppstatusncp);
976 unsigned struct_srt_rt_sz = sizeof(srt_rt);
977 unsigned struct_stic_xinfo_sz = sizeof(stic_xinfo);
978 unsigned struct_sun_dkctlr_sz = sizeof(sun_dkctlr);
979 unsigned struct_sun_dkgeom_sz = sizeof(sun_dkgeom);
980 unsigned struct_sun_dkpart_sz = sizeof(sun_dkpart);
981 unsigned struct_synth_info_sz = sizeof(synth_info);
982 unsigned struct_tbrreq_sz = sizeof(tbrreq);
983 unsigned struct_tchars_sz = sizeof(tchars);
984 unsigned struct_termios_sz = sizeof(termios);
985 unsigned struct_timeval_sz = sizeof(timeval);
986 unsigned struct_twe_drivecommand_sz = sizeof(twe_drivecommand);
987 unsigned struct_twe_paramcommand_sz = sizeof(twe_paramcommand);
988 unsigned struct_twe_usercommand_sz = sizeof(twe_usercommand);
989 unsigned struct_ukyopon_identify_sz = sizeof(ukyopon_identify);
990 unsigned struct_urio_command_sz = sizeof(urio_command);
991 unsigned struct_usb_alt_interface_sz = sizeof(usb_alt_interface);
992 unsigned struct_usb_bulk_ra_wb_opt_sz = sizeof(usb_bulk_ra_wb_opt);
993 unsigned struct_usb_config_desc_sz = sizeof(usb_config_desc);
994 unsigned struct_usb_ctl_report_desc_sz = sizeof(usb_ctl_report_desc);
995 unsigned struct_usb_ctl_report_sz = sizeof(usb_ctl_report);
996 unsigned struct_usb_ctl_request_sz = sizeof(usb_ctl_request);
997 #if defined(__x86_64__)
998 unsigned struct_nvmm_ioc_capability_sz = sizeof(nvmm_ioc_capability);
999 unsigned struct_nvmm_ioc_machine_create_sz = sizeof(nvmm_ioc_machine_create);
1000 unsigned struct_nvmm_ioc_machine_destroy_sz = sizeof(nvmm_ioc_machine_destroy);
1001 unsigned struct_nvmm_ioc_machine_configure_sz =
1002 sizeof(nvmm_ioc_machine_configure);
1003 unsigned struct_nvmm_ioc_vcpu_create_sz = sizeof(nvmm_ioc_vcpu_create);
1004 unsigned struct_nvmm_ioc_vcpu_destroy_sz = sizeof(nvmm_ioc_vcpu_destroy);
1005 unsigned struct_nvmm_ioc_vcpu_configure_sz = sizeof(nvmm_ioc_vcpu_configure);
1006 unsigned struct_nvmm_ioc_vcpu_setstate_sz = sizeof(nvmm_ioc_vcpu_destroy);
1007 unsigned struct_nvmm_ioc_vcpu_getstate_sz = sizeof(nvmm_ioc_vcpu_getstate);
1008 unsigned struct_nvmm_ioc_vcpu_inject_sz = sizeof(nvmm_ioc_vcpu_inject);
1009 unsigned struct_nvmm_ioc_vcpu_run_sz = sizeof(nvmm_ioc_vcpu_run);
1010 unsigned struct_nvmm_ioc_gpa_map_sz = sizeof(nvmm_ioc_gpa_map);
1011 unsigned struct_nvmm_ioc_gpa_unmap_sz = sizeof(nvmm_ioc_gpa_unmap);
1012 unsigned struct_nvmm_ioc_hva_map_sz = sizeof(nvmm_ioc_hva_map);
1013 unsigned struct_nvmm_ioc_hva_unmap_sz = sizeof(nvmm_ioc_hva_unmap);
1014 unsigned struct_nvmm_ioc_ctl_sz = sizeof(nvmm_ioc_ctl);
1015 #endif
1016 unsigned struct_spi_ioctl_configure_sz = sizeof(spi_ioctl_configure);
1017 unsigned struct_spi_ioctl_transfer_sz = sizeof(spi_ioctl_transfer);
1018 unsigned struct_autofs_daemon_request_sz = sizeof(autofs_daemon_request);
1019 unsigned struct_autofs_daemon_done_sz = sizeof(autofs_daemon_done);
1020 unsigned struct_sctp_connectx_addrs_sz = sizeof(sctp_connectx_addrs);
1021 unsigned struct_usb_device_info_old_sz = sizeof(usb_device_info_old);
1022 unsigned struct_usb_device_info_sz = sizeof(usb_device_info);
1023 unsigned struct_usb_device_stats_sz = sizeof(usb_device_stats);
1024 unsigned struct_usb_endpoint_desc_sz = sizeof(usb_endpoint_desc);
1025 unsigned struct_usb_full_desc_sz = sizeof(usb_full_desc);
1026 unsigned struct_usb_interface_desc_sz = sizeof(usb_interface_desc);
1027 unsigned struct_usb_string_desc_sz = sizeof(usb_string_desc);
1028 unsigned struct_utoppy_readfile_sz = sizeof(utoppy_readfile);
1029 unsigned struct_utoppy_rename_sz = sizeof(utoppy_rename);
1030 unsigned struct_utoppy_stats_sz = sizeof(utoppy_stats);
1031 unsigned struct_utoppy_writefile_sz = sizeof(utoppy_writefile);
1032 unsigned struct_v4l2_audio_sz = sizeof(v4l2_audio);
1033 unsigned struct_v4l2_audioout_sz = sizeof(v4l2_audioout);
1034 unsigned struct_v4l2_buffer_sz = sizeof(v4l2_buffer);
1035 unsigned struct_v4l2_capability_sz = sizeof(v4l2_capability);
1036 unsigned struct_v4l2_control_sz = sizeof(v4l2_control);
1037 unsigned struct_v4l2_crop_sz = sizeof(v4l2_crop);
1038 unsigned struct_v4l2_cropcap_sz = sizeof(v4l2_cropcap);
1039 unsigned struct_v4l2_fmtdesc_sz = sizeof(v4l2_fmtdesc);
1040 unsigned struct_v4l2_format_sz = sizeof(v4l2_format);
1041 unsigned struct_v4l2_framebuffer_sz = sizeof(v4l2_framebuffer);
1042 unsigned struct_v4l2_frequency_sz = sizeof(v4l2_frequency);
1043 unsigned struct_v4l2_frmivalenum_sz = sizeof(v4l2_frmivalenum);
1044 unsigned struct_v4l2_frmsizeenum_sz = sizeof(v4l2_frmsizeenum);
1045 unsigned struct_v4l2_input_sz = sizeof(v4l2_input);
1046 unsigned struct_v4l2_jpegcompression_sz = sizeof(v4l2_jpegcompression);
1047 unsigned struct_v4l2_modulator_sz = sizeof(v4l2_modulator);
1048 unsigned struct_v4l2_output_sz = sizeof(v4l2_output);
1049 unsigned struct_v4l2_queryctrl_sz = sizeof(v4l2_queryctrl);
1050 unsigned struct_v4l2_querymenu_sz = sizeof(v4l2_querymenu);
1051 unsigned struct_v4l2_requestbuffers_sz = sizeof(v4l2_requestbuffers);
1052 unsigned struct_v4l2_standard_sz = sizeof(v4l2_standard);
1053 unsigned struct_v4l2_streamparm_sz = sizeof(v4l2_streamparm);
1054 unsigned struct_v4l2_tuner_sz = sizeof(v4l2_tuner);
1055 unsigned struct_vnd_ioctl_sz = sizeof(vnd_ioctl);
1056 unsigned struct_vnd_user_sz = sizeof(vnd_user);
1057 unsigned struct_vt_stat_sz = sizeof(vt_stat);
1058 unsigned struct_wdog_conf_sz = sizeof(wdog_conf);
1059 unsigned struct_wdog_mode_sz = sizeof(wdog_mode);
1060 unsigned struct_ipmi_recv_sz = sizeof(ipmi_recv);
1061 unsigned struct_ipmi_req_sz = sizeof(ipmi_req);
1062 unsigned struct_ipmi_cmdspec_sz = sizeof(ipmi_cmdspec);
1063 unsigned struct_wfq_conf_sz = sizeof(wfq_conf);
1064 unsigned struct_wfq_getqid_sz = sizeof(wfq_getqid);
1065 unsigned struct_wfq_getstats_sz = sizeof(wfq_getstats);
1066 unsigned struct_wfq_interface_sz = sizeof(wfq_interface);
1067 unsigned struct_wfq_setweight_sz = sizeof(wfq_setweight);
1068 unsigned struct_winsize_sz = sizeof(winsize);
1069 unsigned struct_wscons_event_sz = sizeof(wscons_event);
1070 unsigned struct_wsdisplay_addscreendata_sz = sizeof(wsdisplay_addscreendata);
1071 unsigned struct_wsdisplay_char_sz = sizeof(wsdisplay_char);
1072 unsigned struct_wsdisplay_cmap_sz = sizeof(wsdisplay_cmap);
1073 unsigned struct_wsdisplay_curpos_sz = sizeof(wsdisplay_curpos);
1074 unsigned struct_wsdisplay_cursor_sz = sizeof(wsdisplay_cursor);
1075 unsigned struct_wsdisplay_delscreendata_sz = sizeof(wsdisplay_delscreendata);
1076 unsigned struct_wsdisplay_fbinfo_sz = sizeof(wsdisplay_fbinfo);
1077 unsigned struct_wsdisplay_font_sz = sizeof(wsdisplay_font);
1078 unsigned struct_wsdisplay_kbddata_sz = sizeof(wsdisplay_kbddata);
1079 unsigned struct_wsdisplay_msgattrs_sz = sizeof(wsdisplay_msgattrs);
1080 unsigned struct_wsdisplay_param_sz = sizeof(wsdisplay_param);
1081 unsigned struct_wsdisplay_scroll_data_sz = sizeof(wsdisplay_scroll_data);
1082 unsigned struct_wsdisplay_usefontdata_sz = sizeof(wsdisplay_usefontdata);
1083 unsigned struct_wsdisplayio_blit_sz = sizeof(wsdisplayio_blit);
1084 unsigned struct_wsdisplayio_bus_id_sz = sizeof(wsdisplayio_bus_id);
1085 unsigned struct_wsdisplayio_edid_info_sz = sizeof(wsdisplayio_edid_info);
1086 unsigned struct_wsdisplayio_fbinfo_sz = sizeof(wsdisplayio_fbinfo);
1087 unsigned struct_wskbd_bell_data_sz = sizeof(wskbd_bell_data);
1088 unsigned struct_wskbd_keyrepeat_data_sz = sizeof(wskbd_keyrepeat_data);
1089 unsigned struct_wskbd_map_data_sz = sizeof(wskbd_map_data);
1090 unsigned struct_wskbd_scroll_data_sz = sizeof(wskbd_scroll_data);
1091 unsigned struct_wsmouse_calibcoords_sz = sizeof(wsmouse_calibcoords);
1092 unsigned struct_wsmouse_id_sz = sizeof(wsmouse_id);
1093 unsigned struct_wsmouse_repeat_sz = sizeof(wsmouse_repeat);
1094 unsigned struct_wsmux_device_list_sz = sizeof(wsmux_device_list);
1095 unsigned struct_wsmux_device_sz = sizeof(wsmux_device);
1096 unsigned struct_xd_iocmd_sz = sizeof(xd_iocmd);
1098 unsigned struct_scsireq_sz = sizeof(struct scsireq);
1099 unsigned struct_tone_sz = sizeof(tone_t);
1100 unsigned union_twe_statrequest_sz = sizeof(union twe_statrequest);
1101 unsigned struct_usb_device_descriptor_sz = sizeof(usb_device_descriptor_t);
1102 unsigned struct_vt_mode_sz = sizeof(struct vt_mode);
1103 unsigned struct__old_mixer_info_sz = sizeof(struct _old_mixer_info);
1104 unsigned struct__agp_allocate_sz = sizeof(struct _agp_allocate);
1105 unsigned struct__agp_bind_sz = sizeof(struct _agp_bind);
1106 unsigned struct__agp_info_sz = sizeof(struct _agp_info);
1107 unsigned struct__agp_setup_sz = sizeof(struct _agp_setup);
1108 unsigned struct__agp_unbind_sz = sizeof(struct _agp_unbind);
1109 unsigned struct_atareq_sz = sizeof(struct atareq);
1110 unsigned struct_cpustate_sz = sizeof(struct cpustate);
1111 unsigned struct_dmx_caps_sz = sizeof(struct dmx_caps);
1112 unsigned enum_dmx_source_sz = sizeof(dmx_source_t);
1113 unsigned union_dvd_authinfo_sz = sizeof(dvd_authinfo);
1114 unsigned union_dvd_struct_sz = sizeof(dvd_struct);
1115 unsigned enum_v4l2_priority_sz = sizeof(enum v4l2_priority);
1116 unsigned struct_envsys_basic_info_sz = sizeof(struct envsys_basic_info);
1117 unsigned struct_envsys_tre_data_sz = sizeof(struct envsys_tre_data);
1118 unsigned enum_fe_sec_mini_cmd_sz = sizeof(enum fe_sec_mini_cmd);
1119 unsigned enum_fe_sec_tone_mode_sz = sizeof(enum fe_sec_tone_mode);
1120 unsigned enum_fe_sec_voltage_sz = sizeof(enum fe_sec_voltage);
1121 unsigned enum_fe_status_sz = sizeof(enum fe_status);
1122 unsigned struct_gdt_ctrt_sz = sizeof(struct gdt_ctrt);
1123 unsigned struct_gdt_event_sz = sizeof(struct gdt_event);
1124 unsigned struct_gdt_osv_sz = sizeof(struct gdt_osv);
1125 unsigned struct_gdt_rescan_sz = sizeof(struct gdt_rescan);
1126 unsigned struct_gdt_statist_sz = sizeof(struct gdt_statist);
1127 unsigned struct_gdt_ucmd_sz = sizeof(struct gdt_ucmd);
1128 unsigned struct_iscsi_conn_status_parameters_sz =
1129 sizeof(iscsi_conn_status_parameters_t);
1130 unsigned struct_iscsi_get_version_parameters_sz =
1131 sizeof(iscsi_get_version_parameters_t);
1132 unsigned struct_iscsi_iocommand_parameters_sz =
1133 sizeof(iscsi_iocommand_parameters_t);
1134 unsigned struct_iscsi_login_parameters_sz = sizeof(iscsi_login_parameters_t);
1135 unsigned struct_iscsi_logout_parameters_sz = sizeof(iscsi_logout_parameters_t);
1136 unsigned struct_iscsi_register_event_parameters_sz =
1137 sizeof(iscsi_register_event_parameters_t);
1138 unsigned struct_iscsi_remove_parameters_sz = sizeof(iscsi_remove_parameters_t);
1139 unsigned struct_iscsi_send_targets_parameters_sz =
1140 sizeof(iscsi_send_targets_parameters_t);
1141 unsigned struct_iscsi_set_node_name_parameters_sz =
1142 sizeof(iscsi_set_node_name_parameters_t);
1143 unsigned struct_iscsi_wait_event_parameters_sz =
1144 sizeof(iscsi_wait_event_parameters_t);
1145 unsigned struct_isp_stats_sz = sizeof(isp_stats_t);
1146 unsigned struct_lsenable_sz = sizeof(struct lsenable);
1147 unsigned struct_lsdisable_sz = sizeof(struct lsdisable);
1148 unsigned struct_audio_format_query_sz = sizeof(audio_format_query);
1149 unsigned struct_mixer_ctrl_sz = sizeof(struct mixer_ctrl);
1150 unsigned struct_mixer_devinfo_sz = sizeof(struct mixer_devinfo);
1151 unsigned struct_mpu_command_rec_sz = sizeof(mpu_command_rec);
1152 unsigned struct_rndstat_sz = sizeof(rndstat_t);
1153 unsigned struct_rndstat_name_sz = sizeof(rndstat_name_t);
1154 unsigned struct_rndctl_sz = sizeof(rndctl_t);
1155 unsigned struct_rnddata_sz = sizeof(rnddata_t);
1156 unsigned struct_rndpoolstat_sz = sizeof(rndpoolstat_t);
1157 unsigned struct_rndstat_est_sz = sizeof(rndstat_est_t);
1158 unsigned struct_rndstat_est_name_sz = sizeof(rndstat_est_name_t);
1159 unsigned struct_pps_params_sz = sizeof(pps_params_t);
1160 unsigned struct_pps_info_sz = sizeof(pps_info_t);
1161 unsigned struct_mixer_info_sz = sizeof(struct mixer_info);
1162 unsigned struct_RF_SparetWait_sz = sizeof(RF_SparetWait_t);
1163 unsigned struct_RF_ComponentLabel_sz = sizeof(RF_ComponentLabel_t);
1164 unsigned struct_RF_SingleComponent_sz = sizeof(RF_SingleComponent_t);
1165 unsigned struct_RF_ProgressInfo_sz = sizeof(RF_ProgressInfo_t);
1166 unsigned struct_nvlist_ref_sz = sizeof(struct __sanitizer_nvlist_ref_t);
1167 unsigned struct_StringList_sz = sizeof(StringList);
1169 const unsigned IOCTL_NOT_PRESENT = 0;
1171 unsigned IOCTL_AFM_ADDFMAP = AFM_ADDFMAP;
1172 unsigned IOCTL_AFM_DELFMAP = AFM_DELFMAP;
1173 unsigned IOCTL_AFM_CLEANFMAP = AFM_CLEANFMAP;
1174 unsigned IOCTL_AFM_GETFMAP = AFM_GETFMAP;
1175 unsigned IOCTL_ALTQGTYPE = ALTQGTYPE;
1176 unsigned IOCTL_ALTQTBRSET = ALTQTBRSET;
1177 unsigned IOCTL_ALTQTBRGET = ALTQTBRGET;
1178 unsigned IOCTL_BLUE_IF_ATTACH = BLUE_IF_ATTACH;
1179 unsigned IOCTL_BLUE_IF_DETACH = BLUE_IF_DETACH;
1180 unsigned IOCTL_BLUE_ENABLE = BLUE_ENABLE;
1181 unsigned IOCTL_BLUE_DISABLE = BLUE_DISABLE;
1182 unsigned IOCTL_BLUE_CONFIG = BLUE_CONFIG;
1183 unsigned IOCTL_BLUE_GETSTATS = BLUE_GETSTATS;
1184 unsigned IOCTL_CBQ_IF_ATTACH = CBQ_IF_ATTACH;
1185 unsigned IOCTL_CBQ_IF_DETACH = CBQ_IF_DETACH;
1186 unsigned IOCTL_CBQ_ENABLE = CBQ_ENABLE;
1187 unsigned IOCTL_CBQ_DISABLE = CBQ_DISABLE;
1188 unsigned IOCTL_CBQ_CLEAR_HIERARCHY = CBQ_CLEAR_HIERARCHY;
1189 unsigned IOCTL_CBQ_ADD_CLASS = CBQ_ADD_CLASS;
1190 unsigned IOCTL_CBQ_DEL_CLASS = CBQ_DEL_CLASS;
1191 unsigned IOCTL_CBQ_MODIFY_CLASS = CBQ_MODIFY_CLASS;
1192 unsigned IOCTL_CBQ_ADD_FILTER = CBQ_ADD_FILTER;
1193 unsigned IOCTL_CBQ_DEL_FILTER = CBQ_DEL_FILTER;
1194 unsigned IOCTL_CBQ_GETSTATS = CBQ_GETSTATS;
1195 unsigned IOCTL_CDNR_IF_ATTACH = CDNR_IF_ATTACH;
1196 unsigned IOCTL_CDNR_IF_DETACH = CDNR_IF_DETACH;
1197 unsigned IOCTL_CDNR_ENABLE = CDNR_ENABLE;
1198 unsigned IOCTL_CDNR_DISABLE = CDNR_DISABLE;
1199 unsigned IOCTL_CDNR_ADD_FILTER = CDNR_ADD_FILTER;
1200 unsigned IOCTL_CDNR_DEL_FILTER = CDNR_DEL_FILTER;
1201 unsigned IOCTL_CDNR_GETSTATS = CDNR_GETSTATS;
1202 unsigned IOCTL_CDNR_ADD_ELEM = CDNR_ADD_ELEM;
1203 unsigned IOCTL_CDNR_DEL_ELEM = CDNR_DEL_ELEM;
1204 unsigned IOCTL_CDNR_ADD_TBM = CDNR_ADD_TBM;
1205 unsigned IOCTL_CDNR_MOD_TBM = CDNR_MOD_TBM;
1206 unsigned IOCTL_CDNR_TBM_STATS = CDNR_TBM_STATS;
1207 unsigned IOCTL_CDNR_ADD_TCM = CDNR_ADD_TCM;
1208 unsigned IOCTL_CDNR_MOD_TCM = CDNR_MOD_TCM;
1209 unsigned IOCTL_CDNR_TCM_STATS = CDNR_TCM_STATS;
1210 unsigned IOCTL_CDNR_ADD_TSW = CDNR_ADD_TSW;
1211 unsigned IOCTL_CDNR_MOD_TSW = CDNR_MOD_TSW;
1212 unsigned IOCTL_FIFOQ_IF_ATTACH = FIFOQ_IF_ATTACH;
1213 unsigned IOCTL_FIFOQ_IF_DETACH = FIFOQ_IF_DETACH;
1214 unsigned IOCTL_FIFOQ_ENABLE = FIFOQ_ENABLE;
1215 unsigned IOCTL_FIFOQ_DISABLE = FIFOQ_DISABLE;
1216 unsigned IOCTL_FIFOQ_CONFIG = FIFOQ_CONFIG;
1217 unsigned IOCTL_FIFOQ_GETSTATS = FIFOQ_GETSTATS;
1218 unsigned IOCTL_HFSC_IF_ATTACH = HFSC_IF_ATTACH;
1219 unsigned IOCTL_HFSC_IF_DETACH = HFSC_IF_DETACH;
1220 unsigned IOCTL_HFSC_ENABLE = HFSC_ENABLE;
1221 unsigned IOCTL_HFSC_DISABLE = HFSC_DISABLE;
1222 unsigned IOCTL_HFSC_CLEAR_HIERARCHY = HFSC_CLEAR_HIERARCHY;
1223 unsigned IOCTL_HFSC_ADD_CLASS = HFSC_ADD_CLASS;
1224 unsigned IOCTL_HFSC_DEL_CLASS = HFSC_DEL_CLASS;
1225 unsigned IOCTL_HFSC_MOD_CLASS = HFSC_MOD_CLASS;
1226 unsigned IOCTL_HFSC_ADD_FILTER = HFSC_ADD_FILTER;
1227 unsigned IOCTL_HFSC_DEL_FILTER = HFSC_DEL_FILTER;
1228 unsigned IOCTL_HFSC_GETSTATS = HFSC_GETSTATS;
1229 unsigned IOCTL_JOBS_IF_ATTACH = JOBS_IF_ATTACH;
1230 unsigned IOCTL_JOBS_IF_DETACH = JOBS_IF_DETACH;
1231 unsigned IOCTL_JOBS_ENABLE = JOBS_ENABLE;
1232 unsigned IOCTL_JOBS_DISABLE = JOBS_DISABLE;
1233 unsigned IOCTL_JOBS_CLEAR = JOBS_CLEAR;
1234 unsigned IOCTL_JOBS_ADD_CLASS = JOBS_ADD_CLASS;
1235 unsigned IOCTL_JOBS_DEL_CLASS = JOBS_DEL_CLASS;
1236 unsigned IOCTL_JOBS_MOD_CLASS = JOBS_MOD_CLASS;
1237 unsigned IOCTL_JOBS_ADD_FILTER = JOBS_ADD_FILTER;
1238 unsigned IOCTL_JOBS_DEL_FILTER = JOBS_DEL_FILTER;
1239 unsigned IOCTL_JOBS_GETSTATS = JOBS_GETSTATS;
1240 unsigned IOCTL_PRIQ_IF_ATTACH = PRIQ_IF_ATTACH;
1241 unsigned IOCTL_PRIQ_IF_DETACH = PRIQ_IF_DETACH;
1242 unsigned IOCTL_PRIQ_ENABLE = PRIQ_ENABLE;
1243 unsigned IOCTL_PRIQ_DISABLE = PRIQ_DISABLE;
1244 unsigned IOCTL_PRIQ_CLEAR = PRIQ_CLEAR;
1245 unsigned IOCTL_PRIQ_ADD_CLASS = PRIQ_ADD_CLASS;
1246 unsigned IOCTL_PRIQ_DEL_CLASS = PRIQ_DEL_CLASS;
1247 unsigned IOCTL_PRIQ_MOD_CLASS = PRIQ_MOD_CLASS;
1248 unsigned IOCTL_PRIQ_ADD_FILTER = PRIQ_ADD_FILTER;
1249 unsigned IOCTL_PRIQ_DEL_FILTER = PRIQ_DEL_FILTER;
1250 unsigned IOCTL_PRIQ_GETSTATS = PRIQ_GETSTATS;
1251 unsigned IOCTL_RED_IF_ATTACH = RED_IF_ATTACH;
1252 unsigned IOCTL_RED_IF_DETACH = RED_IF_DETACH;
1253 unsigned IOCTL_RED_ENABLE = RED_ENABLE;
1254 unsigned IOCTL_RED_DISABLE = RED_DISABLE;
1255 unsigned IOCTL_RED_CONFIG = RED_CONFIG;
1256 unsigned IOCTL_RED_GETSTATS = RED_GETSTATS;
1257 unsigned IOCTL_RED_SETDEFAULTS = RED_SETDEFAULTS;
1258 unsigned IOCTL_RIO_IF_ATTACH = RIO_IF_ATTACH;
1259 unsigned IOCTL_RIO_IF_DETACH = RIO_IF_DETACH;
1260 unsigned IOCTL_RIO_ENABLE = RIO_ENABLE;
1261 unsigned IOCTL_RIO_DISABLE = RIO_DISABLE;
1262 unsigned IOCTL_RIO_CONFIG = RIO_CONFIG;
1263 unsigned IOCTL_RIO_GETSTATS = RIO_GETSTATS;
1264 unsigned IOCTL_RIO_SETDEFAULTS = RIO_SETDEFAULTS;
1265 unsigned IOCTL_WFQ_IF_ATTACH = WFQ_IF_ATTACH;
1266 unsigned IOCTL_WFQ_IF_DETACH = WFQ_IF_DETACH;
1267 unsigned IOCTL_WFQ_ENABLE = WFQ_ENABLE;
1268 unsigned IOCTL_WFQ_DISABLE = WFQ_DISABLE;
1269 unsigned IOCTL_WFQ_CONFIG = WFQ_CONFIG;
1270 unsigned IOCTL_WFQ_GET_STATS = WFQ_GET_STATS;
1271 unsigned IOCTL_WFQ_GET_QID = WFQ_GET_QID;
1272 unsigned IOCTL_WFQ_SET_WEIGHT = WFQ_SET_WEIGHT;
1273 unsigned IOCTL_CRIOGET = CRIOGET;
1274 unsigned IOCTL_CIOCFSESSION = CIOCFSESSION;
1275 unsigned IOCTL_CIOCKEY = CIOCKEY;
1276 unsigned IOCTL_CIOCNFKEYM = CIOCNFKEYM;
1277 unsigned IOCTL_CIOCNFSESSION = CIOCNFSESSION;
1278 unsigned IOCTL_CIOCNCRYPTRETM = CIOCNCRYPTRETM;
1279 unsigned IOCTL_CIOCNCRYPTRET = CIOCNCRYPTRET;
1280 unsigned IOCTL_CIOCGSESSION = CIOCGSESSION;
1281 unsigned IOCTL_CIOCNGSESSION = CIOCNGSESSION;
1282 unsigned IOCTL_CIOCCRYPT = CIOCCRYPT;
1283 unsigned IOCTL_CIOCNCRYPTM = CIOCNCRYPTM;
1284 unsigned IOCTL_CIOCASYMFEAT = CIOCASYMFEAT;
1285 unsigned IOCTL_APM_IOC_REJECT = APM_IOC_REJECT;
1286 unsigned IOCTL_APM_IOC_STANDBY = APM_IOC_STANDBY;
1287 unsigned IOCTL_APM_IOC_SUSPEND = APM_IOC_SUSPEND;
1288 unsigned IOCTL_OAPM_IOC_GETPOWER = OAPM_IOC_GETPOWER;
1289 unsigned IOCTL_APM_IOC_GETPOWER = APM_IOC_GETPOWER;
1290 unsigned IOCTL_APM_IOC_NEXTEVENT = APM_IOC_NEXTEVENT;
1291 unsigned IOCTL_APM_IOC_DEV_CTL = APM_IOC_DEV_CTL;
1292 unsigned IOCTL_NETBSD_DM_IOCTL = NETBSD_DM_IOCTL;
1293 unsigned IOCTL_DMIO_SETFUNC = DMIO_SETFUNC;
1294 unsigned IOCTL_DMX_START = DMX_START;
1295 unsigned IOCTL_DMX_STOP = DMX_STOP;
1296 unsigned IOCTL_DMX_SET_FILTER = DMX_SET_FILTER;
1297 unsigned IOCTL_DMX_SET_PES_FILTER = DMX_SET_PES_FILTER;
1298 unsigned IOCTL_DMX_SET_BUFFER_SIZE = DMX_SET_BUFFER_SIZE;
1299 unsigned IOCTL_DMX_GET_STC = DMX_GET_STC;
1300 unsigned IOCTL_DMX_ADD_PID = DMX_ADD_PID;
1301 unsigned IOCTL_DMX_REMOVE_PID = DMX_REMOVE_PID;
1302 unsigned IOCTL_DMX_GET_CAPS = DMX_GET_CAPS;
1303 unsigned IOCTL_DMX_SET_SOURCE = DMX_SET_SOURCE;
1304 unsigned IOCTL_FE_READ_STATUS = FE_READ_STATUS;
1305 unsigned IOCTL_FE_READ_BER = FE_READ_BER;
1306 unsigned IOCTL_FE_READ_SNR = FE_READ_SNR;
1307 unsigned IOCTL_FE_READ_SIGNAL_STRENGTH = FE_READ_SIGNAL_STRENGTH;
1308 unsigned IOCTL_FE_READ_UNCORRECTED_BLOCKS = FE_READ_UNCORRECTED_BLOCKS;
1309 unsigned IOCTL_FE_SET_FRONTEND = FE_SET_FRONTEND;
1310 unsigned IOCTL_FE_GET_FRONTEND = FE_GET_FRONTEND;
1311 unsigned IOCTL_FE_GET_EVENT = FE_GET_EVENT;
1312 unsigned IOCTL_FE_GET_INFO = FE_GET_INFO;
1313 unsigned IOCTL_FE_DISEQC_RESET_OVERLOAD = FE_DISEQC_RESET_OVERLOAD;
1314 unsigned IOCTL_FE_DISEQC_SEND_MASTER_CMD = FE_DISEQC_SEND_MASTER_CMD;
1315 unsigned IOCTL_FE_DISEQC_RECV_SLAVE_REPLY = FE_DISEQC_RECV_SLAVE_REPLY;
1316 unsigned IOCTL_FE_DISEQC_SEND_BURST = FE_DISEQC_SEND_BURST;
1317 unsigned IOCTL_FE_SET_TONE = FE_SET_TONE;
1318 unsigned IOCTL_FE_SET_VOLTAGE = FE_SET_VOLTAGE;
1319 unsigned IOCTL_FE_ENABLE_HIGH_LNB_VOLTAGE = FE_ENABLE_HIGH_LNB_VOLTAGE;
1320 unsigned IOCTL_FE_SET_FRONTEND_TUNE_MODE = FE_SET_FRONTEND_TUNE_MODE;
1321 unsigned IOCTL_FE_DISHNETWORK_SEND_LEGACY_CMD = FE_DISHNETWORK_SEND_LEGACY_CMD;
1322 unsigned IOCTL_FILEMON_SET_FD = FILEMON_SET_FD;
1323 unsigned IOCTL_FILEMON_SET_PID = FILEMON_SET_PID;
1324 unsigned IOCTL_HDAUDIO_FGRP_INFO = HDAUDIO_FGRP_INFO;
1325 unsigned IOCTL_HDAUDIO_FGRP_GETCONFIG = HDAUDIO_FGRP_GETCONFIG;
1326 unsigned IOCTL_HDAUDIO_FGRP_SETCONFIG = HDAUDIO_FGRP_SETCONFIG;
1327 unsigned IOCTL_HDAUDIO_FGRP_WIDGET_INFO = HDAUDIO_FGRP_WIDGET_INFO;
1328 unsigned IOCTL_HDAUDIO_FGRP_CODEC_INFO = HDAUDIO_FGRP_CODEC_INFO;
1329 unsigned IOCTL_HDAUDIO_AFG_WIDGET_INFO = HDAUDIO_AFG_WIDGET_INFO;
1330 unsigned IOCTL_HDAUDIO_AFG_CODEC_INFO = HDAUDIO_AFG_CODEC_INFO;
1331 unsigned IOCTL_CEC_GET_PHYS_ADDR = CEC_GET_PHYS_ADDR;
1332 unsigned IOCTL_CEC_GET_LOG_ADDRS = CEC_GET_LOG_ADDRS;
1333 unsigned IOCTL_CEC_SET_LOG_ADDRS = CEC_SET_LOG_ADDRS;
1334 unsigned IOCTL_CEC_GET_VENDOR_ID = CEC_GET_VENDOR_ID;
1335 unsigned IOCTL_HPCFBIO_GCONF = HPCFBIO_GCONF;
1336 unsigned IOCTL_HPCFBIO_SCONF = HPCFBIO_SCONF;
1337 unsigned IOCTL_HPCFBIO_GDSPCONF = HPCFBIO_GDSPCONF;
1338 unsigned IOCTL_HPCFBIO_SDSPCONF = HPCFBIO_SDSPCONF;
1339 unsigned IOCTL_HPCFBIO_GOP = HPCFBIO_GOP;
1340 unsigned IOCTL_HPCFBIO_SOP = HPCFBIO_SOP;
1341 unsigned IOCTL_IOPIOCPT = IOPIOCPT;
1342 unsigned IOCTL_IOPIOCGLCT = IOPIOCGLCT;
1343 unsigned IOCTL_IOPIOCGSTATUS = IOPIOCGSTATUS;
1344 unsigned IOCTL_IOPIOCRECONFIG = IOPIOCRECONFIG;
1345 unsigned IOCTL_IOPIOCGTIDMAP = IOPIOCGTIDMAP;
1346 unsigned IOCTL_SIOCGATHSTATS = SIOCGATHSTATS;
1347 unsigned IOCTL_SIOCGATHDIAG = SIOCGATHDIAG;
1348 unsigned IOCTL_METEORCAPTUR = METEORCAPTUR;
1349 unsigned IOCTL_METEORCAPFRM = METEORCAPFRM;
1350 unsigned IOCTL_METEORSETGEO = METEORSETGEO;
1351 unsigned IOCTL_METEORGETGEO = METEORGETGEO;
1352 unsigned IOCTL_METEORSTATUS = METEORSTATUS;
1353 unsigned IOCTL_METEORSHUE = METEORSHUE;
1354 unsigned IOCTL_METEORGHUE = METEORGHUE;
1355 unsigned IOCTL_METEORSFMT = METEORSFMT;
1356 unsigned IOCTL_METEORGFMT = METEORGFMT;
1357 unsigned IOCTL_METEORSINPUT = METEORSINPUT;
1358 unsigned IOCTL_METEORGINPUT = METEORGINPUT;
1359 unsigned IOCTL_METEORSCHCV = METEORSCHCV;
1360 unsigned IOCTL_METEORGCHCV = METEORGCHCV;
1361 unsigned IOCTL_METEORSCOUNT = METEORSCOUNT;
1362 unsigned IOCTL_METEORGCOUNT = METEORGCOUNT;
1363 unsigned IOCTL_METEORSFPS = METEORSFPS;
1364 unsigned IOCTL_METEORGFPS = METEORGFPS;
1365 unsigned IOCTL_METEORSSIGNAL = METEORSSIGNAL;
1366 unsigned IOCTL_METEORGSIGNAL = METEORGSIGNAL;
1367 unsigned IOCTL_METEORSVIDEO = METEORSVIDEO;
1368 unsigned IOCTL_METEORGVIDEO = METEORGVIDEO;
1369 unsigned IOCTL_METEORSBRIG = METEORSBRIG;
1370 unsigned IOCTL_METEORGBRIG = METEORGBRIG;
1371 unsigned IOCTL_METEORSCSAT = METEORSCSAT;
1372 unsigned IOCTL_METEORGCSAT = METEORGCSAT;
1373 unsigned IOCTL_METEORSCONT = METEORSCONT;
1374 unsigned IOCTL_METEORGCONT = METEORGCONT;
1375 unsigned IOCTL_METEORSHWS = METEORSHWS;
1376 unsigned IOCTL_METEORGHWS = METEORGHWS;
1377 unsigned IOCTL_METEORSVWS = METEORSVWS;
1378 unsigned IOCTL_METEORGVWS = METEORGVWS;
1379 unsigned IOCTL_METEORSTS = METEORSTS;
1380 unsigned IOCTL_METEORGTS = METEORGTS;
1381 unsigned IOCTL_TVTUNER_SETCHNL = TVTUNER_SETCHNL;
1382 unsigned IOCTL_TVTUNER_GETCHNL = TVTUNER_GETCHNL;
1383 unsigned IOCTL_TVTUNER_SETTYPE = TVTUNER_SETTYPE;
1384 unsigned IOCTL_TVTUNER_GETTYPE = TVTUNER_GETTYPE;
1385 unsigned IOCTL_TVTUNER_GETSTATUS = TVTUNER_GETSTATUS;
1386 unsigned IOCTL_TVTUNER_SETFREQ = TVTUNER_SETFREQ;
1387 unsigned IOCTL_TVTUNER_GETFREQ = TVTUNER_GETFREQ;
1388 unsigned IOCTL_TVTUNER_SETAFC = TVTUNER_SETAFC;
1389 unsigned IOCTL_TVTUNER_GETAFC = TVTUNER_GETAFC;
1390 unsigned IOCTL_RADIO_SETMODE = RADIO_SETMODE;
1391 unsigned IOCTL_RADIO_GETMODE = RADIO_GETMODE;
1392 unsigned IOCTL_RADIO_SETFREQ = RADIO_SETFREQ;
1393 unsigned IOCTL_RADIO_GETFREQ = RADIO_GETFREQ;
1394 unsigned IOCTL_METEORSACTPIXFMT = METEORSACTPIXFMT;
1395 unsigned IOCTL_METEORGACTPIXFMT = METEORGACTPIXFMT;
1396 unsigned IOCTL_METEORGSUPPIXFMT = METEORGSUPPIXFMT;
1397 unsigned IOCTL_TVTUNER_GETCHNLSET = TVTUNER_GETCHNLSET;
1398 unsigned IOCTL_REMOTE_GETKEY = REMOTE_GETKEY;
1399 unsigned IOCTL_GDT_IOCTL_GENERAL = GDT_IOCTL_GENERAL;
1400 unsigned IOCTL_GDT_IOCTL_DRVERS = GDT_IOCTL_DRVERS;
1401 unsigned IOCTL_GDT_IOCTL_CTRTYPE = GDT_IOCTL_CTRTYPE;
1402 unsigned IOCTL_GDT_IOCTL_OSVERS = GDT_IOCTL_OSVERS;
1403 unsigned IOCTL_GDT_IOCTL_CTRCNT = GDT_IOCTL_CTRCNT;
1404 unsigned IOCTL_GDT_IOCTL_EVENT = GDT_IOCTL_EVENT;
1405 unsigned IOCTL_GDT_IOCTL_STATIST = GDT_IOCTL_STATIST;
1406 unsigned IOCTL_GDT_IOCTL_RESCAN = GDT_IOCTL_RESCAN;
1407 unsigned IOCTL_ISP_SDBLEV = ISP_SDBLEV;
1408 unsigned IOCTL_ISP_RESETHBA = ISP_RESETHBA;
1409 unsigned IOCTL_ISP_RESCAN = ISP_RESCAN;
1410 unsigned IOCTL_ISP_SETROLE = ISP_SETROLE;
1411 unsigned IOCTL_ISP_GETROLE = ISP_GETROLE;
1412 unsigned IOCTL_ISP_GET_STATS = ISP_GET_STATS;
1413 unsigned IOCTL_ISP_CLR_STATS = ISP_CLR_STATS;
1414 unsigned IOCTL_ISP_FC_LIP = ISP_FC_LIP;
1415 unsigned IOCTL_ISP_FC_GETDINFO = ISP_FC_GETDINFO;
1416 unsigned IOCTL_ISP_GET_FW_CRASH_DUMP = ISP_GET_FW_CRASH_DUMP;
1417 unsigned IOCTL_ISP_FORCE_CRASH_DUMP = ISP_FORCE_CRASH_DUMP;
1418 unsigned IOCTL_ISP_FC_GETHINFO = ISP_FC_GETHINFO;
1419 unsigned IOCTL_ISP_TSK_MGMT = ISP_TSK_MGMT;
1420 unsigned IOCTL_ISP_FC_GETDLIST = ISP_FC_GETDLIST;
1421 unsigned IOCTL_MLXD_STATUS = MLXD_STATUS;
1422 unsigned IOCTL_MLXD_CHECKASYNC = MLXD_CHECKASYNC;
1423 unsigned IOCTL_MLXD_DETACH = MLXD_DETACH;
1424 unsigned IOCTL_MLX_RESCAN_DRIVES = MLX_RESCAN_DRIVES;
1425 unsigned IOCTL_MLX_PAUSE_CHANNEL = MLX_PAUSE_CHANNEL;
1426 unsigned IOCTL_MLX_COMMAND = MLX_COMMAND;
1427 unsigned IOCTL_MLX_REBUILDASYNC = MLX_REBUILDASYNC;
1428 unsigned IOCTL_MLX_REBUILDSTAT = MLX_REBUILDSTAT;
1429 unsigned IOCTL_MLX_GET_SYSDRIVE = MLX_GET_SYSDRIVE;
1430 unsigned IOCTL_MLX_GET_CINFO = MLX_GET_CINFO;
1431 unsigned IOCTL_NVME_PASSTHROUGH_CMD = NVME_PASSTHROUGH_CMD;
1432 unsigned IOCTL_FWCFGIO_SET_INDEX = FWCFGIO_SET_INDEX;
1433 unsigned IOCTL_IRDA_RESET_PARAMS = IRDA_RESET_PARAMS;
1434 unsigned IOCTL_IRDA_SET_PARAMS = IRDA_SET_PARAMS;
1435 unsigned IOCTL_IRDA_GET_SPEEDMASK = IRDA_GET_SPEEDMASK;
1436 unsigned IOCTL_IRDA_GET_TURNAROUNDMASK = IRDA_GET_TURNAROUNDMASK;
1437 unsigned IOCTL_IRFRAMETTY_GET_DEVICE = IRFRAMETTY_GET_DEVICE;
1438 unsigned IOCTL_IRFRAMETTY_GET_DONGLE = IRFRAMETTY_GET_DONGLE;
1439 unsigned IOCTL_IRFRAMETTY_SET_DONGLE = IRFRAMETTY_SET_DONGLE;
1440 unsigned IOCTL_ISV_CMD = ISV_CMD;
1441 unsigned IOCTL_WTQICMD = WTQICMD;
1442 unsigned IOCTL_ISCSI_GET_VERSION = ISCSI_GET_VERSION;
1443 unsigned IOCTL_ISCSI_LOGIN = ISCSI_LOGIN;
1444 unsigned IOCTL_ISCSI_LOGOUT = ISCSI_LOGOUT;
1445 unsigned IOCTL_ISCSI_ADD_CONNECTION = ISCSI_ADD_CONNECTION;
1446 unsigned IOCTL_ISCSI_RESTORE_CONNECTION = ISCSI_RESTORE_CONNECTION;
1447 unsigned IOCTL_ISCSI_REMOVE_CONNECTION = ISCSI_REMOVE_CONNECTION;
1448 unsigned IOCTL_ISCSI_CONNECTION_STATUS = ISCSI_CONNECTION_STATUS;
1449 unsigned IOCTL_ISCSI_SEND_TARGETS = ISCSI_SEND_TARGETS;
1450 unsigned IOCTL_ISCSI_SET_NODE_NAME = ISCSI_SET_NODE_NAME;
1451 unsigned IOCTL_ISCSI_IO_COMMAND = ISCSI_IO_COMMAND;
1452 unsigned IOCTL_ISCSI_REGISTER_EVENT = ISCSI_REGISTER_EVENT;
1453 unsigned IOCTL_ISCSI_DEREGISTER_EVENT = ISCSI_DEREGISTER_EVENT;
1454 unsigned IOCTL_ISCSI_WAIT_EVENT = ISCSI_WAIT_EVENT;
1455 unsigned IOCTL_ISCSI_POLL_EVENT = ISCSI_POLL_EVENT;
1456 unsigned IOCTL_OFIOCGET = OFIOCGET;
1457 unsigned IOCTL_OFIOCSET = OFIOCSET;
1458 unsigned IOCTL_OFIOCNEXTPROP = OFIOCNEXTPROP;
1459 unsigned IOCTL_OFIOCGETOPTNODE = OFIOCGETOPTNODE;
1460 unsigned IOCTL_OFIOCGETNEXT = OFIOCGETNEXT;
1461 unsigned IOCTL_OFIOCGETCHILD = OFIOCGETCHILD;
1462 unsigned IOCTL_OFIOCFINDDEVICE = OFIOCFINDDEVICE;
1463 unsigned IOCTL_AMR_IO_VERSION = AMR_IO_VERSION;
1464 unsigned IOCTL_AMR_IO_COMMAND = AMR_IO_COMMAND;
1465 unsigned IOCTL_MLYIO_COMMAND = MLYIO_COMMAND;
1466 unsigned IOCTL_MLYIO_HEALTH = MLYIO_HEALTH;
1467 unsigned IOCTL_PCI_IOC_CFGREAD = PCI_IOC_CFGREAD;
1468 unsigned IOCTL_PCI_IOC_CFGWRITE = PCI_IOC_CFGWRITE;
1469 unsigned IOCTL_PCI_IOC_BDF_CFGREAD = PCI_IOC_BDF_CFGREAD;
1470 unsigned IOCTL_PCI_IOC_BDF_CFGWRITE = PCI_IOC_BDF_CFGWRITE;
1471 unsigned IOCTL_PCI_IOC_BUSINFO = PCI_IOC_BUSINFO;
1472 unsigned IOCTL_PCI_IOC_DRVNAME = PCI_IOC_DRVNAME;
1473 unsigned IOCTL_PCI_IOC_DRVNAMEONBUS = PCI_IOC_DRVNAMEONBUS;
1474 unsigned IOCTL_TWEIO_COMMAND = TWEIO_COMMAND;
1475 unsigned IOCTL_TWEIO_STATS = TWEIO_STATS;
1476 unsigned IOCTL_TWEIO_AEN_POLL = TWEIO_AEN_POLL;
1477 unsigned IOCTL_TWEIO_AEN_WAIT = TWEIO_AEN_WAIT;
1478 unsigned IOCTL_TWEIO_SET_PARAM = TWEIO_SET_PARAM;
1479 unsigned IOCTL_TWEIO_GET_PARAM = TWEIO_GET_PARAM;
1480 unsigned IOCTL_TWEIO_RESET = TWEIO_RESET;
1481 unsigned IOCTL_TWEIO_ADD_UNIT = TWEIO_ADD_UNIT;
1482 unsigned IOCTL_TWEIO_DEL_UNIT = TWEIO_DEL_UNIT;
1483 unsigned IOCTL_SIOCSCNWDOMAIN = SIOCSCNWDOMAIN;
1484 unsigned IOCTL_SIOCGCNWDOMAIN = SIOCGCNWDOMAIN;
1485 unsigned IOCTL_SIOCSCNWKEY = SIOCSCNWKEY;
1486 unsigned IOCTL_SIOCGCNWSTATUS = SIOCGCNWSTATUS;
1487 unsigned IOCTL_SIOCGCNWSTATS = SIOCGCNWSTATS;
1488 unsigned IOCTL_SIOCGCNWTRAIL = SIOCGCNWTRAIL;
1489 unsigned IOCTL_SIOCGRAYSIGLEV = SIOCGRAYSIGLEV;
1490 unsigned IOCTL_RAIDFRAME_SHUTDOWN = RAIDFRAME_SHUTDOWN;
1491 unsigned IOCTL_RAIDFRAME_TUR = RAIDFRAME_TUR;
1492 unsigned IOCTL_RAIDFRAME_FAIL_DISK = RAIDFRAME_FAIL_DISK;
1493 unsigned IOCTL_RAIDFRAME_CHECK_RECON_STATUS = RAIDFRAME_CHECK_RECON_STATUS;
1494 unsigned IOCTL_RAIDFRAME_REWRITEPARITY = RAIDFRAME_REWRITEPARITY;
1495 unsigned IOCTL_RAIDFRAME_COPYBACK = RAIDFRAME_COPYBACK;
1496 unsigned IOCTL_RAIDFRAME_SPARET_WAIT = RAIDFRAME_SPARET_WAIT;
1497 unsigned IOCTL_RAIDFRAME_SEND_SPARET = RAIDFRAME_SEND_SPARET;
1498 unsigned IOCTL_RAIDFRAME_ABORT_SPARET_WAIT = RAIDFRAME_ABORT_SPARET_WAIT;
1499 unsigned IOCTL_RAIDFRAME_START_ATRACE = RAIDFRAME_START_ATRACE;
1500 unsigned IOCTL_RAIDFRAME_STOP_ATRACE = RAIDFRAME_STOP_ATRACE;
1501 unsigned IOCTL_RAIDFRAME_GET_SIZE = RAIDFRAME_GET_SIZE;
1502 unsigned IOCTL_RAIDFRAME_RESET_ACCTOTALS = RAIDFRAME_RESET_ACCTOTALS;
1503 unsigned IOCTL_RAIDFRAME_KEEP_ACCTOTALS = RAIDFRAME_KEEP_ACCTOTALS;
1504 unsigned IOCTL_RAIDFRAME_GET_COMPONENT_LABEL = RAIDFRAME_GET_COMPONENT_LABEL;
1505 unsigned IOCTL_RAIDFRAME_SET_COMPONENT_LABEL = RAIDFRAME_SET_COMPONENT_LABEL;
1506 unsigned IOCTL_RAIDFRAME_INIT_LABELS = RAIDFRAME_INIT_LABELS;
1507 unsigned IOCTL_RAIDFRAME_ADD_HOT_SPARE = RAIDFRAME_ADD_HOT_SPARE;
1508 unsigned IOCTL_RAIDFRAME_REMOVE_HOT_SPARE = RAIDFRAME_REMOVE_HOT_SPARE;
1509 unsigned IOCTL_RAIDFRAME_REBUILD_IN_PLACE = RAIDFRAME_REBUILD_IN_PLACE;
1510 unsigned IOCTL_RAIDFRAME_CHECK_PARITY = RAIDFRAME_CHECK_PARITY;
1511 unsigned IOCTL_RAIDFRAME_CHECK_PARITYREWRITE_STATUS =
1512 RAIDFRAME_CHECK_PARITYREWRITE_STATUS;
1513 unsigned IOCTL_RAIDFRAME_CHECK_COPYBACK_STATUS =
1514 RAIDFRAME_CHECK_COPYBACK_STATUS;
1515 unsigned IOCTL_RAIDFRAME_SET_AUTOCONFIG = RAIDFRAME_SET_AUTOCONFIG;
1516 unsigned IOCTL_RAIDFRAME_SET_ROOT = RAIDFRAME_SET_ROOT;
1517 unsigned IOCTL_RAIDFRAME_DELETE_COMPONENT = RAIDFRAME_DELETE_COMPONENT;
1518 unsigned IOCTL_RAIDFRAME_INCORPORATE_HOT_SPARE =
1519 RAIDFRAME_INCORPORATE_HOT_SPARE;
1520 unsigned IOCTL_RAIDFRAME_CHECK_RECON_STATUS_EXT =
1521 RAIDFRAME_CHECK_RECON_STATUS_EXT;
1522 unsigned IOCTL_RAIDFRAME_CHECK_PARITYREWRITE_STATUS_EXT =
1523 RAIDFRAME_CHECK_PARITYREWRITE_STATUS_EXT;
1524 unsigned IOCTL_RAIDFRAME_CHECK_COPYBACK_STATUS_EXT =
1525 RAIDFRAME_CHECK_COPYBACK_STATUS_EXT;
1526 unsigned IOCTL_RAIDFRAME_CONFIGURE = RAIDFRAME_CONFIGURE;
1527 unsigned IOCTL_RAIDFRAME_GET_INFO = RAIDFRAME_GET_INFO;
1528 unsigned IOCTL_RAIDFRAME_PARITYMAP_STATUS = RAIDFRAME_PARITYMAP_STATUS;
1529 unsigned IOCTL_RAIDFRAME_PARITYMAP_GET_DISABLE =
1530 RAIDFRAME_PARITYMAP_GET_DISABLE;
1531 unsigned IOCTL_RAIDFRAME_PARITYMAP_SET_DISABLE =
1532 RAIDFRAME_PARITYMAP_SET_DISABLE;
1533 unsigned IOCTL_RAIDFRAME_PARITYMAP_SET_PARAMS = RAIDFRAME_PARITYMAP_SET_PARAMS;
1534 unsigned IOCTL_RAIDFRAME_SET_LAST_UNIT = RAIDFRAME_SET_LAST_UNIT;
1535 unsigned IOCTL_MBPPIOCSPARAM = MBPPIOCSPARAM;
1536 unsigned IOCTL_MBPPIOCGPARAM = MBPPIOCGPARAM;
1537 unsigned IOCTL_MBPPIOCGSTAT = MBPPIOCGSTAT;
1538 unsigned IOCTL_SESIOC_GETNOBJ = SESIOC_GETNOBJ;
1539 unsigned IOCTL_SESIOC_GETOBJMAP = SESIOC_GETOBJMAP;
1540 unsigned IOCTL_SESIOC_GETENCSTAT = SESIOC_GETENCSTAT;
1541 unsigned IOCTL_SESIOC_SETENCSTAT = SESIOC_SETENCSTAT;
1542 unsigned IOCTL_SESIOC_GETOBJSTAT = SESIOC_GETOBJSTAT;
1543 unsigned IOCTL_SESIOC_SETOBJSTAT = SESIOC_SETOBJSTAT;
1544 unsigned IOCTL_SESIOC_GETTEXT = SESIOC_GETTEXT;
1545 unsigned IOCTL_SESIOC_INIT = SESIOC_INIT;
1546 unsigned IOCTL_SUN_DKIOCGGEOM = SUN_DKIOCGGEOM;
1547 unsigned IOCTL_SUN_DKIOCINFO = SUN_DKIOCINFO;
1548 unsigned IOCTL_SUN_DKIOCGPART = SUN_DKIOCGPART;
1549 unsigned IOCTL_FBIOGTYPE = FBIOGTYPE;
1550 unsigned IOCTL_FBIOPUTCMAP = FBIOPUTCMAP;
1551 unsigned IOCTL_FBIOGETCMAP = FBIOGETCMAP;
1552 unsigned IOCTL_FBIOGATTR = FBIOGATTR;
1553 unsigned IOCTL_FBIOSVIDEO = FBIOSVIDEO;
1554 unsigned IOCTL_FBIOGVIDEO = FBIOGVIDEO;
1555 unsigned IOCTL_FBIOSCURSOR = FBIOSCURSOR;
1556 unsigned IOCTL_FBIOGCURSOR = FBIOGCURSOR;
1557 unsigned IOCTL_FBIOSCURPOS = FBIOSCURPOS;
1558 unsigned IOCTL_FBIOGCURPOS = FBIOGCURPOS;
1559 unsigned IOCTL_FBIOGCURMAX = FBIOGCURMAX;
1560 unsigned IOCTL_KIOCTRANS = KIOCTRANS;
1561 unsigned IOCTL_KIOCSETKEY = KIOCSETKEY;
1562 unsigned IOCTL_KIOCGETKEY = KIOCGETKEY;
1563 unsigned IOCTL_KIOCGTRANS = KIOCGTRANS;
1564 unsigned IOCTL_KIOCCMD = KIOCCMD;
1565 unsigned IOCTL_KIOCTYPE = KIOCTYPE;
1566 unsigned IOCTL_KIOCSDIRECT = KIOCSDIRECT;
1567 unsigned IOCTL_KIOCSKEY = KIOCSKEY;
1568 unsigned IOCTL_KIOCGKEY = KIOCGKEY;
1569 unsigned IOCTL_KIOCSLED = KIOCSLED;
1570 unsigned IOCTL_KIOCGLED = KIOCGLED;
1571 unsigned IOCTL_KIOCLAYOUT = KIOCLAYOUT;
1572 unsigned IOCTL_VUIDSFORMAT = VUIDSFORMAT;
1573 unsigned IOCTL_VUIDGFORMAT = VUIDGFORMAT;
1574 unsigned IOCTL_STICIO_GXINFO = STICIO_GXINFO;
1575 unsigned IOCTL_STICIO_RESET = STICIO_RESET;
1576 unsigned IOCTL_STICIO_STARTQ = STICIO_STARTQ;
1577 unsigned IOCTL_STICIO_STOPQ = STICIO_STOPQ;
1578 unsigned IOCTL_UKYOPON_IDENTIFY = UKYOPON_IDENTIFY;
1579 unsigned IOCTL_URIO_SEND_COMMAND = URIO_SEND_COMMAND;
1580 unsigned IOCTL_URIO_RECV_COMMAND = URIO_RECV_COMMAND;
1581 unsigned IOCTL_USB_REQUEST = USB_REQUEST;
1582 unsigned IOCTL_USB_SETDEBUG = USB_SETDEBUG;
1583 unsigned IOCTL_USB_DISCOVER = USB_DISCOVER;
1584 unsigned IOCTL_USB_DEVICEINFO = USB_DEVICEINFO;
1585 unsigned IOCTL_USB_DEVICEINFO_OLD = USB_DEVICEINFO_OLD;
1586 unsigned IOCTL_USB_DEVICESTATS = USB_DEVICESTATS;
1587 unsigned IOCTL_USB_GET_REPORT_DESC = USB_GET_REPORT_DESC;
1588 unsigned IOCTL_USB_SET_IMMED = USB_SET_IMMED;
1589 unsigned IOCTL_USB_GET_REPORT = USB_GET_REPORT;
1590 unsigned IOCTL_USB_SET_REPORT = USB_SET_REPORT;
1591 unsigned IOCTL_USB_GET_REPORT_ID = USB_GET_REPORT_ID;
1592 unsigned IOCTL_USB_GET_CONFIG = USB_GET_CONFIG;
1593 unsigned IOCTL_USB_SET_CONFIG = USB_SET_CONFIG;
1594 unsigned IOCTL_USB_GET_ALTINTERFACE = USB_GET_ALTINTERFACE;
1595 unsigned IOCTL_USB_SET_ALTINTERFACE = USB_SET_ALTINTERFACE;
1596 unsigned IOCTL_USB_GET_NO_ALT = USB_GET_NO_ALT;
1597 unsigned IOCTL_USB_GET_DEVICE_DESC = USB_GET_DEVICE_DESC;
1598 unsigned IOCTL_USB_GET_CONFIG_DESC = USB_GET_CONFIG_DESC;
1599 unsigned IOCTL_USB_GET_INTERFACE_DESC = USB_GET_INTERFACE_DESC;
1600 unsigned IOCTL_USB_GET_ENDPOINT_DESC = USB_GET_ENDPOINT_DESC;
1601 unsigned IOCTL_USB_GET_FULL_DESC = USB_GET_FULL_DESC;
1602 unsigned IOCTL_USB_GET_STRING_DESC = USB_GET_STRING_DESC;
1603 unsigned IOCTL_USB_DO_REQUEST = USB_DO_REQUEST;
1604 unsigned IOCTL_USB_GET_DEVICEINFO = USB_GET_DEVICEINFO;
1605 unsigned IOCTL_USB_GET_DEVICEINFO_OLD = USB_GET_DEVICEINFO_OLD;
1606 unsigned IOCTL_USB_SET_SHORT_XFER = USB_SET_SHORT_XFER;
1607 unsigned IOCTL_USB_SET_TIMEOUT = USB_SET_TIMEOUT;
1608 unsigned IOCTL_USB_SET_BULK_RA = USB_SET_BULK_RA;
1609 unsigned IOCTL_USB_SET_BULK_WB = USB_SET_BULK_WB;
1610 unsigned IOCTL_USB_SET_BULK_RA_OPT = USB_SET_BULK_RA_OPT;
1611 unsigned IOCTL_USB_SET_BULK_WB_OPT = USB_SET_BULK_WB_OPT;
1612 unsigned IOCTL_USB_GET_CM_OVER_DATA = USB_GET_CM_OVER_DATA;
1613 unsigned IOCTL_USB_SET_CM_OVER_DATA = USB_SET_CM_OVER_DATA;
1614 unsigned IOCTL_UTOPPYIOTURBO = UTOPPYIOTURBO;
1615 unsigned IOCTL_UTOPPYIOCANCEL = UTOPPYIOCANCEL;
1616 unsigned IOCTL_UTOPPYIOREBOOT = UTOPPYIOREBOOT;
1617 unsigned IOCTL_UTOPPYIOSTATS = UTOPPYIOSTATS;
1618 unsigned IOCTL_UTOPPYIORENAME = UTOPPYIORENAME;
1619 unsigned IOCTL_UTOPPYIOMKDIR = UTOPPYIOMKDIR;
1620 unsigned IOCTL_UTOPPYIODELETE = UTOPPYIODELETE;
1621 unsigned IOCTL_UTOPPYIOREADDIR = UTOPPYIOREADDIR;
1622 unsigned IOCTL_UTOPPYIOREADFILE = UTOPPYIOREADFILE;
1623 unsigned IOCTL_UTOPPYIOWRITEFILE = UTOPPYIOWRITEFILE;
1624 unsigned IOCTL_DIOSXDCMD = DIOSXDCMD;
1625 unsigned IOCTL_VT_OPENQRY = VT_OPENQRY;
1626 unsigned IOCTL_VT_SETMODE = VT_SETMODE;
1627 unsigned IOCTL_VT_GETMODE = VT_GETMODE;
1628 unsigned IOCTL_VT_RELDISP = VT_RELDISP;
1629 unsigned IOCTL_VT_ACTIVATE = VT_ACTIVATE;
1630 unsigned IOCTL_VT_WAITACTIVE = VT_WAITACTIVE;
1631 unsigned IOCTL_VT_GETACTIVE = VT_GETACTIVE;
1632 unsigned IOCTL_VT_GETSTATE = VT_GETSTATE;
1633 unsigned IOCTL_KDGETKBENT = KDGETKBENT;
1634 unsigned IOCTL_KDGKBMODE = KDGKBMODE;
1635 unsigned IOCTL_KDSKBMODE = KDSKBMODE;
1636 unsigned IOCTL_KDMKTONE = KDMKTONE;
1637 unsigned IOCTL_KDSETMODE = KDSETMODE;
1638 unsigned IOCTL_KDENABIO = KDENABIO;
1639 unsigned IOCTL_KDDISABIO = KDDISABIO;
1640 unsigned IOCTL_KDGKBTYPE = KDGKBTYPE;
1641 unsigned IOCTL_KDGETLED = KDGETLED;
1642 unsigned IOCTL_KDSETLED = KDSETLED;
1643 unsigned IOCTL_KDSETRAD = KDSETRAD;
1644 unsigned IOCTL_VGAPCVTID = VGAPCVTID;
1645 unsigned IOCTL_CONS_GETVERS = CONS_GETVERS;
1646 unsigned IOCTL_WSKBDIO_GTYPE = WSKBDIO_GTYPE;
1647 unsigned IOCTL_WSKBDIO_BELL = WSKBDIO_BELL;
1648 unsigned IOCTL_WSKBDIO_COMPLEXBELL = WSKBDIO_COMPLEXBELL;
1649 unsigned IOCTL_WSKBDIO_SETBELL = WSKBDIO_SETBELL;
1650 unsigned IOCTL_WSKBDIO_GETBELL = WSKBDIO_GETBELL;
1651 unsigned IOCTL_WSKBDIO_SETDEFAULTBELL = WSKBDIO_SETDEFAULTBELL;
1652 unsigned IOCTL_WSKBDIO_GETDEFAULTBELL = WSKBDIO_GETDEFAULTBELL;
1653 unsigned IOCTL_WSKBDIO_SETKEYREPEAT = WSKBDIO_SETKEYREPEAT;
1654 unsigned IOCTL_WSKBDIO_GETKEYREPEAT = WSKBDIO_GETKEYREPEAT;
1655 unsigned IOCTL_WSKBDIO_SETDEFAULTKEYREPEAT = WSKBDIO_SETDEFAULTKEYREPEAT;
1656 unsigned IOCTL_WSKBDIO_GETDEFAULTKEYREPEAT = WSKBDIO_GETDEFAULTKEYREPEAT;
1657 unsigned IOCTL_WSKBDIO_SETLEDS = WSKBDIO_SETLEDS;
1658 unsigned IOCTL_WSKBDIO_GETLEDS = WSKBDIO_GETLEDS;
1659 unsigned IOCTL_WSKBDIO_GETMAP = WSKBDIO_GETMAP;
1660 unsigned IOCTL_WSKBDIO_SETMAP = WSKBDIO_SETMAP;
1661 unsigned IOCTL_WSKBDIO_GETENCODING = WSKBDIO_GETENCODING;
1662 unsigned IOCTL_WSKBDIO_SETENCODING = WSKBDIO_SETENCODING;
1663 unsigned IOCTL_WSKBDIO_SETMODE = WSKBDIO_SETMODE;
1664 unsigned IOCTL_WSKBDIO_GETMODE = WSKBDIO_GETMODE;
1665 unsigned IOCTL_WSKBDIO_SETKEYCLICK = WSKBDIO_SETKEYCLICK;
1666 unsigned IOCTL_WSKBDIO_GETKEYCLICK = WSKBDIO_GETKEYCLICK;
1667 unsigned IOCTL_WSKBDIO_GETSCROLL = WSKBDIO_GETSCROLL;
1668 unsigned IOCTL_WSKBDIO_SETSCROLL = WSKBDIO_SETSCROLL;
1669 unsigned IOCTL_WSKBDIO_SETVERSION = WSKBDIO_SETVERSION;
1670 unsigned IOCTL_WSMOUSEIO_GTYPE = WSMOUSEIO_GTYPE;
1671 unsigned IOCTL_WSMOUSEIO_SRES = WSMOUSEIO_SRES;
1672 unsigned IOCTL_WSMOUSEIO_SSCALE = WSMOUSEIO_SSCALE;
1673 unsigned IOCTL_WSMOUSEIO_SRATE = WSMOUSEIO_SRATE;
1674 unsigned IOCTL_WSMOUSEIO_SCALIBCOORDS = WSMOUSEIO_SCALIBCOORDS;
1675 unsigned IOCTL_WSMOUSEIO_GCALIBCOORDS = WSMOUSEIO_GCALIBCOORDS;
1676 unsigned IOCTL_WSMOUSEIO_GETID = WSMOUSEIO_GETID;
1677 unsigned IOCTL_WSMOUSEIO_GETREPEAT = WSMOUSEIO_GETREPEAT;
1678 unsigned IOCTL_WSMOUSEIO_SETREPEAT = WSMOUSEIO_SETREPEAT;
1679 unsigned IOCTL_WSMOUSEIO_SETVERSION = WSMOUSEIO_SETVERSION;
1680 unsigned IOCTL_WSDISPLAYIO_GTYPE = WSDISPLAYIO_GTYPE;
1681 unsigned IOCTL_WSDISPLAYIO_GINFO = WSDISPLAYIO_GINFO;
1682 unsigned IOCTL_WSDISPLAYIO_GETCMAP = WSDISPLAYIO_GETCMAP;
1683 unsigned IOCTL_WSDISPLAYIO_PUTCMAP = WSDISPLAYIO_PUTCMAP;
1684 unsigned IOCTL_WSDISPLAYIO_GVIDEO = WSDISPLAYIO_GVIDEO;
1685 unsigned IOCTL_WSDISPLAYIO_SVIDEO = WSDISPLAYIO_SVIDEO;
1686 unsigned IOCTL_WSDISPLAYIO_GCURPOS = WSDISPLAYIO_GCURPOS;
1687 unsigned IOCTL_WSDISPLAYIO_SCURPOS = WSDISPLAYIO_SCURPOS;
1688 unsigned IOCTL_WSDISPLAYIO_GCURMAX = WSDISPLAYIO_GCURMAX;
1689 unsigned IOCTL_WSDISPLAYIO_GCURSOR = WSDISPLAYIO_GCURSOR;
1690 unsigned IOCTL_WSDISPLAYIO_SCURSOR = WSDISPLAYIO_SCURSOR;
1691 unsigned IOCTL_WSDISPLAYIO_GMODE = WSDISPLAYIO_GMODE;
1692 unsigned IOCTL_WSDISPLAYIO_SMODE = WSDISPLAYIO_SMODE;
1693 unsigned IOCTL_WSDISPLAYIO_LDFONT = WSDISPLAYIO_LDFONT;
1694 unsigned IOCTL_WSDISPLAYIO_ADDSCREEN = WSDISPLAYIO_ADDSCREEN;
1695 unsigned IOCTL_WSDISPLAYIO_DELSCREEN = WSDISPLAYIO_DELSCREEN;
1696 unsigned IOCTL_WSDISPLAYIO_SFONT = WSDISPLAYIO_SFONT;
1697 unsigned IOCTL__O_WSDISPLAYIO_SETKEYBOARD = _O_WSDISPLAYIO_SETKEYBOARD;
1698 unsigned IOCTL_WSDISPLAYIO_GETPARAM = WSDISPLAYIO_GETPARAM;
1699 unsigned IOCTL_WSDISPLAYIO_SETPARAM = WSDISPLAYIO_SETPARAM;
1700 unsigned IOCTL_WSDISPLAYIO_GETACTIVESCREEN = WSDISPLAYIO_GETACTIVESCREEN;
1701 unsigned IOCTL_WSDISPLAYIO_GETWSCHAR = WSDISPLAYIO_GETWSCHAR;
1702 unsigned IOCTL_WSDISPLAYIO_PUTWSCHAR = WSDISPLAYIO_PUTWSCHAR;
1703 unsigned IOCTL_WSDISPLAYIO_DGSCROLL = WSDISPLAYIO_DGSCROLL;
1704 unsigned IOCTL_WSDISPLAYIO_DSSCROLL = WSDISPLAYIO_DSSCROLL;
1705 unsigned IOCTL_WSDISPLAYIO_GMSGATTRS = WSDISPLAYIO_GMSGATTRS;
1706 unsigned IOCTL_WSDISPLAYIO_SMSGATTRS = WSDISPLAYIO_SMSGATTRS;
1707 unsigned IOCTL_WSDISPLAYIO_GBORDER = WSDISPLAYIO_GBORDER;
1708 unsigned IOCTL_WSDISPLAYIO_SBORDER = WSDISPLAYIO_SBORDER;
1709 unsigned IOCTL_WSDISPLAYIO_SSPLASH = WSDISPLAYIO_SSPLASH;
1710 unsigned IOCTL_WSDISPLAYIO_SPROGRESS = WSDISPLAYIO_SPROGRESS;
1711 unsigned IOCTL_WSDISPLAYIO_LINEBYTES = WSDISPLAYIO_LINEBYTES;
1712 unsigned IOCTL_WSDISPLAYIO_SETVERSION = WSDISPLAYIO_SETVERSION;
1713 unsigned IOCTL_WSMUXIO_ADD_DEVICE = WSMUXIO_ADD_DEVICE;
1714 unsigned IOCTL_WSMUXIO_REMOVE_DEVICE = WSMUXIO_REMOVE_DEVICE;
1715 unsigned IOCTL_WSMUXIO_LIST_DEVICES = WSMUXIO_LIST_DEVICES;
1716 unsigned IOCTL_WSMUXIO_INJECTEVENT = WSMUXIO_INJECTEVENT;
1717 unsigned IOCTL_WSDISPLAYIO_GET_BUSID = WSDISPLAYIO_GET_BUSID;
1718 unsigned IOCTL_WSDISPLAYIO_GET_EDID = WSDISPLAYIO_GET_EDID;
1719 unsigned IOCTL_WSDISPLAYIO_SET_POLLING = WSDISPLAYIO_SET_POLLING;
1720 unsigned IOCTL_WSDISPLAYIO_GET_FBINFO = WSDISPLAYIO_GET_FBINFO;
1721 unsigned IOCTL_WSDISPLAYIO_DOBLIT = WSDISPLAYIO_DOBLIT;
1722 unsigned IOCTL_WSDISPLAYIO_WAITBLIT = WSDISPLAYIO_WAITBLIT;
1723 unsigned IOCTL_BIOCLOCATE = BIOCLOCATE;
1724 unsigned IOCTL_BIOCINQ = BIOCINQ;
1725 unsigned IOCTL_BIOCDISK_NOVOL = BIOCDISK_NOVOL;
1726 unsigned IOCTL_BIOCDISK = BIOCDISK;
1727 unsigned IOCTL_BIOCVOL = BIOCVOL;
1728 unsigned IOCTL_BIOCALARM = BIOCALARM;
1729 unsigned IOCTL_BIOCBLINK = BIOCBLINK;
1730 unsigned IOCTL_BIOCSETSTATE = BIOCSETSTATE;
1731 unsigned IOCTL_BIOCVOLOPS = BIOCVOLOPS;
1732 unsigned IOCTL_MD_GETCONF = MD_GETCONF;
1733 unsigned IOCTL_MD_SETCONF = MD_SETCONF;
1734 unsigned IOCTL_CCDIOCSET = CCDIOCSET;
1735 unsigned IOCTL_CCDIOCCLR = CCDIOCCLR;
1736 unsigned IOCTL_CGDIOCSET = CGDIOCSET;
1737 unsigned IOCTL_CGDIOCCLR = CGDIOCCLR;
1738 unsigned IOCTL_CGDIOCGET = CGDIOCGET;
1739 unsigned IOCTL_FSSIOCSET = FSSIOCSET;
1740 unsigned IOCTL_FSSIOCGET = FSSIOCGET;
1741 unsigned IOCTL_FSSIOCCLR = FSSIOCCLR;
1742 unsigned IOCTL_FSSIOFSET = FSSIOFSET;
1743 unsigned IOCTL_FSSIOFGET = FSSIOFGET;
1744 unsigned IOCTL_BTDEV_ATTACH = BTDEV_ATTACH;
1745 unsigned IOCTL_BTDEV_DETACH = BTDEV_DETACH;
1746 unsigned IOCTL_BTSCO_GETINFO = BTSCO_GETINFO;
1747 unsigned IOCTL_KTTCP_IO_SEND = KTTCP_IO_SEND;
1748 unsigned IOCTL_KTTCP_IO_RECV = KTTCP_IO_RECV;
1749 unsigned IOCTL_IOC_LOCKSTAT_GVERSION = IOC_LOCKSTAT_GVERSION;
1750 unsigned IOCTL_IOC_LOCKSTAT_ENABLE = IOC_LOCKSTAT_ENABLE;
1751 unsigned IOCTL_IOC_LOCKSTAT_DISABLE = IOC_LOCKSTAT_DISABLE;
1752 unsigned IOCTL_VNDIOCSET = VNDIOCSET;
1753 unsigned IOCTL_VNDIOCCLR = VNDIOCCLR;
1754 unsigned IOCTL_VNDIOCGET = VNDIOCGET;
1755 unsigned IOCTL_SPKRTONE = SPKRTONE;
1756 unsigned IOCTL_SPKRTUNE = SPKRTUNE;
1757 unsigned IOCTL_SPKRGETVOL = SPKRGETVOL;
1758 unsigned IOCTL_SPKRSETVOL = SPKRSETVOL;
1759 #if defined(__x86_64__)
1760 unsigned IOCTL_NVMM_IOC_CAPABILITY = NVMM_IOC_CAPABILITY;
1761 unsigned IOCTL_NVMM_IOC_MACHINE_CREATE = NVMM_IOC_MACHINE_CREATE;
1762 unsigned IOCTL_NVMM_IOC_MACHINE_DESTROY = NVMM_IOC_MACHINE_DESTROY;
1763 unsigned IOCTL_NVMM_IOC_MACHINE_CONFIGURE = NVMM_IOC_MACHINE_CONFIGURE;
1764 unsigned IOCTL_NVMM_IOC_VCPU_CREATE = NVMM_IOC_VCPU_CREATE;
1765 unsigned IOCTL_NVMM_IOC_VCPU_DESTROY = NVMM_IOC_VCPU_DESTROY;
1766 unsigned IOCTL_NVMM_IOC_VCPU_CONFIGURE = NVMM_IOC_VCPU_CONFIGURE;
1767 unsigned IOCTL_NVMM_IOC_VCPU_SETSTATE = NVMM_IOC_VCPU_SETSTATE;
1768 unsigned IOCTL_NVMM_IOC_VCPU_GETSTATE = NVMM_IOC_VCPU_GETSTATE;
1769 unsigned IOCTL_NVMM_IOC_VCPU_INJECT = NVMM_IOC_VCPU_INJECT;
1770 unsigned IOCTL_NVMM_IOC_VCPU_RUN = NVMM_IOC_VCPU_RUN;
1771 unsigned IOCTL_NVMM_IOC_GPA_MAP = NVMM_IOC_GPA_MAP;
1772 unsigned IOCTL_NVMM_IOC_GPA_UNMAP = NVMM_IOC_GPA_UNMAP;
1773 unsigned IOCTL_NVMM_IOC_HVA_MAP = NVMM_IOC_HVA_MAP;
1774 unsigned IOCTL_NVMM_IOC_HVA_UNMAP = NVMM_IOC_HVA_UNMAP;
1775 unsigned IOCTL_NVMM_IOC_CTL = NVMM_IOC_CTL;
1776 #endif
1777 unsigned IOCTL_SPI_IOCTL_CONFIGURE = SPI_IOCTL_CONFIGURE;
1778 unsigned IOCTL_SPI_IOCTL_TRANSFER = SPI_IOCTL_TRANSFER;
1779 unsigned IOCTL_AUTOFSREQUEST = AUTOFSREQUEST;
1780 unsigned IOCTL_AUTOFSDONE = AUTOFSDONE;
1781 unsigned IOCTL_BIOCGBLEN = BIOCGBLEN;
1782 unsigned IOCTL_BIOCSBLEN = BIOCSBLEN;
1783 unsigned IOCTL_BIOCSETF = BIOCSETF;
1784 unsigned IOCTL_BIOCFLUSH = BIOCFLUSH;
1785 unsigned IOCTL_BIOCPROMISC = BIOCPROMISC;
1786 unsigned IOCTL_BIOCGDLT = BIOCGDLT;
1787 unsigned IOCTL_BIOCGETIF = BIOCGETIF;
1788 unsigned IOCTL_BIOCSETIF = BIOCSETIF;
1789 unsigned IOCTL_BIOCGSTATS = BIOCGSTATS;
1790 unsigned IOCTL_BIOCGSTATSOLD = BIOCGSTATSOLD;
1791 unsigned IOCTL_BIOCIMMEDIATE = BIOCIMMEDIATE;
1792 unsigned IOCTL_BIOCVERSION = BIOCVERSION;
1793 unsigned IOCTL_BIOCSTCPF = BIOCSTCPF;
1794 unsigned IOCTL_BIOCSUDPF = BIOCSUDPF;
1795 unsigned IOCTL_BIOCGHDRCMPLT = BIOCGHDRCMPLT;
1796 unsigned IOCTL_BIOCSHDRCMPLT = BIOCSHDRCMPLT;
1797 unsigned IOCTL_BIOCSDLT = BIOCSDLT;
1798 unsigned IOCTL_BIOCGDLTLIST = BIOCGDLTLIST;
1799 unsigned IOCTL_BIOCGDIRECTION = BIOCGDIRECTION;
1800 unsigned IOCTL_BIOCSDIRECTION = BIOCSDIRECTION;
1801 unsigned IOCTL_BIOCSRTIMEOUT = BIOCSRTIMEOUT;
1802 unsigned IOCTL_BIOCGRTIMEOUT = BIOCGRTIMEOUT;
1803 unsigned IOCTL_BIOCGFEEDBACK = BIOCGFEEDBACK;
1804 unsigned IOCTL_BIOCSFEEDBACK = BIOCSFEEDBACK;
1805 unsigned IOCTL_GRESADDRS = GRESADDRS;
1806 unsigned IOCTL_GRESADDRD = GRESADDRD;
1807 unsigned IOCTL_GREGADDRS = GREGADDRS;
1808 unsigned IOCTL_GREGADDRD = GREGADDRD;
1809 unsigned IOCTL_GRESPROTO = GRESPROTO;
1810 unsigned IOCTL_GREGPROTO = GREGPROTO;
1811 unsigned IOCTL_GRESSOCK = GRESSOCK;
1812 unsigned IOCTL_GREDSOCK = GREDSOCK;
1813 unsigned IOCTL_PPPIOCGRAWIN = PPPIOCGRAWIN;
1814 unsigned IOCTL_PPPIOCGFLAGS = PPPIOCGFLAGS;
1815 unsigned IOCTL_PPPIOCSFLAGS = PPPIOCSFLAGS;
1816 unsigned IOCTL_PPPIOCGASYNCMAP = PPPIOCGASYNCMAP;
1817 unsigned IOCTL_PPPIOCSASYNCMAP = PPPIOCSASYNCMAP;
1818 unsigned IOCTL_PPPIOCGUNIT = PPPIOCGUNIT;
1819 unsigned IOCTL_PPPIOCGRASYNCMAP = PPPIOCGRASYNCMAP;
1820 unsigned IOCTL_PPPIOCSRASYNCMAP = PPPIOCSRASYNCMAP;
1821 unsigned IOCTL_PPPIOCGMRU = PPPIOCGMRU;
1822 unsigned IOCTL_PPPIOCSMRU = PPPIOCSMRU;
1823 unsigned IOCTL_PPPIOCSMAXCID = PPPIOCSMAXCID;
1824 unsigned IOCTL_PPPIOCGXASYNCMAP = PPPIOCGXASYNCMAP;
1825 unsigned IOCTL_PPPIOCSXASYNCMAP = PPPIOCSXASYNCMAP;
1826 unsigned IOCTL_PPPIOCXFERUNIT = PPPIOCXFERUNIT;
1827 unsigned IOCTL_PPPIOCSCOMPRESS = PPPIOCSCOMPRESS;
1828 unsigned IOCTL_PPPIOCGNPMODE = PPPIOCGNPMODE;
1829 unsigned IOCTL_PPPIOCSNPMODE = PPPIOCSNPMODE;
1830 unsigned IOCTL_PPPIOCGIDLE = PPPIOCGIDLE;
1831 unsigned IOCTL_PPPIOCGMTU = PPPIOCGMTU;
1832 unsigned IOCTL_PPPIOCSMTU = PPPIOCSMTU;
1833 unsigned IOCTL_SIOCGPPPSTATS = SIOCGPPPSTATS;
1834 unsigned IOCTL_SIOCGPPPCSTATS = SIOCGPPPCSTATS;
1835 unsigned IOCTL_IOC_NPF_VERSION = IOC_NPF_VERSION;
1836 unsigned IOCTL_IOC_NPF_SWITCH = IOC_NPF_SWITCH;
1837 unsigned IOCTL_IOC_NPF_LOAD = IOC_NPF_LOAD;
1838 unsigned IOCTL_IOC_NPF_TABLE = IOC_NPF_TABLE;
1839 unsigned IOCTL_IOC_NPF_STATS = IOC_NPF_STATS;
1840 unsigned IOCTL_IOC_NPF_SAVE = IOC_NPF_SAVE;
1841 unsigned IOCTL_IOC_NPF_RULE = IOC_NPF_RULE;
1842 unsigned IOCTL_IOC_NPF_CONN_LOOKUP = IOC_NPF_CONN_LOOKUP;
1843 unsigned IOCTL_IOC_NPF_TABLE_REPLACE = IOC_NPF_TABLE_REPLACE;
1844 unsigned IOCTL_PPPOESETPARMS = PPPOESETPARMS;
1845 unsigned IOCTL_PPPOEGETPARMS = PPPOEGETPARMS;
1846 unsigned IOCTL_PPPOEGETSESSION = PPPOEGETSESSION;
1847 unsigned IOCTL_SPPPGETAUTHCFG = SPPPGETAUTHCFG;
1848 unsigned IOCTL_SPPPSETAUTHCFG = SPPPSETAUTHCFG;
1849 unsigned IOCTL_SPPPGETLCPCFG = SPPPGETLCPCFG;
1850 unsigned IOCTL_SPPPSETLCPCFG = SPPPSETLCPCFG;
1851 unsigned IOCTL_SPPPGETSTATUS = SPPPGETSTATUS;
1852 unsigned IOCTL_SPPPGETSTATUSNCP = SPPPGETSTATUSNCP;
1853 unsigned IOCTL_SPPPGETIDLETO = SPPPGETIDLETO;
1854 unsigned IOCTL_SPPPSETIDLETO = SPPPSETIDLETO;
1855 unsigned IOCTL_SPPPGETAUTHFAILURES = SPPPGETAUTHFAILURES;
1856 unsigned IOCTL_SPPPSETAUTHFAILURE = SPPPSETAUTHFAILURE;
1857 unsigned IOCTL_SPPPSETDNSOPTS = SPPPSETDNSOPTS;
1858 unsigned IOCTL_SPPPGETDNSOPTS = SPPPGETDNSOPTS;
1859 unsigned IOCTL_SPPPGETDNSADDRS = SPPPGETDNSADDRS;
1860 unsigned IOCTL_SPPPSETKEEPALIVE = SPPPSETKEEPALIVE;
1861 unsigned IOCTL_SPPPGETKEEPALIVE = SPPPGETKEEPALIVE;
1862 unsigned IOCTL_SRT_GETNRT = SRT_GETNRT;
1863 unsigned IOCTL_SRT_GETRT = SRT_GETRT;
1864 unsigned IOCTL_SRT_SETRT = SRT_SETRT;
1865 unsigned IOCTL_SRT_DELRT = SRT_DELRT;
1866 unsigned IOCTL_SRT_SFLAGS = SRT_SFLAGS;
1867 unsigned IOCTL_SRT_GFLAGS = SRT_GFLAGS;
1868 unsigned IOCTL_SRT_SGFLAGS = SRT_SGFLAGS;
1869 unsigned IOCTL_SRT_DEBUG = SRT_DEBUG;
1870 unsigned IOCTL_TAPGIFNAME = TAPGIFNAME;
1871 unsigned IOCTL_TUNSDEBUG = TUNSDEBUG;
1872 unsigned IOCTL_TUNGDEBUG = TUNGDEBUG;
1873 unsigned IOCTL_TUNSIFMODE = TUNSIFMODE;
1874 unsigned IOCTL_TUNSLMODE = TUNSLMODE;
1875 unsigned IOCTL_TUNSIFHEAD = TUNSIFHEAD;
1876 unsigned IOCTL_TUNGIFHEAD = TUNGIFHEAD;
1877 unsigned IOCTL_DIOCSTART = DIOCSTART;
1878 unsigned IOCTL_DIOCSTOP = DIOCSTOP;
1879 unsigned IOCTL_DIOCADDRULE = DIOCADDRULE;
1880 unsigned IOCTL_DIOCGETRULES = DIOCGETRULES;
1881 unsigned IOCTL_DIOCGETRULE = DIOCGETRULE;
1882 unsigned IOCTL_DIOCSETLCK = DIOCSETLCK;
1883 unsigned IOCTL_DIOCCLRSTATES = DIOCCLRSTATES;
1884 unsigned IOCTL_DIOCGETSTATE = DIOCGETSTATE;
1885 unsigned IOCTL_DIOCSETSTATUSIF = DIOCSETSTATUSIF;
1886 unsigned IOCTL_DIOCGETSTATUS = DIOCGETSTATUS;
1887 unsigned IOCTL_DIOCCLRSTATUS = DIOCCLRSTATUS;
1888 unsigned IOCTL_DIOCNATLOOK = DIOCNATLOOK;
1889 unsigned IOCTL_DIOCSETDEBUG = DIOCSETDEBUG;
1890 unsigned IOCTL_DIOCGETSTATES = DIOCGETSTATES;
1891 unsigned IOCTL_DIOCCHANGERULE = DIOCCHANGERULE;
1892 unsigned IOCTL_DIOCSETTIMEOUT = DIOCSETTIMEOUT;
1893 unsigned IOCTL_DIOCGETTIMEOUT = DIOCGETTIMEOUT;
1894 unsigned IOCTL_DIOCADDSTATE = DIOCADDSTATE;
1895 unsigned IOCTL_DIOCCLRRULECTRS = DIOCCLRRULECTRS;
1896 unsigned IOCTL_DIOCGETLIMIT = DIOCGETLIMIT;
1897 unsigned IOCTL_DIOCSETLIMIT = DIOCSETLIMIT;
1898 unsigned IOCTL_DIOCKILLSTATES = DIOCKILLSTATES;
1899 unsigned IOCTL_DIOCSTARTALTQ = DIOCSTARTALTQ;
1900 unsigned IOCTL_DIOCSTOPALTQ = DIOCSTOPALTQ;
1901 unsigned IOCTL_DIOCADDALTQ = DIOCADDALTQ;
1902 unsigned IOCTL_DIOCGETALTQS = DIOCGETALTQS;
1903 unsigned IOCTL_DIOCGETALTQ = DIOCGETALTQ;
1904 unsigned IOCTL_DIOCCHANGEALTQ = DIOCCHANGEALTQ;
1905 unsigned IOCTL_DIOCGETQSTATS = DIOCGETQSTATS;
1906 unsigned IOCTL_DIOCBEGINADDRS = DIOCBEGINADDRS;
1907 unsigned IOCTL_DIOCADDADDR = DIOCADDADDR;
1908 unsigned IOCTL_DIOCGETADDRS = DIOCGETADDRS;
1909 unsigned IOCTL_DIOCGETADDR = DIOCGETADDR;
1910 unsigned IOCTL_DIOCCHANGEADDR = DIOCCHANGEADDR;
1911 unsigned IOCTL_DIOCADDSTATES = DIOCADDSTATES;
1912 unsigned IOCTL_DIOCGETRULESETS = DIOCGETRULESETS;
1913 unsigned IOCTL_DIOCGETRULESET = DIOCGETRULESET;
1914 unsigned IOCTL_DIOCRCLRTABLES = DIOCRCLRTABLES;
1915 unsigned IOCTL_DIOCRADDTABLES = DIOCRADDTABLES;
1916 unsigned IOCTL_DIOCRDELTABLES = DIOCRDELTABLES;
1917 unsigned IOCTL_DIOCRGETTABLES = DIOCRGETTABLES;
1918 unsigned IOCTL_DIOCRGETTSTATS = DIOCRGETTSTATS;
1919 unsigned IOCTL_DIOCRCLRTSTATS = DIOCRCLRTSTATS;
1920 unsigned IOCTL_DIOCRCLRADDRS = DIOCRCLRADDRS;
1921 unsigned IOCTL_DIOCRADDADDRS = DIOCRADDADDRS;
1922 unsigned IOCTL_DIOCRDELADDRS = DIOCRDELADDRS;
1923 unsigned IOCTL_DIOCRSETADDRS = DIOCRSETADDRS;
1924 unsigned IOCTL_DIOCRGETADDRS = DIOCRGETADDRS;
1925 unsigned IOCTL_DIOCRGETASTATS = DIOCRGETASTATS;
1926 unsigned IOCTL_DIOCRCLRASTATS = DIOCRCLRASTATS;
1927 unsigned IOCTL_DIOCRTSTADDRS = DIOCRTSTADDRS;
1928 unsigned IOCTL_DIOCRSETTFLAGS = DIOCRSETTFLAGS;
1929 unsigned IOCTL_DIOCRINADEFINE = DIOCRINADEFINE;
1930 unsigned IOCTL_DIOCOSFPFLUSH = DIOCOSFPFLUSH;
1931 unsigned IOCTL_DIOCOSFPADD = DIOCOSFPADD;
1932 unsigned IOCTL_DIOCOSFPGET = DIOCOSFPGET;
1933 unsigned IOCTL_DIOCXBEGIN = DIOCXBEGIN;
1934 unsigned IOCTL_DIOCXCOMMIT = DIOCXCOMMIT;
1935 unsigned IOCTL_DIOCXROLLBACK = DIOCXROLLBACK;
1936 unsigned IOCTL_DIOCGETSRCNODES = DIOCGETSRCNODES;
1937 unsigned IOCTL_DIOCCLRSRCNODES = DIOCCLRSRCNODES;
1938 unsigned IOCTL_DIOCSETHOSTID = DIOCSETHOSTID;
1939 unsigned IOCTL_DIOCIGETIFACES = DIOCIGETIFACES;
1940 unsigned IOCTL_DIOCSETIFFLAG = DIOCSETIFFLAG;
1941 unsigned IOCTL_DIOCCLRIFFLAG = DIOCCLRIFFLAG;
1942 unsigned IOCTL_DIOCKILLSRCNODES = DIOCKILLSRCNODES;
1943 unsigned IOCTL_SLIOCGUNIT = SLIOCGUNIT;
1944 unsigned IOCTL_SIOCGBTINFO = SIOCGBTINFO;
1945 unsigned IOCTL_SIOCGBTINFOA = SIOCGBTINFOA;
1946 unsigned IOCTL_SIOCNBTINFO = SIOCNBTINFO;
1947 unsigned IOCTL_SIOCSBTFLAGS = SIOCSBTFLAGS;
1948 unsigned IOCTL_SIOCSBTPOLICY = SIOCSBTPOLICY;
1949 unsigned IOCTL_SIOCSBTPTYPE = SIOCSBTPTYPE;
1950 unsigned IOCTL_SIOCGBTSTATS = SIOCGBTSTATS;
1951 unsigned IOCTL_SIOCZBTSTATS = SIOCZBTSTATS;
1952 unsigned IOCTL_SIOCBTDUMP = SIOCBTDUMP;
1953 unsigned IOCTL_SIOCSBTSCOMTU = SIOCSBTSCOMTU;
1954 unsigned IOCTL_SIOCGBTFEAT = SIOCGBTFEAT;
1955 unsigned IOCTL_SIOCADNAT = SIOCADNAT;
1956 unsigned IOCTL_SIOCRMNAT = SIOCRMNAT;
1957 unsigned IOCTL_SIOCGNATS = SIOCGNATS;
1958 unsigned IOCTL_SIOCGNATL = SIOCGNATL;
1959 unsigned IOCTL_SIOCPURGENAT = SIOCPURGENAT;
1960 unsigned IOCTL_SIOCCONNECTX = SIOCCONNECTX;
1961 unsigned IOCTL_SIOCCONNECTXDEL = SIOCCONNECTXDEL;
1962 unsigned IOCTL_SIOCSIFINFO_FLAGS = SIOCSIFINFO_FLAGS;
1963 unsigned IOCTL_SIOCAADDRCTL_POLICY = SIOCAADDRCTL_POLICY;
1964 unsigned IOCTL_SIOCDADDRCTL_POLICY = SIOCDADDRCTL_POLICY;
1965 unsigned IOCTL_SMBIOC_OPENSESSION = SMBIOC_OPENSESSION;
1966 unsigned IOCTL_SMBIOC_OPENSHARE = SMBIOC_OPENSHARE;
1967 unsigned IOCTL_SMBIOC_REQUEST = SMBIOC_REQUEST;
1968 unsigned IOCTL_SMBIOC_SETFLAGS = SMBIOC_SETFLAGS;
1969 unsigned IOCTL_SMBIOC_LOOKUP = SMBIOC_LOOKUP;
1970 unsigned IOCTL_SMBIOC_READ = SMBIOC_READ;
1971 unsigned IOCTL_SMBIOC_WRITE = SMBIOC_WRITE;
1972 unsigned IOCTL_AGPIOC_INFO = AGPIOC_INFO;
1973 unsigned IOCTL_AGPIOC_ACQUIRE = AGPIOC_ACQUIRE;
1974 unsigned IOCTL_AGPIOC_RELEASE = AGPIOC_RELEASE;
1975 unsigned IOCTL_AGPIOC_SETUP = AGPIOC_SETUP;
1976 unsigned IOCTL_AGPIOC_ALLOCATE = AGPIOC_ALLOCATE;
1977 unsigned IOCTL_AGPIOC_DEALLOCATE = AGPIOC_DEALLOCATE;
1978 unsigned IOCTL_AGPIOC_BIND = AGPIOC_BIND;
1979 unsigned IOCTL_AGPIOC_UNBIND = AGPIOC_UNBIND;
1980 unsigned IOCTL_AUDIO_GETINFO = AUDIO_GETINFO;
1981 unsigned IOCTL_AUDIO_SETINFO = AUDIO_SETINFO;
1982 unsigned IOCTL_AUDIO_DRAIN = AUDIO_DRAIN;
1983 unsigned IOCTL_AUDIO_FLUSH = AUDIO_FLUSH;
1984 unsigned IOCTL_AUDIO_WSEEK = AUDIO_WSEEK;
1985 unsigned IOCTL_AUDIO_RERROR = AUDIO_RERROR;
1986 unsigned IOCTL_AUDIO_GETDEV = AUDIO_GETDEV;
1987 unsigned IOCTL_AUDIO_GETENC = AUDIO_GETENC;
1988 unsigned IOCTL_AUDIO_GETFD = AUDIO_GETFD;
1989 unsigned IOCTL_AUDIO_SETFD = AUDIO_SETFD;
1990 unsigned IOCTL_AUDIO_PERROR = AUDIO_PERROR;
1991 unsigned IOCTL_AUDIO_GETIOFFS = AUDIO_GETIOFFS;
1992 unsigned IOCTL_AUDIO_GETOOFFS = AUDIO_GETOOFFS;
1993 unsigned IOCTL_AUDIO_GETPROPS = AUDIO_GETPROPS;
1994 unsigned IOCTL_AUDIO_GETBUFINFO = AUDIO_GETBUFINFO;
1995 unsigned IOCTL_AUDIO_SETCHAN = AUDIO_SETCHAN;
1996 unsigned IOCTL_AUDIO_GETCHAN = AUDIO_GETCHAN;
1997 unsigned IOCTL_AUDIO_QUERYFORMAT = AUDIO_QUERYFORMAT;
1998 unsigned IOCTL_AUDIO_GETFORMAT = AUDIO_GETFORMAT;
1999 unsigned IOCTL_AUDIO_SETFORMAT = AUDIO_SETFORMAT;
2000 unsigned IOCTL_AUDIO_MIXER_READ = AUDIO_MIXER_READ;
2001 unsigned IOCTL_AUDIO_MIXER_WRITE = AUDIO_MIXER_WRITE;
2002 unsigned IOCTL_AUDIO_MIXER_DEVINFO = AUDIO_MIXER_DEVINFO;
2003 unsigned IOCTL_ATAIOCCOMMAND = ATAIOCCOMMAND;
2004 unsigned IOCTL_ATABUSIOSCAN = ATABUSIOSCAN;
2005 unsigned IOCTL_ATABUSIORESET = ATABUSIORESET;
2006 unsigned IOCTL_ATABUSIODETACH = ATABUSIODETACH;
2007 unsigned IOCTL_CDIOCPLAYTRACKS = CDIOCPLAYTRACKS;
2008 unsigned IOCTL_CDIOCPLAYBLOCKS = CDIOCPLAYBLOCKS;
2009 unsigned IOCTL_CDIOCREADSUBCHANNEL = CDIOCREADSUBCHANNEL;
2010 unsigned IOCTL_CDIOREADTOCHEADER = CDIOREADTOCHEADER;
2011 unsigned IOCTL_CDIOREADTOCENTRIES = CDIOREADTOCENTRIES;
2012 unsigned IOCTL_CDIOREADMSADDR = CDIOREADMSADDR;
2013 unsigned IOCTL_CDIOCSETPATCH = CDIOCSETPATCH;
2014 unsigned IOCTL_CDIOCGETVOL = CDIOCGETVOL;
2015 unsigned IOCTL_CDIOCSETVOL = CDIOCSETVOL;
2016 unsigned IOCTL_CDIOCSETMONO = CDIOCSETMONO;
2017 unsigned IOCTL_CDIOCSETSTEREO = CDIOCSETSTEREO;
2018 unsigned IOCTL_CDIOCSETMUTE = CDIOCSETMUTE;
2019 unsigned IOCTL_CDIOCSETLEFT = CDIOCSETLEFT;
2020 unsigned IOCTL_CDIOCSETRIGHT = CDIOCSETRIGHT;
2021 unsigned IOCTL_CDIOCSETDEBUG = CDIOCSETDEBUG;
2022 unsigned IOCTL_CDIOCCLRDEBUG = CDIOCCLRDEBUG;
2023 unsigned IOCTL_CDIOCPAUSE = CDIOCPAUSE;
2024 unsigned IOCTL_CDIOCRESUME = CDIOCRESUME;
2025 unsigned IOCTL_CDIOCRESET = CDIOCRESET;
2026 unsigned IOCTL_CDIOCSTART = CDIOCSTART;
2027 unsigned IOCTL_CDIOCSTOP = CDIOCSTOP;
2028 unsigned IOCTL_CDIOCEJECT = CDIOCEJECT;
2029 unsigned IOCTL_CDIOCALLOW = CDIOCALLOW;
2030 unsigned IOCTL_CDIOCPREVENT = CDIOCPREVENT;
2031 unsigned IOCTL_CDIOCCLOSE = CDIOCCLOSE;
2032 unsigned IOCTL_CDIOCPLAYMSF = CDIOCPLAYMSF;
2033 unsigned IOCTL_CDIOCLOADUNLOAD = CDIOCLOADUNLOAD;
2034 unsigned IOCTL_CHIOMOVE = CHIOMOVE;
2035 unsigned IOCTL_CHIOEXCHANGE = CHIOEXCHANGE;
2036 unsigned IOCTL_CHIOPOSITION = CHIOPOSITION;
2037 unsigned IOCTL_CHIOGPICKER = CHIOGPICKER;
2038 unsigned IOCTL_CHIOSPICKER = CHIOSPICKER;
2039 unsigned IOCTL_CHIOGPARAMS = CHIOGPARAMS;
2040 unsigned IOCTL_CHIOIELEM = CHIOIELEM;
2041 unsigned IOCTL_OCHIOGSTATUS = OCHIOGSTATUS;
2042 unsigned IOCTL_CHIOGSTATUS = CHIOGSTATUS;
2043 unsigned IOCTL_CHIOSVOLTAG = CHIOSVOLTAG;
2044 unsigned IOCTL_CLOCKCTL_SETTIMEOFDAY = CLOCKCTL_SETTIMEOFDAY;
2045 unsigned IOCTL_CLOCKCTL_ADJTIME = CLOCKCTL_ADJTIME;
2046 unsigned IOCTL_CLOCKCTL_CLOCK_SETTIME = CLOCKCTL_CLOCK_SETTIME;
2047 unsigned IOCTL_CLOCKCTL_NTP_ADJTIME = CLOCKCTL_NTP_ADJTIME;
2048 unsigned IOCTL_IOC_CPU_SETSTATE = IOC_CPU_SETSTATE;
2049 unsigned IOCTL_IOC_CPU_GETSTATE = IOC_CPU_GETSTATE;
2050 unsigned IOCTL_IOC_CPU_GETCOUNT = IOC_CPU_GETCOUNT;
2051 unsigned IOCTL_IOC_CPU_MAPID = IOC_CPU_MAPID;
2052 unsigned IOCTL_IOC_CPU_UCODE_GET_VERSION = IOC_CPU_UCODE_GET_VERSION;
2053 unsigned IOCTL_IOC_CPU_UCODE_APPLY = IOC_CPU_UCODE_APPLY;
2054 unsigned IOCTL_DIOCGDINFO = DIOCGDINFO;
2055 unsigned IOCTL_DIOCSDINFO = DIOCSDINFO;
2056 unsigned IOCTL_DIOCWDINFO = DIOCWDINFO;
2057 unsigned IOCTL_DIOCRFORMAT = DIOCRFORMAT;
2058 unsigned IOCTL_DIOCWFORMAT = DIOCWFORMAT;
2059 unsigned IOCTL_DIOCSSTEP = DIOCSSTEP;
2060 unsigned IOCTL_DIOCSRETRIES = DIOCSRETRIES;
2061 unsigned IOCTL_DIOCKLABEL = DIOCKLABEL;
2062 unsigned IOCTL_DIOCWLABEL = DIOCWLABEL;
2063 unsigned IOCTL_DIOCSBAD = DIOCSBAD;
2064 unsigned IOCTL_DIOCEJECT = DIOCEJECT;
2065 unsigned IOCTL_ODIOCEJECT = ODIOCEJECT;
2066 unsigned IOCTL_DIOCLOCK = DIOCLOCK;
2067 unsigned IOCTL_DIOCGDEFLABEL = DIOCGDEFLABEL;
2068 unsigned IOCTL_DIOCCLRLABEL = DIOCCLRLABEL;
2069 unsigned IOCTL_DIOCGCACHE = DIOCGCACHE;
2070 unsigned IOCTL_DIOCSCACHE = DIOCSCACHE;
2071 unsigned IOCTL_DIOCCACHESYNC = DIOCCACHESYNC;
2072 unsigned IOCTL_DIOCBSLIST = DIOCBSLIST;
2073 unsigned IOCTL_DIOCBSFLUSH = DIOCBSFLUSH;
2074 unsigned IOCTL_DIOCAWEDGE = DIOCAWEDGE;
2075 unsigned IOCTL_DIOCGWEDGEINFO = DIOCGWEDGEINFO;
2076 unsigned IOCTL_DIOCDWEDGE = DIOCDWEDGE;
2077 unsigned IOCTL_DIOCLWEDGES = DIOCLWEDGES;
2078 unsigned IOCTL_DIOCGSTRATEGY = DIOCGSTRATEGY;
2079 unsigned IOCTL_DIOCSSTRATEGY = DIOCSSTRATEGY;
2080 unsigned IOCTL_DIOCGDISKINFO = DIOCGDISKINFO;
2081 unsigned IOCTL_DIOCTUR = DIOCTUR;
2082 unsigned IOCTL_DIOCMWEDGES = DIOCMWEDGES;
2083 unsigned IOCTL_DIOCGSECTORSIZE = DIOCGSECTORSIZE;
2084 unsigned IOCTL_DIOCGMEDIASIZE = DIOCGMEDIASIZE;
2085 unsigned IOCTL_DIOCRMWEDGES = DIOCRMWEDGES;
2086 unsigned IOCTL_DRVDETACHDEV = DRVDETACHDEV;
2087 unsigned IOCTL_DRVRESCANBUS = DRVRESCANBUS;
2088 unsigned IOCTL_DRVCTLCOMMAND = DRVCTLCOMMAND;
2089 unsigned IOCTL_DRVRESUMEDEV = DRVRESUMEDEV;
2090 unsigned IOCTL_DRVLISTDEV = DRVLISTDEV;
2091 unsigned IOCTL_DRVGETEVENT = DRVGETEVENT;
2092 unsigned IOCTL_DRVSUSPENDDEV = DRVSUSPENDDEV;
2093 unsigned IOCTL_DVD_READ_STRUCT = DVD_READ_STRUCT;
2094 unsigned IOCTL_DVD_WRITE_STRUCT = DVD_WRITE_STRUCT;
2095 unsigned IOCTL_DVD_AUTH = DVD_AUTH;
2096 unsigned IOCTL_ENVSYS_GETDICTIONARY = ENVSYS_GETDICTIONARY;
2097 unsigned IOCTL_ENVSYS_SETDICTIONARY = ENVSYS_SETDICTIONARY;
2098 unsigned IOCTL_ENVSYS_REMOVEPROPS = ENVSYS_REMOVEPROPS;
2099 unsigned IOCTL_ENVSYS_GTREDATA = ENVSYS_GTREDATA;
2100 unsigned IOCTL_ENVSYS_GTREINFO = ENVSYS_GTREINFO;
2101 unsigned IOCTL_KFILTER_BYFILTER = KFILTER_BYFILTER;
2102 unsigned IOCTL_KFILTER_BYNAME = KFILTER_BYNAME;
2103 unsigned IOCTL_FDIOCGETOPTS = FDIOCGETOPTS;
2104 unsigned IOCTL_FDIOCSETOPTS = FDIOCSETOPTS;
2105 unsigned IOCTL_FDIOCSETFORMAT = FDIOCSETFORMAT;
2106 unsigned IOCTL_FDIOCGETFORMAT = FDIOCGETFORMAT;
2107 unsigned IOCTL_FDIOCFORMAT_TRACK = FDIOCFORMAT_TRACK;
2108 unsigned IOCTL_FIOCLEX = FIOCLEX;
2109 unsigned IOCTL_FIONCLEX = FIONCLEX;
2110 unsigned IOCTL_FIOSEEKDATA = FIOSEEKDATA;
2111 unsigned IOCTL_FIOSEEKHOLE = FIOSEEKHOLE;
2112 unsigned IOCTL_FIONREAD = FIONREAD;
2113 unsigned IOCTL_FIONBIO = FIONBIO;
2114 unsigned IOCTL_FIOASYNC = FIOASYNC;
2115 unsigned IOCTL_FIOSETOWN = FIOSETOWN;
2116 unsigned IOCTL_FIOGETOWN = FIOGETOWN;
2117 unsigned IOCTL_OFIOGETBMAP = OFIOGETBMAP;
2118 unsigned IOCTL_FIOGETBMAP = FIOGETBMAP;
2119 unsigned IOCTL_FIONWRITE = FIONWRITE;
2120 unsigned IOCTL_FIONSPACE = FIONSPACE;
2121 unsigned IOCTL_GPIOINFO = GPIOINFO;
2122 unsigned IOCTL_GPIOSET = GPIOSET;
2123 unsigned IOCTL_GPIOUNSET = GPIOUNSET;
2124 unsigned IOCTL_GPIOREAD = GPIOREAD;
2125 unsigned IOCTL_GPIOWRITE = GPIOWRITE;
2126 unsigned IOCTL_GPIOTOGGLE = GPIOTOGGLE;
2127 unsigned IOCTL_GPIOATTACH = GPIOATTACH;
2128 unsigned IOCTL_PTIOCNETBSD = PTIOCNETBSD;
2129 unsigned IOCTL_PTIOCSUNOS = PTIOCSUNOS;
2130 unsigned IOCTL_PTIOCLINUX = PTIOCLINUX;
2131 unsigned IOCTL_PTIOCFREEBSD = PTIOCFREEBSD;
2132 unsigned IOCTL_PTIOCULTRIX = PTIOCULTRIX;
2133 unsigned IOCTL_TIOCHPCL = TIOCHPCL;
2134 unsigned IOCTL_TIOCGETP = TIOCGETP;
2135 unsigned IOCTL_TIOCSETP = TIOCSETP;
2136 unsigned IOCTL_TIOCSETN = TIOCSETN;
2137 unsigned IOCTL_TIOCSETC = TIOCSETC;
2138 unsigned IOCTL_TIOCGETC = TIOCGETC;
2139 unsigned IOCTL_TIOCLBIS = TIOCLBIS;
2140 unsigned IOCTL_TIOCLBIC = TIOCLBIC;
2141 unsigned IOCTL_TIOCLSET = TIOCLSET;
2142 unsigned IOCTL_TIOCLGET = TIOCLGET;
2143 unsigned IOCTL_TIOCSLTC = TIOCSLTC;
2144 unsigned IOCTL_TIOCGLTC = TIOCGLTC;
2145 unsigned IOCTL_OTIOCCONS = OTIOCCONS;
2146 unsigned IOCTL_JOY_SETTIMEOUT = JOY_SETTIMEOUT;
2147 unsigned IOCTL_JOY_GETTIMEOUT = JOY_GETTIMEOUT;
2148 unsigned IOCTL_JOY_SET_X_OFFSET = JOY_SET_X_OFFSET;
2149 unsigned IOCTL_JOY_SET_Y_OFFSET = JOY_SET_Y_OFFSET;
2150 unsigned IOCTL_JOY_GET_X_OFFSET = JOY_GET_X_OFFSET;
2151 unsigned IOCTL_JOY_GET_Y_OFFSET = JOY_GET_Y_OFFSET;
2152 unsigned IOCTL_OKIOCGSYMBOL = OKIOCGSYMBOL;
2153 unsigned IOCTL_OKIOCGVALUE = OKIOCGVALUE;
2154 unsigned IOCTL_KIOCGSIZE = KIOCGSIZE;
2155 unsigned IOCTL_KIOCGVALUE = KIOCGVALUE;
2156 unsigned IOCTL_KIOCGSYMBOL = KIOCGSYMBOL;
2157 unsigned IOCTL_LUAINFO = LUAINFO;
2158 unsigned IOCTL_LUACREATE = LUACREATE;
2159 unsigned IOCTL_LUADESTROY = LUADESTROY;
2160 unsigned IOCTL_LUAREQUIRE = LUAREQUIRE;
2161 unsigned IOCTL_LUALOAD = LUALOAD;
2162 unsigned IOCTL_MIDI_PRETIME = MIDI_PRETIME;
2163 unsigned IOCTL_MIDI_MPUMODE = MIDI_MPUMODE;
2164 unsigned IOCTL_MIDI_MPUCMD = MIDI_MPUCMD;
2165 unsigned IOCTL_SEQUENCER_RESET = SEQUENCER_RESET;
2166 unsigned IOCTL_SEQUENCER_SYNC = SEQUENCER_SYNC;
2167 unsigned IOCTL_SEQUENCER_INFO = SEQUENCER_INFO;
2168 unsigned IOCTL_SEQUENCER_CTRLRATE = SEQUENCER_CTRLRATE;
2169 unsigned IOCTL_SEQUENCER_GETOUTCOUNT = SEQUENCER_GETOUTCOUNT;
2170 unsigned IOCTL_SEQUENCER_GETINCOUNT = SEQUENCER_GETINCOUNT;
2171 unsigned IOCTL_SEQUENCER_RESETSAMPLES = SEQUENCER_RESETSAMPLES;
2172 unsigned IOCTL_SEQUENCER_NRSYNTHS = SEQUENCER_NRSYNTHS;
2173 unsigned IOCTL_SEQUENCER_NRMIDIS = SEQUENCER_NRMIDIS;
2174 unsigned IOCTL_SEQUENCER_THRESHOLD = SEQUENCER_THRESHOLD;
2175 unsigned IOCTL_SEQUENCER_MEMAVL = SEQUENCER_MEMAVL;
2176 unsigned IOCTL_SEQUENCER_PANIC = SEQUENCER_PANIC;
2177 unsigned IOCTL_SEQUENCER_OUTOFBAND = SEQUENCER_OUTOFBAND;
2178 unsigned IOCTL_SEQUENCER_GETTIME = SEQUENCER_GETTIME;
2179 unsigned IOCTL_SEQUENCER_TMR_TIMEBASE = SEQUENCER_TMR_TIMEBASE;
2180 unsigned IOCTL_SEQUENCER_TMR_START = SEQUENCER_TMR_START;
2181 unsigned IOCTL_SEQUENCER_TMR_STOP = SEQUENCER_TMR_STOP;
2182 unsigned IOCTL_SEQUENCER_TMR_CONTINUE = SEQUENCER_TMR_CONTINUE;
2183 unsigned IOCTL_SEQUENCER_TMR_TEMPO = SEQUENCER_TMR_TEMPO;
2184 unsigned IOCTL_SEQUENCER_TMR_SOURCE = SEQUENCER_TMR_SOURCE;
2185 unsigned IOCTL_SEQUENCER_TMR_METRONOME = SEQUENCER_TMR_METRONOME;
2186 unsigned IOCTL_SEQUENCER_TMR_SELECT = SEQUENCER_TMR_SELECT;
2187 unsigned IOCTL_MTIOCTOP = MTIOCTOP;
2188 unsigned IOCTL_MTIOCGET = MTIOCGET;
2189 unsigned IOCTL_MTIOCIEOT = MTIOCIEOT;
2190 unsigned IOCTL_MTIOCEEOT = MTIOCEEOT;
2191 unsigned IOCTL_MTIOCRDSPOS = MTIOCRDSPOS;
2192 unsigned IOCTL_MTIOCRDHPOS = MTIOCRDHPOS;
2193 unsigned IOCTL_MTIOCSLOCATE = MTIOCSLOCATE;
2194 unsigned IOCTL_MTIOCHLOCATE = MTIOCHLOCATE;
2195 unsigned IOCTL_POWER_EVENT_RECVDICT = POWER_EVENT_RECVDICT;
2196 unsigned IOCTL_POWER_IOC_GET_TYPE = POWER_IOC_GET_TYPE;
2197 unsigned IOCTL_RIOCGINFO = RIOCGINFO;
2198 unsigned IOCTL_RIOCSINFO = RIOCSINFO;
2199 unsigned IOCTL_RIOCSSRCH = RIOCSSRCH;
2200 unsigned IOCTL_RNDGETENTCNT = RNDGETENTCNT;
2201 unsigned IOCTL_RNDGETSRCNUM = RNDGETSRCNUM;
2202 unsigned IOCTL_RNDGETSRCNAME = RNDGETSRCNAME;
2203 unsigned IOCTL_RNDCTL = RNDCTL;
2204 unsigned IOCTL_RNDADDDATA = RNDADDDATA;
2205 unsigned IOCTL_RNDGETPOOLSTAT = RNDGETPOOLSTAT;
2206 unsigned IOCTL_RNDGETESTNUM = RNDGETESTNUM;
2207 unsigned IOCTL_RNDGETESTNAME = RNDGETESTNAME;
2208 unsigned IOCTL_SCIOCGET = SCIOCGET;
2209 unsigned IOCTL_SCIOCSET = SCIOCSET;
2210 unsigned IOCTL_SCIOCRESTART = SCIOCRESTART;
2211 unsigned IOCTL_SCIOC_USE_ADF = SCIOC_USE_ADF;
2212 unsigned IOCTL_SCIOCCOMMAND = SCIOCCOMMAND;
2213 unsigned IOCTL_SCIOCDEBUG = SCIOCDEBUG;
2214 unsigned IOCTL_SCIOCIDENTIFY = SCIOCIDENTIFY;
2215 unsigned IOCTL_OSCIOCIDENTIFY = OSCIOCIDENTIFY;
2216 unsigned IOCTL_SCIOCDECONFIG = SCIOCDECONFIG;
2217 unsigned IOCTL_SCIOCRECONFIG = SCIOCRECONFIG;
2218 unsigned IOCTL_SCIOCRESET = SCIOCRESET;
2219 unsigned IOCTL_SCBUSIOSCAN = SCBUSIOSCAN;
2220 unsigned IOCTL_SCBUSIORESET = SCBUSIORESET;
2221 unsigned IOCTL_SCBUSIODETACH = SCBUSIODETACH;
2222 unsigned IOCTL_SCBUSACCEL = SCBUSACCEL;
2223 unsigned IOCTL_SCBUSIOLLSCAN = SCBUSIOLLSCAN;
2224 unsigned IOCTL_SIOCSHIWAT = SIOCSHIWAT;
2225 unsigned IOCTL_SIOCGHIWAT = SIOCGHIWAT;
2226 unsigned IOCTL_SIOCSLOWAT = SIOCSLOWAT;
2227 unsigned IOCTL_SIOCGLOWAT = SIOCGLOWAT;
2228 unsigned IOCTL_SIOCATMARK = SIOCATMARK;
2229 unsigned IOCTL_SIOCSPGRP = SIOCSPGRP;
2230 unsigned IOCTL_SIOCGPGRP = SIOCGPGRP;
2231 unsigned IOCTL_SIOCPEELOFF = SIOCPEELOFF;
2232 unsigned IOCTL_SIOCADDRT = SIOCADDRT;
2233 unsigned IOCTL_SIOCDELRT = SIOCDELRT;
2234 unsigned IOCTL_SIOCSIFADDR = SIOCSIFADDR;
2235 unsigned IOCTL_SIOCGIFADDR = SIOCGIFADDR;
2236 unsigned IOCTL_SIOCSIFDSTADDR = SIOCSIFDSTADDR;
2237 unsigned IOCTL_SIOCGIFDSTADDR = SIOCGIFDSTADDR;
2238 unsigned IOCTL_SIOCSIFFLAGS = SIOCSIFFLAGS;
2239 unsigned IOCTL_SIOCGIFFLAGS = SIOCGIFFLAGS;
2240 unsigned IOCTL_SIOCGIFBRDADDR = SIOCGIFBRDADDR;
2241 unsigned IOCTL_SIOCSIFBRDADDR = SIOCSIFBRDADDR;
2242 unsigned IOCTL_SIOCGIFCONF = SIOCGIFCONF;
2243 unsigned IOCTL_SIOCGIFNETMASK = SIOCGIFNETMASK;
2244 unsigned IOCTL_SIOCSIFNETMASK = SIOCSIFNETMASK;
2245 unsigned IOCTL_SIOCGIFMETRIC = SIOCGIFMETRIC;
2246 unsigned IOCTL_SIOCSIFMETRIC = SIOCSIFMETRIC;
2247 unsigned IOCTL_SIOCDIFADDR = SIOCDIFADDR;
2248 unsigned IOCTL_SIOCAIFADDR = SIOCAIFADDR;
2249 unsigned IOCTL_SIOCGIFALIAS = SIOCGIFALIAS;
2250 unsigned IOCTL_SIOCGIFAFLAG_IN = SIOCGIFAFLAG_IN;
2251 unsigned IOCTL_SIOCALIFADDR = SIOCALIFADDR;
2252 unsigned IOCTL_SIOCGLIFADDR = SIOCGLIFADDR;
2253 unsigned IOCTL_SIOCDLIFADDR = SIOCDLIFADDR;
2254 unsigned IOCTL_SIOCSIFADDRPREF = SIOCSIFADDRPREF;
2255 unsigned IOCTL_SIOCGIFADDRPREF = SIOCGIFADDRPREF;
2256 unsigned IOCTL_SIOCADDMULTI = SIOCADDMULTI;
2257 unsigned IOCTL_SIOCDELMULTI = SIOCDELMULTI;
2258 unsigned IOCTL_SIOCGETVIFCNT = SIOCGETVIFCNT;
2259 unsigned IOCTL_SIOCGETSGCNT = SIOCGETSGCNT;
2260 unsigned IOCTL_SIOCSIFMEDIA = SIOCSIFMEDIA;
2261 unsigned IOCTL_SIOCGIFMEDIA = SIOCGIFMEDIA;
2262 unsigned IOCTL_SIOCSIFGENERIC = SIOCSIFGENERIC;
2263 unsigned IOCTL_SIOCGIFGENERIC = SIOCGIFGENERIC;
2264 unsigned IOCTL_SIOCSIFPHYADDR = SIOCSIFPHYADDR;
2265 unsigned IOCTL_SIOCGIFPSRCADDR = SIOCGIFPSRCADDR;
2266 unsigned IOCTL_SIOCGIFPDSTADDR = SIOCGIFPDSTADDR;
2267 unsigned IOCTL_SIOCDIFPHYADDR = SIOCDIFPHYADDR;
2268 unsigned IOCTL_SIOCSLIFPHYADDR = SIOCSLIFPHYADDR;
2269 unsigned IOCTL_SIOCGLIFPHYADDR = SIOCGLIFPHYADDR;
2270 unsigned IOCTL_SIOCSIFMTU = SIOCSIFMTU;
2271 unsigned IOCTL_SIOCGIFMTU = SIOCGIFMTU;
2272 unsigned IOCTL_SIOCSDRVSPEC = SIOCSDRVSPEC;
2273 unsigned IOCTL_SIOCGDRVSPEC = SIOCGDRVSPEC;
2274 unsigned IOCTL_SIOCIFCREATE = SIOCIFCREATE;
2275 unsigned IOCTL_SIOCIFDESTROY = SIOCIFDESTROY;
2276 unsigned IOCTL_SIOCIFGCLONERS = SIOCIFGCLONERS;
2277 unsigned IOCTL_SIOCGIFDLT = SIOCGIFDLT;
2278 unsigned IOCTL_SIOCGIFCAP = SIOCGIFCAP;
2279 unsigned IOCTL_SIOCSIFCAP = SIOCSIFCAP;
2280 unsigned IOCTL_SIOCSVH = SIOCSVH;
2281 unsigned IOCTL_SIOCGVH = SIOCGVH;
2282 unsigned IOCTL_SIOCINITIFADDR = SIOCINITIFADDR;
2283 unsigned IOCTL_SIOCGIFDATA = SIOCGIFDATA;
2284 unsigned IOCTL_SIOCZIFDATA = SIOCZIFDATA;
2285 unsigned IOCTL_SIOCGLINKSTR = SIOCGLINKSTR;
2286 unsigned IOCTL_SIOCSLINKSTR = SIOCSLINKSTR;
2287 unsigned IOCTL_SIOCGETHERCAP = SIOCGETHERCAP;
2288 unsigned IOCTL_SIOCGIFINDEX = SIOCGIFINDEX;
2289 unsigned IOCTL_SIOCSETHERCAP = SIOCSETHERCAP;
2290 unsigned IOCTL_SIOCSIFDESCR = SIOCSIFDESCR;
2291 unsigned IOCTL_SIOCGIFDESCR = SIOCGIFDESCR;
2292 unsigned IOCTL_SIOCGUMBINFO = SIOCGUMBINFO;
2293 unsigned IOCTL_SIOCSUMBPARAM = SIOCSUMBPARAM;
2294 unsigned IOCTL_SIOCGUMBPARAM = SIOCGUMBPARAM;
2295 unsigned IOCTL_SIOCSETPFSYNC = SIOCSETPFSYNC;
2296 unsigned IOCTL_SIOCGETPFSYNC = SIOCGETPFSYNC;
2297 unsigned IOCTL_PPS_IOC_CREATE = PPS_IOC_CREATE;
2298 unsigned IOCTL_PPS_IOC_DESTROY = PPS_IOC_DESTROY;
2299 unsigned IOCTL_PPS_IOC_SETPARAMS = PPS_IOC_SETPARAMS;
2300 unsigned IOCTL_PPS_IOC_GETPARAMS = PPS_IOC_GETPARAMS;
2301 unsigned IOCTL_PPS_IOC_GETCAP = PPS_IOC_GETCAP;
2302 unsigned IOCTL_PPS_IOC_FETCH = PPS_IOC_FETCH;
2303 unsigned IOCTL_PPS_IOC_KCBIND = PPS_IOC_KCBIND;
2304 unsigned IOCTL_TIOCEXCL = TIOCEXCL;
2305 unsigned IOCTL_TIOCNXCL = TIOCNXCL;
2306 unsigned IOCTL_TIOCFLUSH = TIOCFLUSH;
2307 unsigned IOCTL_TIOCGETA = TIOCGETA;
2308 unsigned IOCTL_TIOCSETA = TIOCSETA;
2309 unsigned IOCTL_TIOCSETAW = TIOCSETAW;
2310 unsigned IOCTL_TIOCSETAF = TIOCSETAF;
2311 unsigned IOCTL_TIOCGETD = TIOCGETD;
2312 unsigned IOCTL_TIOCSETD = TIOCSETD;
2313 unsigned IOCTL_TIOCGLINED = TIOCGLINED;
2314 unsigned IOCTL_TIOCSLINED = TIOCSLINED;
2315 unsigned IOCTL_TIOCSBRK = TIOCSBRK;
2316 unsigned IOCTL_TIOCCBRK = TIOCCBRK;
2317 unsigned IOCTL_TIOCSDTR = TIOCSDTR;
2318 unsigned IOCTL_TIOCCDTR = TIOCCDTR;
2319 unsigned IOCTL_TIOCGPGRP = TIOCGPGRP;
2320 unsigned IOCTL_TIOCSPGRP = TIOCSPGRP;
2321 unsigned IOCTL_TIOCOUTQ = TIOCOUTQ;
2322 unsigned IOCTL_TIOCSTI = TIOCSTI;
2323 unsigned IOCTL_TIOCNOTTY = TIOCNOTTY;
2324 unsigned IOCTL_TIOCPKT = TIOCPKT;
2325 unsigned IOCTL_TIOCSTOP = TIOCSTOP;
2326 unsigned IOCTL_TIOCSTART = TIOCSTART;
2327 unsigned IOCTL_TIOCMSET = TIOCMSET;
2328 unsigned IOCTL_TIOCMBIS = TIOCMBIS;
2329 unsigned IOCTL_TIOCMBIC = TIOCMBIC;
2330 unsigned IOCTL_TIOCMGET = TIOCMGET;
2331 unsigned IOCTL_TIOCREMOTE = TIOCREMOTE;
2332 unsigned IOCTL_TIOCGWINSZ = TIOCGWINSZ;
2333 unsigned IOCTL_TIOCSWINSZ = TIOCSWINSZ;
2334 unsigned IOCTL_TIOCUCNTL = TIOCUCNTL;
2335 unsigned IOCTL_TIOCSTAT = TIOCSTAT;
2336 unsigned IOCTL_TIOCGSID = TIOCGSID;
2337 unsigned IOCTL_TIOCCONS = TIOCCONS;
2338 unsigned IOCTL_TIOCSCTTY = TIOCSCTTY;
2339 unsigned IOCTL_TIOCEXT = TIOCEXT;
2340 unsigned IOCTL_TIOCSIG = TIOCSIG;
2341 unsigned IOCTL_TIOCDRAIN = TIOCDRAIN;
2342 unsigned IOCTL_TIOCGFLAGS = TIOCGFLAGS;
2343 unsigned IOCTL_TIOCSFLAGS = TIOCSFLAGS;
2344 unsigned IOCTL_TIOCDCDTIMESTAMP = TIOCDCDTIMESTAMP;
2345 unsigned IOCTL_TIOCPTMGET = TIOCPTMGET;
2346 unsigned IOCTL_TIOCGRANTPT = TIOCGRANTPT;
2347 unsigned IOCTL_TIOCPTSNAME = TIOCPTSNAME;
2348 unsigned IOCTL_TIOCSQSIZE = TIOCSQSIZE;
2349 unsigned IOCTL_TIOCGQSIZE = TIOCGQSIZE;
2350 unsigned IOCTL_VERIEXEC_LOAD = VERIEXEC_LOAD;
2351 unsigned IOCTL_VERIEXEC_TABLESIZE = VERIEXEC_TABLESIZE;
2352 unsigned IOCTL_VERIEXEC_DELETE = VERIEXEC_DELETE;
2353 unsigned IOCTL_VERIEXEC_QUERY = VERIEXEC_QUERY;
2354 unsigned IOCTL_VERIEXEC_DUMP = VERIEXEC_DUMP;
2355 unsigned IOCTL_VERIEXEC_FLUSH = VERIEXEC_FLUSH;
2356 unsigned IOCTL_VIDIOC_QUERYCAP = VIDIOC_QUERYCAP;
2357 unsigned IOCTL_VIDIOC_RESERVED = VIDIOC_RESERVED;
2358 unsigned IOCTL_VIDIOC_ENUM_FMT = VIDIOC_ENUM_FMT;
2359 unsigned IOCTL_VIDIOC_G_FMT = VIDIOC_G_FMT;
2360 unsigned IOCTL_VIDIOC_S_FMT = VIDIOC_S_FMT;
2361 unsigned IOCTL_VIDIOC_REQBUFS = VIDIOC_REQBUFS;
2362 unsigned IOCTL_VIDIOC_QUERYBUF = VIDIOC_QUERYBUF;
2363 unsigned IOCTL_VIDIOC_G_FBUF = VIDIOC_G_FBUF;
2364 unsigned IOCTL_VIDIOC_S_FBUF = VIDIOC_S_FBUF;
2365 unsigned IOCTL_VIDIOC_OVERLAY = VIDIOC_OVERLAY;
2366 unsigned IOCTL_VIDIOC_QBUF = VIDIOC_QBUF;
2367 unsigned IOCTL_VIDIOC_DQBUF = VIDIOC_DQBUF;
2368 unsigned IOCTL_VIDIOC_STREAMON = VIDIOC_STREAMON;
2369 unsigned IOCTL_VIDIOC_STREAMOFF = VIDIOC_STREAMOFF;
2370 unsigned IOCTL_VIDIOC_G_PARM = VIDIOC_G_PARM;
2371 unsigned IOCTL_VIDIOC_S_PARM = VIDIOC_S_PARM;
2372 unsigned IOCTL_VIDIOC_G_STD = VIDIOC_G_STD;
2373 unsigned IOCTL_VIDIOC_S_STD = VIDIOC_S_STD;
2374 unsigned IOCTL_VIDIOC_ENUMSTD = VIDIOC_ENUMSTD;
2375 unsigned IOCTL_VIDIOC_ENUMINPUT = VIDIOC_ENUMINPUT;
2376 unsigned IOCTL_VIDIOC_G_CTRL = VIDIOC_G_CTRL;
2377 unsigned IOCTL_VIDIOC_S_CTRL = VIDIOC_S_CTRL;
2378 unsigned IOCTL_VIDIOC_G_TUNER = VIDIOC_G_TUNER;
2379 unsigned IOCTL_VIDIOC_S_TUNER = VIDIOC_S_TUNER;
2380 unsigned IOCTL_VIDIOC_G_AUDIO = VIDIOC_G_AUDIO;
2381 unsigned IOCTL_VIDIOC_S_AUDIO = VIDIOC_S_AUDIO;
2382 unsigned IOCTL_VIDIOC_QUERYCTRL = VIDIOC_QUERYCTRL;
2383 unsigned IOCTL_VIDIOC_QUERYMENU = VIDIOC_QUERYMENU;
2384 unsigned IOCTL_VIDIOC_G_INPUT = VIDIOC_G_INPUT;
2385 unsigned IOCTL_VIDIOC_S_INPUT = VIDIOC_S_INPUT;
2386 unsigned IOCTL_VIDIOC_G_OUTPUT = VIDIOC_G_OUTPUT;
2387 unsigned IOCTL_VIDIOC_S_OUTPUT = VIDIOC_S_OUTPUT;
2388 unsigned IOCTL_VIDIOC_ENUMOUTPUT = VIDIOC_ENUMOUTPUT;
2389 unsigned IOCTL_VIDIOC_G_AUDOUT = VIDIOC_G_AUDOUT;
2390 unsigned IOCTL_VIDIOC_S_AUDOUT = VIDIOC_S_AUDOUT;
2391 unsigned IOCTL_VIDIOC_G_MODULATOR = VIDIOC_G_MODULATOR;
2392 unsigned IOCTL_VIDIOC_S_MODULATOR = VIDIOC_S_MODULATOR;
2393 unsigned IOCTL_VIDIOC_G_FREQUENCY = VIDIOC_G_FREQUENCY;
2394 unsigned IOCTL_VIDIOC_S_FREQUENCY = VIDIOC_S_FREQUENCY;
2395 unsigned IOCTL_VIDIOC_CROPCAP = VIDIOC_CROPCAP;
2396 unsigned IOCTL_VIDIOC_G_CROP = VIDIOC_G_CROP;
2397 unsigned IOCTL_VIDIOC_S_CROP = VIDIOC_S_CROP;
2398 unsigned IOCTL_VIDIOC_G_JPEGCOMP = VIDIOC_G_JPEGCOMP;
2399 unsigned IOCTL_VIDIOC_S_JPEGCOMP = VIDIOC_S_JPEGCOMP;
2400 unsigned IOCTL_VIDIOC_QUERYSTD = VIDIOC_QUERYSTD;
2401 unsigned IOCTL_VIDIOC_TRY_FMT = VIDIOC_TRY_FMT;
2402 unsigned IOCTL_VIDIOC_ENUMAUDIO = VIDIOC_ENUMAUDIO;
2403 unsigned IOCTL_VIDIOC_ENUMAUDOUT = VIDIOC_ENUMAUDOUT;
2404 unsigned IOCTL_VIDIOC_G_PRIORITY = VIDIOC_G_PRIORITY;
2405 unsigned IOCTL_VIDIOC_S_PRIORITY = VIDIOC_S_PRIORITY;
2406 unsigned IOCTL_VIDIOC_ENUM_FRAMESIZES = VIDIOC_ENUM_FRAMESIZES;
2407 unsigned IOCTL_VIDIOC_ENUM_FRAMEINTERVALS = VIDIOC_ENUM_FRAMEINTERVALS;
2408 unsigned IOCTL_WDOGIOC_GMODE = WDOGIOC_GMODE;
2409 unsigned IOCTL_WDOGIOC_SMODE = WDOGIOC_SMODE;
2410 unsigned IOCTL_WDOGIOC_WHICH = WDOGIOC_WHICH;
2411 unsigned IOCTL_WDOGIOC_TICKLE = WDOGIOC_TICKLE;
2412 unsigned IOCTL_WDOGIOC_GTICKLER = WDOGIOC_GTICKLER;
2413 unsigned IOCTL_WDOGIOC_GWDOGS = WDOGIOC_GWDOGS;
2414 unsigned IOCTL_KCOV_IOC_SETBUFSIZE = KCOV_IOC_SETBUFSIZE;
2415 unsigned IOCTL_KCOV_IOC_ENABLE = KCOV_IOC_ENABLE;
2416 unsigned IOCTL_KCOV_IOC_DISABLE = KCOV_IOC_DISABLE;
2417 unsigned IOCTL_IPMICTL_RECEIVE_MSG_TRUNC = IPMICTL_RECEIVE_MSG_TRUNC;
2418 unsigned IOCTL_IPMICTL_RECEIVE_MSG = IPMICTL_RECEIVE_MSG;
2419 unsigned IOCTL_IPMICTL_SEND_COMMAND = IPMICTL_SEND_COMMAND;
2420 unsigned IOCTL_IPMICTL_REGISTER_FOR_CMD = IPMICTL_REGISTER_FOR_CMD;
2421 unsigned IOCTL_IPMICTL_UNREGISTER_FOR_CMD = IPMICTL_UNREGISTER_FOR_CMD;
2422 unsigned IOCTL_IPMICTL_SET_GETS_EVENTS_CMD = IPMICTL_SET_GETS_EVENTS_CMD;
2423 unsigned IOCTL_IPMICTL_SET_MY_ADDRESS_CMD = IPMICTL_SET_MY_ADDRESS_CMD;
2424 unsigned IOCTL_IPMICTL_GET_MY_ADDRESS_CMD = IPMICTL_GET_MY_ADDRESS_CMD;
2425 unsigned IOCTL_IPMICTL_SET_MY_LUN_CMD = IPMICTL_SET_MY_LUN_CMD;
2426 unsigned IOCTL_IPMICTL_GET_MY_LUN_CMD = IPMICTL_GET_MY_LUN_CMD;
2427 unsigned IOCTL_SNDCTL_DSP_RESET = SNDCTL_DSP_RESET;
2428 unsigned IOCTL_SNDCTL_DSP_SYNC = SNDCTL_DSP_SYNC;
2429 unsigned IOCTL_SNDCTL_DSP_SPEED = SNDCTL_DSP_SPEED;
2430 unsigned IOCTL_SOUND_PCM_READ_RATE = SOUND_PCM_READ_RATE;
2431 unsigned IOCTL_SNDCTL_DSP_STEREO = SNDCTL_DSP_STEREO;
2432 unsigned IOCTL_SNDCTL_DSP_GETBLKSIZE = SNDCTL_DSP_GETBLKSIZE;
2433 unsigned IOCTL_SNDCTL_DSP_SETFMT = SNDCTL_DSP_SETFMT;
2434 unsigned IOCTL_SOUND_PCM_READ_BITS = SOUND_PCM_READ_BITS;
2435 unsigned IOCTL_SNDCTL_DSP_CHANNELS = SNDCTL_DSP_CHANNELS;
2436 unsigned IOCTL_SOUND_PCM_READ_CHANNELS = SOUND_PCM_READ_CHANNELS;
2437 unsigned IOCTL_SOUND_PCM_WRITE_FILTER = SOUND_PCM_WRITE_FILTER;
2438 unsigned IOCTL_SOUND_PCM_READ_FILTER = SOUND_PCM_READ_FILTER;
2439 unsigned IOCTL_SNDCTL_DSP_POST = SNDCTL_DSP_POST;
2440 unsigned IOCTL_SNDCTL_DSP_SUBDIVIDE = SNDCTL_DSP_SUBDIVIDE;
2441 unsigned IOCTL_SNDCTL_DSP_SETFRAGMENT = SNDCTL_DSP_SETFRAGMENT;
2442 unsigned IOCTL_SNDCTL_DSP_GETFMTS = SNDCTL_DSP_GETFMTS;
2443 unsigned IOCTL_SNDCTL_DSP_GETOSPACE = SNDCTL_DSP_GETOSPACE;
2444 unsigned IOCTL_SNDCTL_DSP_GETISPACE = SNDCTL_DSP_GETISPACE;
2445 unsigned IOCTL_SNDCTL_DSP_NONBLOCK = SNDCTL_DSP_NONBLOCK;
2446 unsigned IOCTL_SNDCTL_DSP_GETCAPS = SNDCTL_DSP_GETCAPS;
2447 unsigned IOCTL_SNDCTL_DSP_GETTRIGGER = SNDCTL_DSP_GETTRIGGER;
2448 unsigned IOCTL_SNDCTL_DSP_SETTRIGGER = SNDCTL_DSP_SETTRIGGER;
2449 unsigned IOCTL_SNDCTL_DSP_GETIPTR = SNDCTL_DSP_GETIPTR;
2450 unsigned IOCTL_SNDCTL_DSP_GETOPTR = SNDCTL_DSP_GETOPTR;
2451 unsigned IOCTL_SNDCTL_DSP_MAPINBUF = SNDCTL_DSP_MAPINBUF;
2452 unsigned IOCTL_SNDCTL_DSP_MAPOUTBUF = SNDCTL_DSP_MAPOUTBUF;
2453 unsigned IOCTL_SNDCTL_DSP_SETSYNCRO = SNDCTL_DSP_SETSYNCRO;
2454 unsigned IOCTL_SNDCTL_DSP_SETDUPLEX = SNDCTL_DSP_SETDUPLEX;
2455 unsigned IOCTL_SNDCTL_DSP_PROFILE = SNDCTL_DSP_PROFILE;
2456 unsigned IOCTL_SNDCTL_DSP_GETODELAY = SNDCTL_DSP_GETODELAY;
2457 unsigned IOCTL_SOUND_MIXER_INFO = SOUND_MIXER_INFO;
2458 unsigned IOCTL_SOUND_OLD_MIXER_INFO = SOUND_OLD_MIXER_INFO;
2459 unsigned IOCTL_OSS_GETVERSION = OSS_GETVERSION;
2460 unsigned IOCTL_SNDCTL_SYSINFO = SNDCTL_SYSINFO;
2461 unsigned IOCTL_SNDCTL_AUDIOINFO = SNDCTL_AUDIOINFO;
2462 unsigned IOCTL_SNDCTL_ENGINEINFO = SNDCTL_ENGINEINFO;
2463 unsigned IOCTL_SNDCTL_DSP_GETPLAYVOL = SNDCTL_DSP_GETPLAYVOL;
2464 unsigned IOCTL_SNDCTL_DSP_SETPLAYVOL = SNDCTL_DSP_SETPLAYVOL;
2465 unsigned IOCTL_SNDCTL_DSP_GETRECVOL = SNDCTL_DSP_GETRECVOL;
2466 unsigned IOCTL_SNDCTL_DSP_SETRECVOL = SNDCTL_DSP_SETRECVOL;
2467 unsigned IOCTL_SNDCTL_DSP_SKIP = SNDCTL_DSP_SKIP;
2468 unsigned IOCTL_SNDCTL_DSP_SILENCE = SNDCTL_DSP_SILENCE;
2470 const int si_SEGV_MAPERR = SEGV_MAPERR;
2471 const int si_SEGV_ACCERR = SEGV_ACCERR;
2473 const int modctl_load = MODCTL_LOAD;
2474 const int modctl_unload = MODCTL_UNLOAD;
2475 const int modctl_stat = MODCTL_STAT;
2476 const int modctl_exists = MODCTL_EXISTS;
2478 const unsigned SHA1_CTX_sz = sizeof(SHA1_CTX);
2479 const unsigned SHA1_return_length = SHA1_DIGEST_STRING_LENGTH;
2481 const unsigned MD4_CTX_sz = sizeof(MD4_CTX);
2482 const unsigned MD4_return_length = MD4_DIGEST_STRING_LENGTH;
2484 const unsigned RMD160_CTX_sz = sizeof(RMD160_CTX);
2485 const unsigned RMD160_return_length = RMD160_DIGEST_STRING_LENGTH;
2487 const unsigned MD5_CTX_sz = sizeof(MD5_CTX);
2488 const unsigned MD5_return_length = MD5_DIGEST_STRING_LENGTH;
2490 const unsigned fpos_t_sz = sizeof(fpos_t);
2492 const unsigned MD2_CTX_sz = sizeof(MD2_CTX);
2493 const unsigned MD2_return_length = MD2_DIGEST_STRING_LENGTH;
2495 #define SHA2_CONST(LEN) \
2496 const unsigned SHA##LEN##_CTX_sz = sizeof(SHA##LEN##_CTX); \
2497 const unsigned SHA##LEN##_return_length = SHA##LEN##_DIGEST_STRING_LENGTH; \
2498 const unsigned SHA##LEN##_block_length = SHA##LEN##_BLOCK_LENGTH; \
2499 const unsigned SHA##LEN##_digest_length = SHA##LEN##_DIGEST_LENGTH
2501 SHA2_CONST(224);
2502 SHA2_CONST(256);
2503 SHA2_CONST(384);
2504 SHA2_CONST(512);
2506 #undef SHA2_CONST
2508 const int unvis_valid = UNVIS_VALID;
2509 const int unvis_validpush = UNVIS_VALIDPUSH;
2510 } // namespace __sanitizer
2512 using namespace __sanitizer;
2514 COMPILER_CHECK(sizeof(__sanitizer_pthread_attr_t) >= sizeof(pthread_attr_t));
2516 COMPILER_CHECK(sizeof(socklen_t) == sizeof(unsigned));
2517 CHECK_TYPE_SIZE(pthread_key_t);
2519 // There are more undocumented fields in dl_phdr_info that we are not interested
2520 // in.
2521 COMPILER_CHECK(sizeof(__sanitizer_dl_phdr_info) <= sizeof(dl_phdr_info));
2522 CHECK_SIZE_AND_OFFSET(dl_phdr_info, dlpi_addr);
2523 CHECK_SIZE_AND_OFFSET(dl_phdr_info, dlpi_name);
2524 CHECK_SIZE_AND_OFFSET(dl_phdr_info, dlpi_phdr);
2525 CHECK_SIZE_AND_OFFSET(dl_phdr_info, dlpi_phnum);
2527 CHECK_TYPE_SIZE(glob_t);
2528 CHECK_SIZE_AND_OFFSET(glob_t, gl_pathc);
2529 CHECK_SIZE_AND_OFFSET(glob_t, gl_pathv);
2530 CHECK_SIZE_AND_OFFSET(glob_t, gl_offs);
2531 CHECK_SIZE_AND_OFFSET(glob_t, gl_flags);
2532 CHECK_SIZE_AND_OFFSET(glob_t, gl_closedir);
2533 CHECK_SIZE_AND_OFFSET(glob_t, gl_readdir);
2534 CHECK_SIZE_AND_OFFSET(glob_t, gl_opendir);
2535 CHECK_SIZE_AND_OFFSET(glob_t, gl_lstat);
2536 CHECK_SIZE_AND_OFFSET(glob_t, gl_stat);
2538 CHECK_TYPE_SIZE(addrinfo);
2539 CHECK_SIZE_AND_OFFSET(addrinfo, ai_flags);
2540 CHECK_SIZE_AND_OFFSET(addrinfo, ai_family);
2541 CHECK_SIZE_AND_OFFSET(addrinfo, ai_socktype);
2542 CHECK_SIZE_AND_OFFSET(addrinfo, ai_protocol);
2543 CHECK_SIZE_AND_OFFSET(addrinfo, ai_protocol);
2544 CHECK_SIZE_AND_OFFSET(addrinfo, ai_addrlen);
2545 CHECK_SIZE_AND_OFFSET(addrinfo, ai_canonname);
2546 CHECK_SIZE_AND_OFFSET(addrinfo, ai_addr);
2548 CHECK_TYPE_SIZE(hostent);
2549 CHECK_SIZE_AND_OFFSET(hostent, h_name);
2550 CHECK_SIZE_AND_OFFSET(hostent, h_aliases);
2551 CHECK_SIZE_AND_OFFSET(hostent, h_addrtype);
2552 CHECK_SIZE_AND_OFFSET(hostent, h_length);
2553 CHECK_SIZE_AND_OFFSET(hostent, h_addr_list);
2555 CHECK_TYPE_SIZE(iovec);
2556 CHECK_SIZE_AND_OFFSET(iovec, iov_base);
2557 CHECK_SIZE_AND_OFFSET(iovec, iov_len);
2559 CHECK_TYPE_SIZE(msghdr);
2560 CHECK_SIZE_AND_OFFSET(msghdr, msg_name);
2561 CHECK_SIZE_AND_OFFSET(msghdr, msg_namelen);
2562 CHECK_SIZE_AND_OFFSET(msghdr, msg_iov);
2563 CHECK_SIZE_AND_OFFSET(msghdr, msg_iovlen);
2564 CHECK_SIZE_AND_OFFSET(msghdr, msg_control);
2565 CHECK_SIZE_AND_OFFSET(msghdr, msg_controllen);
2566 CHECK_SIZE_AND_OFFSET(msghdr, msg_flags);
2568 CHECK_TYPE_SIZE(cmsghdr);
2569 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_len);
2570 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_level);
2571 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_type);
2573 COMPILER_CHECK(sizeof(__sanitizer_dirent) <= sizeof(dirent));
2574 CHECK_SIZE_AND_OFFSET(dirent, d_fileno);
2575 CHECK_SIZE_AND_OFFSET(dirent, d_reclen);
2577 CHECK_TYPE_SIZE(ifconf);
2578 CHECK_SIZE_AND_OFFSET(ifconf, ifc_len);
2579 CHECK_SIZE_AND_OFFSET(ifconf, ifc_ifcu);
2581 CHECK_TYPE_SIZE(pollfd);
2582 CHECK_SIZE_AND_OFFSET(pollfd, fd);
2583 CHECK_SIZE_AND_OFFSET(pollfd, events);
2584 CHECK_SIZE_AND_OFFSET(pollfd, revents);
2586 CHECK_TYPE_SIZE(nfds_t);
2588 CHECK_TYPE_SIZE(sigset_t);
2590 COMPILER_CHECK(sizeof(__sanitizer_sigaction) == sizeof(struct sigaction));
2591 // Can't write checks for sa_handler and sa_sigaction due to them being
2592 // preprocessor macros.
2593 CHECK_STRUCT_SIZE_AND_OFFSET(sigaction, sa_mask);
2595 CHECK_TYPE_SIZE(wordexp_t);
2596 CHECK_SIZE_AND_OFFSET(wordexp_t, we_wordc);
2597 CHECK_SIZE_AND_OFFSET(wordexp_t, we_wordv);
2598 CHECK_SIZE_AND_OFFSET(wordexp_t, we_offs);
2600 COMPILER_CHECK(sizeof(__sanitizer_FILE) <= sizeof(FILE));
2601 CHECK_SIZE_AND_OFFSET(FILE, _p);
2602 CHECK_SIZE_AND_OFFSET(FILE, _r);
2603 CHECK_SIZE_AND_OFFSET(FILE, _w);
2604 CHECK_SIZE_AND_OFFSET(FILE, _flags);
2605 CHECK_SIZE_AND_OFFSET(FILE, _file);
2606 CHECK_SIZE_AND_OFFSET(FILE, _bf);
2607 CHECK_SIZE_AND_OFFSET(FILE, _lbfsize);
2608 CHECK_SIZE_AND_OFFSET(FILE, _cookie);
2609 CHECK_SIZE_AND_OFFSET(FILE, _close);
2610 CHECK_SIZE_AND_OFFSET(FILE, _read);
2611 CHECK_SIZE_AND_OFFSET(FILE, _seek);
2612 CHECK_SIZE_AND_OFFSET(FILE, _write);
2613 CHECK_SIZE_AND_OFFSET(FILE, _ext);
2614 CHECK_SIZE_AND_OFFSET(FILE, _up);
2615 CHECK_SIZE_AND_OFFSET(FILE, _ur);
2616 CHECK_SIZE_AND_OFFSET(FILE, _ubuf);
2617 CHECK_SIZE_AND_OFFSET(FILE, _nbuf);
2618 CHECK_SIZE_AND_OFFSET(FILE, _flush);
2619 CHECK_SIZE_AND_OFFSET(FILE, _lb_unused);
2620 CHECK_SIZE_AND_OFFSET(FILE, _blksize);
2621 CHECK_SIZE_AND_OFFSET(FILE, _offset);
2623 CHECK_TYPE_SIZE(tm);
2624 CHECK_SIZE_AND_OFFSET(tm, tm_sec);
2625 CHECK_SIZE_AND_OFFSET(tm, tm_min);
2626 CHECK_SIZE_AND_OFFSET(tm, tm_hour);
2627 CHECK_SIZE_AND_OFFSET(tm, tm_mday);
2628 CHECK_SIZE_AND_OFFSET(tm, tm_mon);
2629 CHECK_SIZE_AND_OFFSET(tm, tm_year);
2630 CHECK_SIZE_AND_OFFSET(tm, tm_wday);
2631 CHECK_SIZE_AND_OFFSET(tm, tm_yday);
2632 CHECK_SIZE_AND_OFFSET(tm, tm_isdst);
2633 CHECK_SIZE_AND_OFFSET(tm, tm_gmtoff);
2634 CHECK_SIZE_AND_OFFSET(tm, tm_zone);
2636 CHECK_TYPE_SIZE(ether_addr);
2638 CHECK_TYPE_SIZE(ipc_perm);
2639 CHECK_SIZE_AND_OFFSET(ipc_perm, _key);
2640 CHECK_SIZE_AND_OFFSET(ipc_perm, _seq);
2641 CHECK_SIZE_AND_OFFSET(ipc_perm, uid);
2642 CHECK_SIZE_AND_OFFSET(ipc_perm, gid);
2643 CHECK_SIZE_AND_OFFSET(ipc_perm, cuid);
2644 CHECK_SIZE_AND_OFFSET(ipc_perm, cgid);
2645 CHECK_SIZE_AND_OFFSET(ipc_perm, mode);
2647 CHECK_TYPE_SIZE(shmid_ds);
2648 CHECK_SIZE_AND_OFFSET(shmid_ds, shm_perm);
2649 CHECK_SIZE_AND_OFFSET(shmid_ds, shm_segsz);
2650 CHECK_SIZE_AND_OFFSET(shmid_ds, shm_atime);
2651 CHECK_SIZE_AND_OFFSET(shmid_ds, shm_dtime);
2652 CHECK_SIZE_AND_OFFSET(shmid_ds, shm_ctime);
2653 CHECK_SIZE_AND_OFFSET(shmid_ds, shm_cpid);
2654 CHECK_SIZE_AND_OFFSET(shmid_ds, shm_lpid);
2655 CHECK_SIZE_AND_OFFSET(shmid_ds, shm_nattch);
2657 CHECK_TYPE_SIZE(clock_t);
2659 CHECK_TYPE_SIZE(ifaddrs);
2660 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_next);
2661 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_name);
2662 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_addr);
2663 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_netmask);
2664 // Compare against the union, because we can't reach into the union in a
2665 // compliant way.
2666 #ifdef ifa_dstaddr
2667 #undef ifa_dstaddr
2668 #endif
2669 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_dstaddr);
2670 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_data);
2672 CHECK_TYPE_SIZE(timeb);
2673 CHECK_SIZE_AND_OFFSET(timeb, time);
2674 CHECK_SIZE_AND_OFFSET(timeb, millitm);
2675 CHECK_SIZE_AND_OFFSET(timeb, timezone);
2676 CHECK_SIZE_AND_OFFSET(timeb, dstflag);
2678 CHECK_TYPE_SIZE(passwd);
2679 CHECK_SIZE_AND_OFFSET(passwd, pw_name);
2680 CHECK_SIZE_AND_OFFSET(passwd, pw_passwd);
2681 CHECK_SIZE_AND_OFFSET(passwd, pw_uid);
2682 CHECK_SIZE_AND_OFFSET(passwd, pw_gid);
2683 CHECK_SIZE_AND_OFFSET(passwd, pw_dir);
2684 CHECK_SIZE_AND_OFFSET(passwd, pw_shell);
2686 CHECK_SIZE_AND_OFFSET(passwd, pw_gecos);
2688 CHECK_TYPE_SIZE(group);
2689 CHECK_SIZE_AND_OFFSET(group, gr_name);
2690 CHECK_SIZE_AND_OFFSET(group, gr_passwd);
2691 CHECK_SIZE_AND_OFFSET(group, gr_gid);
2692 CHECK_SIZE_AND_OFFSET(group, gr_mem);
2694 CHECK_TYPE_SIZE(modctl_load_t);
2695 CHECK_SIZE_AND_OFFSET(modctl_load_t, ml_filename);
2696 CHECK_SIZE_AND_OFFSET(modctl_load_t, ml_flags);
2697 CHECK_SIZE_AND_OFFSET(modctl_load_t, ml_props);
2698 CHECK_SIZE_AND_OFFSET(modctl_load_t, ml_propslen);
2700 // Compat with 9.0
2701 struct statvfs90 {
2702 unsigned long f_flag;
2703 unsigned long f_bsize;
2704 unsigned long f_frsize;
2705 unsigned long f_iosize;
2707 u64 f_blocks;
2708 u64 f_bfree;
2709 u64 f_bavail;
2710 u64 f_bresvd;
2712 u64 f_files;
2713 u64 f_ffree;
2714 u64 f_favail;
2715 u64 f_fresvd;
2717 u64 f_syncreads;
2718 u64 f_syncwrites;
2720 u64 f_asyncreads;
2721 u64 f_asyncwrites;
2723 struct {
2724 s32 __fsid_val[2];
2725 } f_fsidx;
2726 unsigned long f_fsid;
2727 unsigned long f_namemax;
2728 u32 f_owner;
2730 u32 f_spare[4];
2732 char f_fstypename[32];
2733 char f_mntonname[32];
2734 char f_mntfromname[32];
2736 unsigned struct_statvfs90_sz = sizeof(struct statvfs90);
2738 #endif // SANITIZER_NETBSD