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

source code of compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.cpp