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