sanitizer_platform_limits_netbsd.h revision 2ff5c2beee0d03bb923d2cb294cac557172a9961
1//===-- sanitizer_platform_limits_netbsd.h --------------------------------===//
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#ifndef SANITIZER_PLATFORM_LIMITS_NETBSD_H
15#define SANITIZER_PLATFORM_LIMITS_NETBSD_H
16
17#if SANITIZER_NETBSD
18
19#include "sanitizer_internal_defs.h"
20#include "sanitizer_platform.h"
21
22namespace __sanitizer {
23void *__sanitizer_get_link_map_by_dlopen_handle(void *handle);
24# define GET_LINK_MAP_BY_DLOPEN_HANDLE(handle) \
25    (link_map *)__sanitizer_get_link_map_by_dlopen_handle(handle)
26
27extern unsigned struct_utsname_sz;
28extern unsigned struct_stat_sz;
29extern unsigned struct_rusage_sz;
30extern unsigned siginfo_t_sz;
31extern unsigned struct_itimerval_sz;
32extern unsigned pthread_t_sz;
33extern unsigned pthread_mutex_t_sz;
34extern unsigned pthread_cond_t_sz;
35extern unsigned pid_t_sz;
36extern unsigned timeval_sz;
37extern unsigned uid_t_sz;
38extern unsigned gid_t_sz;
39extern unsigned mbstate_t_sz;
40extern unsigned struct_timezone_sz;
41extern unsigned struct_tms_sz;
42extern unsigned struct_itimerspec_sz;
43extern unsigned struct_sigevent_sz;
44extern unsigned struct_stack_t_sz;
45extern unsigned struct_sched_param_sz;
46extern unsigned struct_statfs_sz;
47extern unsigned struct_sockaddr_sz;
48extern unsigned ucontext_t_sz;
49
50extern unsigned struct_rlimit_sz;
51extern unsigned struct_utimbuf_sz;
52extern unsigned struct_timespec_sz;
53extern unsigned struct_sembuf_sz;
54
55extern unsigned struct_kevent_sz;
56extern unsigned struct_FTS_sz;
57extern unsigned struct_FTSENT_sz;
58
59extern unsigned struct_regex_sz;
60extern unsigned struct_regmatch_sz;
61
62extern unsigned struct_fstab_sz;
63
64struct __sanitizer_regmatch {
65  OFF_T rm_so;
66  OFF_T rm_eo;
67};
68
69typedef struct __sanitizer_modctl_load {
70  const char *ml_filename;
71  int ml_flags;
72  const char *ml_props;
73  uptr ml_propslen;
74} __sanitizer_modctl_load_t;
75extern const int modctl_load;
76extern const int modctl_unload;
77extern const int modctl_stat;
78extern const int modctl_exists;
79
80union __sanitizer_sigval {
81  int sival_int;
82  uptr sival_ptr;
83};
84
85struct __sanitizer_sigevent {
86  int sigev_notify;
87  int sigev_signo;
88  union __sanitizer_sigval sigev_value;
89  uptr sigev_notify_function;
90  uptr sigev_notify_attributes;
91};
92
93struct __sanitizer_aiocb {
94  u64 aio_offset;
95  uptr aio_buf;
96  uptr aio_nbytes;
97  int aio_fildes;
98  int aio_lio_opcode;
99  int aio_reqprio;
100  struct __sanitizer_sigevent aio_sigevent;
101  int _state;
102  int _errno;
103  long _retval;
104};
105
106struct __sanitizer_sem_t {
107  uptr data[5];
108};
109
110struct __sanitizer_ipc_perm {
111  u32 uid;
112  u32 gid;
113  u32 cuid;
114  u32 cgid;
115  u32 mode;
116  unsigned short _seq;
117  long _key;
118};
119
120struct __sanitizer_shmid_ds {
121  __sanitizer_ipc_perm shm_perm;
122  unsigned long shm_segsz;
123  u32 shm_lpid;
124  u32 shm_cpid;
125  unsigned int shm_nattch;
126  u64 shm_atime;
127  u64 shm_dtime;
128  u64 shm_ctime;
129  void *_shm_internal;
130};
131
132struct __sanitizer_protoent {
133  char *p_name;
134  char **p_aliases;
135  int p_proto;
136};
137
138struct __sanitizer_netent {
139  char *n_name;
140  char **n_aliases;
141  int n_addrtype;
142  u32 n_net;
143};
144
145extern unsigned struct_msqid_ds_sz;
146extern unsigned struct_mq_attr_sz;
147extern unsigned struct_timex_sz;
148extern unsigned struct_statvfs_sz;
149
150struct __sanitizer_iovec {
151  void *iov_base;
152  uptr iov_len;
153};
154
155struct __sanitizer_ifaddrs {
156  struct __sanitizer_ifaddrs *ifa_next;
157  char *ifa_name;
158  unsigned int ifa_flags;
159  void *ifa_addr;     // (struct sockaddr *)
160  void *ifa_netmask;  // (struct sockaddr *)
161  void *ifa_dstaddr;  // (struct sockaddr *)
162  void *ifa_data;
163  unsigned int ifa_addrflags;
164};
165
166typedef unsigned int __sanitizer_socklen_t;
167
168typedef unsigned __sanitizer_pthread_key_t;
169
170typedef long long __sanitizer_time_t;
171typedef int __sanitizer_suseconds_t;
172
173struct __sanitizer_timeval {
174  __sanitizer_time_t tv_sec;
175  __sanitizer_suseconds_t tv_usec;
176};
177
178struct __sanitizer_itimerval {
179  struct __sanitizer_timeval it_interval;
180  struct __sanitizer_timeval it_value;
181};
182
183struct __sanitizer_timespec {
184  __sanitizer_time_t tv_sec;
185  long tv_nsec;
186};
187
188struct __sanitizer_passwd {
189  char *pw_name;
190  char *pw_passwd;
191  int pw_uid;
192  int pw_gid;
193  __sanitizer_time_t pw_change;
194  char *pw_class;
195  char *pw_gecos;
196  char *pw_dir;
197  char *pw_shell;
198  __sanitizer_time_t pw_expire;
199};
200
201struct __sanitizer_group {
202  char *gr_name;
203  char *gr_passwd;
204  int gr_gid;
205  char **gr_mem;
206};
207
208struct __sanitizer_timeb {
209  __sanitizer_time_t time;
210  unsigned short millitm;
211  short timezone;
212  short dstflag;
213};
214
215struct __sanitizer_ether_addr {
216  u8 octet[6];
217};
218
219struct __sanitizer_tm {
220  int tm_sec;
221  int tm_min;
222  int tm_hour;
223  int tm_mday;
224  int tm_mon;
225  int tm_year;
226  int tm_wday;
227  int tm_yday;
228  int tm_isdst;
229  long int tm_gmtoff;
230  const char *tm_zone;
231};
232
233struct __sanitizer_msghdr {
234  void *msg_name;
235  unsigned msg_namelen;
236  struct __sanitizer_iovec *msg_iov;
237  unsigned msg_iovlen;
238  void *msg_control;
239  unsigned msg_controllen;
240  int msg_flags;
241};
242
243struct __sanitizer_mmsghdr {
244  struct __sanitizer_msghdr msg_hdr;
245  unsigned int msg_len;
246};
247
248struct __sanitizer_cmsghdr {
249  unsigned cmsg_len;
250  int cmsg_level;
251  int cmsg_type;
252};
253
254struct __sanitizer_dirent {
255  u64 d_fileno;
256  u16 d_reclen;
257  // more fields that we don't care about
258};
259
260typedef int __sanitizer_clock_t;
261typedef int __sanitizer_clockid_t;
262
263typedef u32 __sanitizer___kernel_uid_t;
264typedef u32 __sanitizer___kernel_gid_t;
265typedef u64 __sanitizer___kernel_off_t;
266typedef struct {
267  u32 fds_bits[8];
268} __sanitizer___kernel_fd_set;
269
270typedef struct {
271  unsigned int pta_magic;
272  int pta_flags;
273  void *pta_private;
274} __sanitizer_pthread_attr_t;
275
276struct __sanitizer_sigset_t {
277  // uint32_t * 4
278  unsigned int __bits[4];
279};
280
281struct __sanitizer_siginfo {
282  // The size is determined by looking at sizeof of real siginfo_t on linux.
283  u64 opaque[128 / sizeof(u64)];
284};
285
286using __sanitizer_sighandler_ptr = void (*)(int sig);
287using __sanitizer_sigactionhandler_ptr = void (*)(int sig,
288                                                  __sanitizer_siginfo *siginfo,
289                                                  void *uctx);
290
291struct __sanitizer_sigaction {
292  union {
293    __sanitizer_sighandler_ptr handler;
294    __sanitizer_sigactionhandler_ptr sigaction;
295  };
296  __sanitizer_sigset_t sa_mask;
297  int sa_flags;
298};
299
300extern unsigned struct_sigaltstack_sz;
301
302typedef unsigned int __sanitizer_sigset13_t;
303
304struct __sanitizer_sigaction13 {
305  __sanitizer_sighandler_ptr osa_handler;
306  __sanitizer_sigset13_t osa_mask;
307  int osa_flags;
308};
309
310struct __sanitizer_sigaltstack {
311  void *ss_sp;
312  uptr ss_size;
313  int ss_flags;
314};
315
316typedef __sanitizer_sigset_t __sanitizer_kernel_sigset_t;
317
318struct __sanitizer_kernel_sigaction_t {
319  union {
320    void (*handler)(int signo);
321    void (*sigaction)(int signo, void *info, void *ctx);
322  };
323  unsigned long sa_flags;
324  void (*sa_restorer)(void);
325  __sanitizer_kernel_sigset_t sa_mask;
326};
327
328extern const uptr sig_ign;
329extern const uptr sig_dfl;
330extern const uptr sig_err;
331extern const uptr sa_siginfo;
332
333extern int af_inet;
334extern int af_inet6;
335uptr __sanitizer_in_addr_sz(int af);
336
337struct __sanitizer_dl_phdr_info {
338  uptr dlpi_addr;
339  const char *dlpi_name;
340  const void *dlpi_phdr;
341  short dlpi_phnum;
342};
343
344extern unsigned struct_ElfW_Phdr_sz;
345
346struct __sanitizer_addrinfo {
347  int ai_flags;
348  int ai_family;
349  int ai_socktype;
350  int ai_protocol;
351#if defined(__sparc__) && defined(_LP64)
352  int __ai_pad0;
353#endif
354  unsigned ai_addrlen;
355#if defined(__alpha__) || (defined(__i386__) && defined(_LP64))
356  int __ai_pad0;
357#endif
358  char *ai_canonname;
359  void *ai_addr;
360  struct __sanitizer_addrinfo *ai_next;
361};
362
363struct __sanitizer_hostent {
364  char *h_name;
365  char **h_aliases;
366  int h_addrtype;
367  int h_length;
368  char **h_addr_list;
369};
370
371struct __sanitizer_pollfd {
372  int fd;
373  short events;
374  short revents;
375};
376
377typedef unsigned __sanitizer_nfds_t;
378
379typedef int __sanitizer_lwpid_t;
380
381struct __sanitizer_glob_t {
382  uptr gl_pathc;
383  uptr gl_matchc;
384  uptr gl_offs;
385  int gl_flags;
386  char **gl_pathv;
387  int (*gl_errfunc)(const char *, int);
388  void (*gl_closedir)(void *dirp);
389  struct dirent *(*gl_readdir)(void *dirp);
390  void *(*gl_opendir)(const char *);
391  int (*gl_lstat)(const char *, void * /* struct stat* */);
392  int (*gl_stat)(const char *, void * /* struct stat* */);
393};
394
395extern int glob_nomatch;
396extern int glob_altdirfunc;
397
398extern unsigned path_max;
399
400extern int struct_ttyent_sz;
401
402extern int ptrace_pt_io;
403extern int ptrace_pt_lwpinfo;
404extern int ptrace_pt_set_event_mask;
405extern int ptrace_pt_get_event_mask;
406extern int ptrace_pt_get_process_state;
407extern int ptrace_pt_set_siginfo;
408extern int ptrace_pt_get_siginfo;
409extern int ptrace_pt_lwpstatus;
410extern int ptrace_pt_lwpnext;
411extern int ptrace_piod_read_d;
412extern int ptrace_piod_write_d;
413extern int ptrace_piod_read_i;
414extern int ptrace_piod_write_i;
415extern int ptrace_piod_read_auxv;
416extern int ptrace_pt_setregs;
417extern int ptrace_pt_getregs;
418extern int ptrace_pt_setfpregs;
419extern int ptrace_pt_getfpregs;
420extern int ptrace_pt_setdbregs;
421extern int ptrace_pt_getdbregs;
422
423struct __sanitizer_ptrace_io_desc {
424  int piod_op;
425  void *piod_offs;
426  void *piod_addr;
427  uptr piod_len;
428};
429
430struct __sanitizer_ptrace_lwpinfo {
431  __sanitizer_lwpid_t pl_lwpid;
432  int pl_event;
433};
434
435struct __sanitizer_ptrace_lwpstatus {
436  __sanitizer_lwpid_t pl_lwpid;
437  __sanitizer_sigset_t pl_sigpend;
438  __sanitizer_sigset_t pl_sigmask;
439  char pl_name[20];
440  void *pl_private;
441};
442
443extern unsigned struct_ptrace_ptrace_io_desc_struct_sz;
444extern unsigned struct_ptrace_ptrace_lwpinfo_struct_sz;
445extern unsigned struct_ptrace_ptrace_lwpstatus_struct_sz;
446extern unsigned struct_ptrace_ptrace_event_struct_sz;
447extern unsigned struct_ptrace_ptrace_siginfo_struct_sz;
448
449extern unsigned struct_ptrace_reg_struct_sz;
450extern unsigned struct_ptrace_fpreg_struct_sz;
451extern unsigned struct_ptrace_dbreg_struct_sz;
452
453struct __sanitizer_wordexp_t {
454  uptr we_wordc;
455  char **we_wordv;
456  uptr we_offs;
457  char *we_strings;
458  uptr we_nbytes;
459};
460
461struct __sanitizer_FILE {
462  unsigned char *_p;
463  int _r;
464  int _w;
465  unsigned short _flags;
466  short _file;
467  struct {
468    unsigned char *_base;
469    int _size;
470  } _bf;
471  int _lbfsize;
472  void *_cookie;
473  int (*_close)(void *ptr);
474  u64 (*_read)(void *, void *, uptr);
475  u64 (*_seek)(void *, u64, int);
476  uptr (*_write)(void *, const void *, uptr);
477  struct {
478    unsigned char *_base;
479    int _size;
480  } _ext;
481  unsigned char *_up;
482  int _ur;
483  unsigned char _ubuf[3];
484  unsigned char _nbuf[1];
485  int (*_flush)(void *ptr);
486  char _lb_unused[sizeof(uptr)];
487  int _blksize;
488  u64 _offset;
489};
490#define SANITIZER_HAS_STRUCT_FILE 1
491
492extern int shmctl_ipc_stat;
493
494// This simplifies generic code
495#define struct_shminfo_sz -1
496#define struct_shm_info_sz -1
497#define shmctl_shm_stat -1
498#define shmctl_ipc_info -1
499#define shmctl_shm_info -1
500
501extern unsigned struct_utmp_sz;
502extern unsigned struct_utmpx_sz;
503
504extern int map_fixed;
505
506// ioctl arguments
507struct __sanitizer_ifconf {
508  int ifc_len;
509  union {
510    void *ifcu_req;
511  } ifc_ifcu;
512};
513
514struct __sanitizer_ttyent {
515  char *ty_name;
516  char *ty_getty;
517  char *ty_type;
518  int ty_status;
519  char *ty_window;
520  char *ty_comment;
521  char *ty_class;
522};
523
524extern const unsigned long __sanitizer_bufsiz;
525
526#define IOC_NRBITS 8
527#define IOC_TYPEBITS 8
528#define IOC_SIZEBITS 14
529#define IOC_DIRBITS 2
530#define IOC_NONE 0U
531#define IOC_WRITE 1U
532#define IOC_READ 2U
533#define IOC_NRMASK ((1 << IOC_NRBITS) - 1)
534#define IOC_TYPEMASK ((1 << IOC_TYPEBITS) - 1)
535#define IOC_SIZEMASK ((1 << IOC_SIZEBITS) - 1)
536#undef IOC_DIRMASK
537#define IOC_DIRMASK ((1 << IOC_DIRBITS) - 1)
538#define IOC_NRSHIFT 0
539#define IOC_TYPESHIFT (IOC_NRSHIFT + IOC_NRBITS)
540#define IOC_SIZESHIFT (IOC_TYPESHIFT + IOC_TYPEBITS)
541#define IOC_DIRSHIFT (IOC_SIZESHIFT + IOC_SIZEBITS)
542#define EVIOC_EV_MAX 0x1f
543#define EVIOC_ABS_MAX 0x3f
544
545#define IOC_DIR(nr) (((nr) >> IOC_DIRSHIFT) & IOC_DIRMASK)
546#define IOC_TYPE(nr) (((nr) >> IOC_TYPESHIFT) & IOC_TYPEMASK)
547#define IOC_NR(nr) (((nr) >> IOC_NRSHIFT) & IOC_NRMASK)
548#define IOC_SIZE(nr) (((nr) >> IOC_SIZESHIFT) & IOC_SIZEMASK)
549
550// ioctl request identifiers
551
552extern unsigned struct_altqreq_sz;
553extern unsigned struct_amr_user_ioctl_sz;
554extern unsigned struct_ap_control_sz;
555extern unsigned struct_apm_ctl_sz;
556extern unsigned struct_apm_event_info_sz;
557extern unsigned struct_apm_power_info_sz;
558extern unsigned struct_atabusiodetach_args_sz;
559extern unsigned struct_atabusioscan_args_sz;
560extern unsigned struct_ath_diag_sz;
561extern unsigned struct_atm_flowmap_sz;
562extern unsigned struct_audio_buf_info_sz;
563extern unsigned struct_audio_device_sz;
564extern unsigned struct_audio_encoding_sz;
565extern unsigned struct_audio_info_sz;
566extern unsigned struct_audio_offset_sz;
567extern unsigned struct_bio_locate_sz;
568extern unsigned struct_bioc_alarm_sz;
569extern unsigned struct_bioc_blink_sz;
570extern unsigned struct_bioc_disk_sz;
571extern unsigned struct_bioc_inq_sz;
572extern unsigned struct_bioc_setstate_sz;
573extern unsigned struct_bioc_vol_sz;
574extern unsigned struct_bioc_volops_sz;
575extern unsigned struct_bktr_chnlset_sz;
576extern unsigned struct_bktr_remote_sz;
577extern unsigned struct_blue_conf_sz;
578extern unsigned struct_blue_interface_sz;
579extern unsigned struct_blue_stats_sz;
580extern unsigned struct_bpf_dltlist_sz;
581extern unsigned struct_bpf_program_sz;
582extern unsigned struct_bpf_stat_old_sz;
583extern unsigned struct_bpf_stat_sz;
584extern unsigned struct_bpf_version_sz;
585extern unsigned struct_btreq_sz;
586extern unsigned struct_btsco_info_sz;
587extern unsigned struct_buffmem_desc_sz;
588extern unsigned struct_cbq_add_class_sz;
589extern unsigned struct_cbq_add_filter_sz;
590extern unsigned struct_cbq_delete_class_sz;
591extern unsigned struct_cbq_delete_filter_sz;
592extern unsigned struct_cbq_getstats_sz;
593extern unsigned struct_cbq_interface_sz;
594extern unsigned struct_cbq_modify_class_sz;
595extern unsigned struct_ccd_ioctl_sz;
596extern unsigned struct_cdnr_add_element_sz;
597extern unsigned struct_cdnr_add_filter_sz;
598extern unsigned struct_cdnr_add_tbmeter_sz;
599extern unsigned struct_cdnr_add_trtcm_sz;
600extern unsigned struct_cdnr_add_tswtcm_sz;
601extern unsigned struct_cdnr_delete_element_sz;
602extern unsigned struct_cdnr_delete_filter_sz;
603extern unsigned struct_cdnr_get_stats_sz;
604extern unsigned struct_cdnr_interface_sz;
605extern unsigned struct_cdnr_modify_tbmeter_sz;
606extern unsigned struct_cdnr_modify_trtcm_sz;
607extern unsigned struct_cdnr_modify_tswtcm_sz;
608extern unsigned struct_cdnr_tbmeter_stats_sz;
609extern unsigned struct_cdnr_tcm_stats_sz;
610extern unsigned struct_cgd_ioctl_sz;
611extern unsigned struct_cgd_user_sz;
612extern unsigned struct_changer_element_status_request_sz;
613extern unsigned struct_changer_exchange_request_sz;
614extern unsigned struct_changer_move_request_sz;
615extern unsigned struct_changer_params_sz;
616extern unsigned struct_changer_position_request_sz;
617extern unsigned struct_changer_set_voltag_request_sz;
618extern unsigned struct_clockctl_adjtime_sz;
619extern unsigned struct_clockctl_clock_settime_sz;
620extern unsigned struct_clockctl_ntp_adjtime_sz;
621extern unsigned struct_clockctl_settimeofday_sz;
622extern unsigned struct_cnwistats_sz;
623extern unsigned struct_cnwitrail_sz;
624extern unsigned struct_cnwstatus_sz;
625extern unsigned struct_count_info_sz;
626extern unsigned struct_cpu_ucode_sz;
627extern unsigned struct_cpu_ucode_version_sz;
628extern unsigned struct_crypt_kop_sz;
629extern unsigned struct_crypt_mkop_sz;
630extern unsigned struct_crypt_mop_sz;
631extern unsigned struct_crypt_op_sz;
632extern unsigned struct_crypt_result_sz;
633extern unsigned struct_crypt_sfop_sz;
634extern unsigned struct_crypt_sgop_sz;
635extern unsigned struct_cryptret_sz;
636extern unsigned struct_devdetachargs_sz;
637extern unsigned struct_devlistargs_sz;
638extern unsigned struct_devpmargs_sz;
639extern unsigned struct_devrescanargs_sz;
640extern unsigned struct_disk_badsecinfo_sz;
641extern unsigned struct_disk_strategy_sz;
642extern unsigned struct_disklabel_sz;
643extern unsigned struct_dkbad_sz;
644extern unsigned struct_dkwedge_info_sz;
645extern unsigned struct_dkwedge_list_sz;
646extern unsigned struct_dmio_setfunc_sz;
647extern unsigned struct_dmx_pes_filter_params_sz;
648extern unsigned struct_dmx_sct_filter_params_sz;
649extern unsigned struct_dmx_stc_sz;
650extern unsigned struct_dvb_diseqc_master_cmd_sz;
651extern unsigned struct_dvb_diseqc_slave_reply_sz;
652extern unsigned struct_dvb_frontend_event_sz;
653extern unsigned struct_dvb_frontend_info_sz;
654extern unsigned struct_dvb_frontend_parameters_sz;
655extern unsigned struct_eccapreq_sz;
656extern unsigned struct_fbcmap_sz;
657extern unsigned struct_fbcurpos_sz;
658extern unsigned struct_fbcursor_sz;
659extern unsigned struct_fbgattr_sz;
660extern unsigned struct_fbsattr_sz;
661extern unsigned struct_fbtype_sz;
662extern unsigned struct_fdformat_cmd_sz;
663extern unsigned struct_fdformat_parms_sz;
664extern unsigned struct_fifoq_conf_sz;
665extern unsigned struct_fifoq_getstats_sz;
666extern unsigned struct_fifoq_interface_sz;
667extern unsigned struct_format_op_sz;
668extern unsigned struct_fss_get_sz;
669extern unsigned struct_fss_set_sz;
670extern unsigned struct_gpio_attach_sz;
671extern unsigned struct_gpio_info_sz;
672extern unsigned struct_gpio_req_sz;
673extern unsigned struct_gpio_set_sz;
674extern unsigned struct_hfsc_add_class_sz;
675extern unsigned struct_hfsc_add_filter_sz;
676extern unsigned struct_hfsc_attach_sz;
677extern unsigned struct_hfsc_class_stats_sz;
678extern unsigned struct_hfsc_delete_class_sz;
679extern unsigned struct_hfsc_delete_filter_sz;
680extern unsigned struct_hfsc_interface_sz;
681extern unsigned struct_hfsc_modify_class_sz;
682extern unsigned struct_hpcfb_dsp_op_sz;
683extern unsigned struct_hpcfb_dspconf_sz;
684extern unsigned struct_hpcfb_fbconf_sz;
685extern unsigned struct_if_addrprefreq_sz;
686extern unsigned struct_if_clonereq_sz;
687extern unsigned struct_if_laddrreq_sz;
688extern unsigned struct_ifaddr_sz;
689extern unsigned struct_ifaliasreq_sz;
690extern unsigned struct_ifcapreq_sz;
691extern unsigned struct_ifconf_sz;
692extern unsigned struct_ifdatareq_sz;
693extern unsigned struct_ifdrv_sz;
694extern unsigned struct_ifmediareq_sz;
695extern unsigned struct_ifpppcstatsreq_sz;
696extern unsigned struct_ifpppstatsreq_sz;
697extern unsigned struct_ifreq_sz;
698extern unsigned struct_in6_addrpolicy_sz;
699extern unsigned struct_in6_ndireq_sz;
700extern unsigned struct_ioc_load_unload_sz;
701extern unsigned struct_ioc_patch_sz;
702extern unsigned struct_ioc_play_blocks_sz;
703extern unsigned struct_ioc_play_msf_sz;
704extern unsigned struct_ioc_play_track_sz;
705extern unsigned struct_ioc_read_subchannel_sz;
706extern unsigned struct_ioc_read_toc_entry_sz;
707extern unsigned struct_ioc_toc_header_sz;
708extern unsigned struct_ioc_vol_sz;
709extern unsigned struct_ioctl_pt_sz;
710extern unsigned struct_ioppt_sz;
711extern unsigned struct_iovec_sz;
712extern unsigned struct_ipfobj_sz;
713extern unsigned struct_irda_params_sz;
714extern unsigned struct_isp_fc_device_sz;
715extern unsigned struct_isp_fc_tsk_mgmt_sz;
716extern unsigned struct_isp_hba_device_sz;
717extern unsigned struct_isv_cmd_sz;
718extern unsigned struct_jobs_add_class_sz;
719extern unsigned struct_jobs_add_filter_sz;
720extern unsigned struct_jobs_attach_sz;
721extern unsigned struct_jobs_class_stats_sz;
722extern unsigned struct_jobs_delete_class_sz;
723extern unsigned struct_jobs_delete_filter_sz;
724extern unsigned struct_jobs_interface_sz;
725extern unsigned struct_jobs_modify_class_sz;
726extern unsigned struct_kbentry_sz;
727extern unsigned struct_kfilter_mapping_sz;
728extern unsigned struct_kiockeymap_sz;
729extern unsigned struct_ksyms_gsymbol_sz;
730extern unsigned struct_ksyms_gvalue_sz;
731extern unsigned struct_ksyms_ogsymbol_sz;
732extern unsigned struct_kttcp_io_args_sz;
733extern unsigned struct_ltchars_sz;
734extern unsigned struct_lua_create_sz;
735extern unsigned struct_lua_info_sz;
736extern unsigned struct_lua_load_sz;
737extern unsigned struct_lua_require_sz;
738extern unsigned struct_mbpp_param_sz;
739extern unsigned struct_md_conf_sz;
740extern unsigned struct_meteor_capframe_sz;
741extern unsigned struct_meteor_counts_sz;
742extern unsigned struct_meteor_geomet_sz;
743extern unsigned struct_meteor_pixfmt_sz;
744extern unsigned struct_meteor_video_sz;
745extern unsigned struct_mlx_cinfo_sz;
746extern unsigned struct_mlx_pause_sz;
747extern unsigned struct_mlx_rebuild_request_sz;
748extern unsigned struct_mlx_rebuild_status_sz;
749extern unsigned struct_mlx_usercommand_sz;
750extern unsigned struct_mly_user_command_sz;
751extern unsigned struct_mly_user_health_sz;
752extern unsigned struct_mtget_sz;
753extern unsigned struct_mtop_sz;
754extern unsigned struct_npf_ioctl_table_sz;
755extern unsigned struct_npioctl_sz;
756extern unsigned struct_nvme_pt_command_sz;
757extern unsigned struct_ochanger_element_status_request_sz;
758extern unsigned struct_ofiocdesc_sz;
759extern unsigned struct_okiockey_sz;
760extern unsigned struct_ortentry_sz;
761extern unsigned struct_oscsi_addr_sz;
762extern unsigned struct_oss_audioinfo_sz;
763extern unsigned struct_oss_sysinfo_sz;
764extern unsigned struct_pciio_bdf_cfgreg_sz;
765extern unsigned struct_pciio_businfo_sz;
766extern unsigned struct_pciio_cfgreg_sz;
767extern unsigned struct_pciio_drvname_sz;
768extern unsigned struct_pciio_drvnameonbus_sz;
769extern unsigned struct_pcvtid_sz;
770extern unsigned struct_pf_osfp_ioctl_sz;
771extern unsigned struct_pf_status_sz;
772extern unsigned struct_pfioc_altq_sz;
773extern unsigned struct_pfioc_if_sz;
774extern unsigned struct_pfioc_iface_sz;
775extern unsigned struct_pfioc_limit_sz;
776extern unsigned struct_pfioc_natlook_sz;
777extern unsigned struct_pfioc_pooladdr_sz;
778extern unsigned struct_pfioc_qstats_sz;
779extern unsigned struct_pfioc_rule_sz;
780extern unsigned struct_pfioc_ruleset_sz;
781extern unsigned struct_pfioc_src_node_kill_sz;
782extern unsigned struct_pfioc_src_nodes_sz;
783extern unsigned struct_pfioc_state_kill_sz;
784extern unsigned struct_pfioc_state_sz;
785extern unsigned struct_pfioc_states_sz;
786extern unsigned struct_pfioc_table_sz;
787extern unsigned struct_pfioc_tm_sz;
788extern unsigned struct_pfioc_trans_sz;
789extern unsigned struct_plistref_sz;
790extern unsigned struct_power_type_sz;
791extern unsigned struct_ppp_idle_sz;
792extern unsigned struct_ppp_option_data_sz;
793extern unsigned struct_ppp_rawin_sz;
794extern unsigned struct_pppoeconnectionstate_sz;
795extern unsigned struct_pppoediscparms_sz;
796extern unsigned struct_priq_add_class_sz;
797extern unsigned struct_priq_add_filter_sz;
798extern unsigned struct_priq_class_stats_sz;
799extern unsigned struct_priq_delete_class_sz;
800extern unsigned struct_priq_delete_filter_sz;
801extern unsigned struct_priq_interface_sz;
802extern unsigned struct_priq_modify_class_sz;
803extern unsigned struct_ptmget_sz;
804extern unsigned struct_pvctxreq_sz;
805extern unsigned struct_radio_info_sz;
806extern unsigned struct_red_conf_sz;
807extern unsigned struct_red_interface_sz;
808extern unsigned struct_red_stats_sz;
809extern unsigned struct_redparams_sz;
810extern unsigned struct_rf_pmparams_sz;
811extern unsigned struct_rf_pmstat_sz;
812extern unsigned struct_rf_recon_req_sz;
813extern unsigned struct_rio_conf_sz;
814extern unsigned struct_rio_interface_sz;
815extern unsigned struct_rio_stats_sz;
816extern unsigned struct_scan_io_sz;
817extern unsigned struct_scbusaccel_args_sz;
818extern unsigned struct_scbusiodetach_args_sz;
819extern unsigned struct_scbusioscan_args_sz;
820extern unsigned struct_scsi_addr_sz;
821extern unsigned struct_seq_event_rec_sz;
822extern unsigned struct_session_op_sz;
823extern unsigned struct_sgttyb_sz;
824extern unsigned struct_sioc_sg_req_sz;
825extern unsigned struct_sioc_vif_req_sz;
826extern unsigned struct_smbioc_flags_sz;
827extern unsigned struct_smbioc_lookup_sz;
828extern unsigned struct_smbioc_oshare_sz;
829extern unsigned struct_smbioc_ossn_sz;
830extern unsigned struct_smbioc_rq_sz;
831extern unsigned struct_smbioc_rw_sz;
832extern unsigned struct_spppauthcfg_sz;
833extern unsigned struct_spppauthfailuresettings_sz;
834extern unsigned struct_spppauthfailurestats_sz;
835extern unsigned struct_spppdnsaddrs_sz;
836extern unsigned struct_spppdnssettings_sz;
837extern unsigned struct_spppidletimeout_sz;
838extern unsigned struct_spppkeepalivesettings_sz;
839extern unsigned struct_sppplcpcfg_sz;
840extern unsigned struct_spppstatus_sz;
841extern unsigned struct_spppstatusncp_sz;
842extern unsigned struct_srt_rt_sz;
843extern unsigned struct_stic_xinfo_sz;
844extern unsigned struct_sun_dkctlr_sz;
845extern unsigned struct_sun_dkgeom_sz;
846extern unsigned struct_sun_dkpart_sz;
847extern unsigned struct_synth_info_sz;
848extern unsigned struct_tbrreq_sz;
849extern unsigned struct_tchars_sz;
850extern unsigned struct_termios_sz;
851extern unsigned struct_timeval_sz;
852extern unsigned struct_twe_drivecommand_sz;
853extern unsigned struct_twe_paramcommand_sz;
854extern unsigned struct_twe_usercommand_sz;
855extern unsigned struct_ukyopon_identify_sz;
856extern unsigned struct_urio_command_sz;
857extern unsigned struct_usb_alt_interface_sz;
858extern unsigned struct_usb_bulk_ra_wb_opt_sz;
859extern unsigned struct_usb_config_desc_sz;
860extern unsigned struct_usb_ctl_report_desc_sz;
861extern unsigned struct_usb_ctl_report_sz;
862extern unsigned struct_usb_ctl_request_sz;
863#if defined(__x86_64__)
864extern unsigned struct_nvmm_ioc_capability_sz;
865extern unsigned struct_nvmm_ioc_machine_create_sz;
866extern unsigned struct_nvmm_ioc_machine_destroy_sz;
867extern unsigned struct_nvmm_ioc_machine_configure_sz;
868extern unsigned struct_nvmm_ioc_vcpu_create_sz;
869extern unsigned struct_nvmm_ioc_vcpu_destroy_sz;
870extern unsigned struct_nvmm_ioc_vcpu_configure_sz;
871extern unsigned struct_nvmm_ioc_vcpu_setstate_sz;
872extern unsigned struct_nvmm_ioc_vcpu_getstate_sz;
873extern unsigned struct_nvmm_ioc_vcpu_inject_sz;
874extern unsigned struct_nvmm_ioc_vcpu_run_sz;
875extern unsigned struct_nvmm_ioc_gpa_map_sz;
876extern unsigned struct_nvmm_ioc_gpa_unmap_sz;
877extern unsigned struct_nvmm_ioc_hva_map_sz;
878extern unsigned struct_nvmm_ioc_hva_unmap_sz;
879extern unsigned struct_nvmm_ioc_ctl_sz;
880#endif
881extern unsigned struct_spi_ioctl_configure_sz;
882extern unsigned struct_spi_ioctl_transfer_sz;
883extern unsigned struct_autofs_daemon_request_sz;
884extern unsigned struct_autofs_daemon_done_sz;
885extern unsigned struct_sctp_connectx_addrs_sz;
886extern unsigned struct_usb_device_info_old_sz;
887extern unsigned struct_usb_device_info_sz;
888extern unsigned struct_usb_device_stats_sz;
889extern unsigned struct_usb_endpoint_desc_sz;
890extern unsigned struct_usb_full_desc_sz;
891extern unsigned struct_usb_interface_desc_sz;
892extern unsigned struct_usb_string_desc_sz;
893extern unsigned struct_utoppy_readfile_sz;
894extern unsigned struct_utoppy_rename_sz;
895extern unsigned struct_utoppy_stats_sz;
896extern unsigned struct_utoppy_writefile_sz;
897extern unsigned struct_v4l2_audio_sz;
898extern unsigned struct_v4l2_audioout_sz;
899extern unsigned struct_v4l2_buffer_sz;
900extern unsigned struct_v4l2_capability_sz;
901extern unsigned struct_v4l2_control_sz;
902extern unsigned struct_v4l2_crop_sz;
903extern unsigned struct_v4l2_cropcap_sz;
904extern unsigned struct_v4l2_fmtdesc_sz;
905extern unsigned struct_v4l2_format_sz;
906extern unsigned struct_v4l2_framebuffer_sz;
907extern unsigned struct_v4l2_frequency_sz;
908extern unsigned struct_v4l2_frmivalenum_sz;
909extern unsigned struct_v4l2_frmsizeenum_sz;
910extern unsigned struct_v4l2_input_sz;
911extern unsigned struct_v4l2_jpegcompression_sz;
912extern unsigned struct_v4l2_modulator_sz;
913extern unsigned struct_v4l2_output_sz;
914extern unsigned struct_v4l2_queryctrl_sz;
915extern unsigned struct_v4l2_querymenu_sz;
916extern unsigned struct_v4l2_requestbuffers_sz;
917extern unsigned struct_v4l2_standard_sz;
918extern unsigned struct_v4l2_streamparm_sz;
919extern unsigned struct_v4l2_tuner_sz;
920extern unsigned struct_vnd_ioctl_sz;
921extern unsigned struct_vnd_user_sz;
922extern unsigned struct_vt_stat_sz;
923extern unsigned struct_wdog_conf_sz;
924extern unsigned struct_wdog_mode_sz;
925extern unsigned struct_ipmi_recv_sz;
926extern unsigned struct_ipmi_req_sz;
927extern unsigned struct_ipmi_cmdspec_sz;
928extern unsigned struct_wfq_conf_sz;
929extern unsigned struct_wfq_getqid_sz;
930extern unsigned struct_wfq_getstats_sz;
931extern unsigned struct_wfq_interface_sz;
932extern unsigned struct_wfq_setweight_sz;
933extern unsigned struct_winsize_sz;
934extern unsigned struct_wscons_event_sz;
935extern unsigned struct_wsdisplay_addscreendata_sz;
936extern unsigned struct_wsdisplay_char_sz;
937extern unsigned struct_wsdisplay_cmap_sz;
938extern unsigned struct_wsdisplay_curpos_sz;
939extern unsigned struct_wsdisplay_cursor_sz;
940extern unsigned struct_wsdisplay_delscreendata_sz;
941extern unsigned struct_wsdisplay_fbinfo_sz;
942extern unsigned struct_wsdisplay_font_sz;
943extern unsigned struct_wsdisplay_kbddata_sz;
944extern unsigned struct_wsdisplay_msgattrs_sz;
945extern unsigned struct_wsdisplay_param_sz;
946extern unsigned struct_wsdisplay_scroll_data_sz;
947extern unsigned struct_wsdisplay_usefontdata_sz;
948extern unsigned struct_wsdisplayio_blit_sz;
949extern unsigned struct_wsdisplayio_bus_id_sz;
950extern unsigned struct_wsdisplayio_edid_info_sz;
951extern unsigned struct_wsdisplayio_fbinfo_sz;
952extern unsigned struct_wskbd_bell_data_sz;
953extern unsigned struct_wskbd_keyrepeat_data_sz;
954extern unsigned struct_wskbd_map_data_sz;
955extern unsigned struct_wskbd_scroll_data_sz;
956extern unsigned struct_wsmouse_calibcoords_sz;
957extern unsigned struct_wsmouse_id_sz;
958extern unsigned struct_wsmouse_repeat_sz;
959extern unsigned struct_wsmux_device_list_sz;
960extern unsigned struct_wsmux_device_sz;
961extern unsigned struct_xd_iocmd_sz;
962
963extern unsigned struct_scsireq_sz;
964extern unsigned struct_tone_sz;
965extern unsigned union_twe_statrequest_sz;
966extern unsigned struct_usb_device_descriptor_sz;
967extern unsigned struct_vt_mode_sz;
968extern unsigned struct__old_mixer_info_sz;
969extern unsigned struct__agp_allocate_sz;
970extern unsigned struct__agp_bind_sz;
971extern unsigned struct__agp_info_sz;
972extern unsigned struct__agp_setup_sz;
973extern unsigned struct__agp_unbind_sz;
974extern unsigned struct_atareq_sz;
975extern unsigned struct_cpustate_sz;
976extern unsigned struct_dmx_caps_sz;
977extern unsigned enum_dmx_source_sz;
978extern unsigned union_dvd_authinfo_sz;
979extern unsigned union_dvd_struct_sz;
980extern unsigned enum_v4l2_priority_sz;
981extern unsigned struct_envsys_basic_info_sz;
982extern unsigned struct_envsys_tre_data_sz;
983extern unsigned enum_fe_sec_mini_cmd_sz;
984extern unsigned enum_fe_sec_tone_mode_sz;
985extern unsigned enum_fe_sec_voltage_sz;
986extern unsigned enum_fe_status_sz;
987extern unsigned struct_gdt_ctrt_sz;
988extern unsigned struct_gdt_event_sz;
989extern unsigned struct_gdt_osv_sz;
990extern unsigned struct_gdt_rescan_sz;
991extern unsigned struct_gdt_statist_sz;
992extern unsigned struct_gdt_ucmd_sz;
993extern unsigned struct_iscsi_conn_status_parameters_sz;
994extern unsigned struct_iscsi_get_version_parameters_sz;
995extern unsigned struct_iscsi_iocommand_parameters_sz;
996extern unsigned struct_iscsi_login_parameters_sz;
997extern unsigned struct_iscsi_logout_parameters_sz;
998extern unsigned struct_iscsi_register_event_parameters_sz;
999extern unsigned struct_iscsi_remove_parameters_sz;
1000extern unsigned struct_iscsi_send_targets_parameters_sz;
1001extern unsigned struct_iscsi_set_node_name_parameters_sz;
1002extern unsigned struct_iscsi_wait_event_parameters_sz;
1003extern unsigned struct_isp_stats_sz;
1004extern unsigned struct_lsenable_sz;
1005extern unsigned struct_lsdisable_sz;
1006extern unsigned struct_audio_format_query_sz;
1007extern unsigned struct_mixer_ctrl_sz;
1008extern unsigned struct_mixer_devinfo_sz;
1009extern unsigned struct_mpu_command_rec_sz;
1010extern unsigned struct_rndstat_sz;
1011extern unsigned struct_rndstat_name_sz;
1012extern unsigned struct_rndctl_sz;
1013extern unsigned struct_rnddata_sz;
1014extern unsigned struct_rndpoolstat_sz;
1015extern unsigned struct_rndstat_est_sz;
1016extern unsigned struct_rndstat_est_name_sz;
1017extern unsigned struct_pps_params_sz;
1018extern unsigned struct_pps_info_sz;
1019extern unsigned struct_mixer_info_sz;
1020extern unsigned struct_RF_SparetWait_sz;
1021extern unsigned struct_RF_ComponentLabel_sz;
1022extern unsigned struct_RF_SingleComponent_sz;
1023extern unsigned struct_RF_ProgressInfo_sz;
1024extern unsigned struct_nvlist_ref_sz;
1025extern unsigned struct_StringList_sz;
1026
1027
1028// A special value to mark ioctls that are not present on the target platform,
1029// when it can not be determined without including any system headers.
1030extern const unsigned IOCTL_NOT_PRESENT;
1031
1032
1033extern unsigned IOCTL_AFM_ADDFMAP;
1034extern unsigned IOCTL_AFM_DELFMAP;
1035extern unsigned IOCTL_AFM_CLEANFMAP;
1036extern unsigned IOCTL_AFM_GETFMAP;
1037extern unsigned IOCTL_ALTQGTYPE;
1038extern unsigned IOCTL_ALTQTBRSET;
1039extern unsigned IOCTL_ALTQTBRGET;
1040extern unsigned IOCTL_BLUE_IF_ATTACH;
1041extern unsigned IOCTL_BLUE_IF_DETACH;
1042extern unsigned IOCTL_BLUE_ENABLE;
1043extern unsigned IOCTL_BLUE_DISABLE;
1044extern unsigned IOCTL_BLUE_CONFIG;
1045extern unsigned IOCTL_BLUE_GETSTATS;
1046extern unsigned IOCTL_CBQ_IF_ATTACH;
1047extern unsigned IOCTL_CBQ_IF_DETACH;
1048extern unsigned IOCTL_CBQ_ENABLE;
1049extern unsigned IOCTL_CBQ_DISABLE;
1050extern unsigned IOCTL_CBQ_CLEAR_HIERARCHY;
1051extern unsigned IOCTL_CBQ_ADD_CLASS;
1052extern unsigned IOCTL_CBQ_DEL_CLASS;
1053extern unsigned IOCTL_CBQ_MODIFY_CLASS;
1054extern unsigned IOCTL_CBQ_ADD_FILTER;
1055extern unsigned IOCTL_CBQ_DEL_FILTER;
1056extern unsigned IOCTL_CBQ_GETSTATS;
1057extern unsigned IOCTL_CDNR_IF_ATTACH;
1058extern unsigned IOCTL_CDNR_IF_DETACH;
1059extern unsigned IOCTL_CDNR_ENABLE;
1060extern unsigned IOCTL_CDNR_DISABLE;
1061extern unsigned IOCTL_CDNR_ADD_FILTER;
1062extern unsigned IOCTL_CDNR_DEL_FILTER;
1063extern unsigned IOCTL_CDNR_GETSTATS;
1064extern unsigned IOCTL_CDNR_ADD_ELEM;
1065extern unsigned IOCTL_CDNR_DEL_ELEM;
1066extern unsigned IOCTL_CDNR_ADD_TBM;
1067extern unsigned IOCTL_CDNR_MOD_TBM;
1068extern unsigned IOCTL_CDNR_TBM_STATS;
1069extern unsigned IOCTL_CDNR_ADD_TCM;
1070extern unsigned IOCTL_CDNR_MOD_TCM;
1071extern unsigned IOCTL_CDNR_TCM_STATS;
1072extern unsigned IOCTL_CDNR_ADD_TSW;
1073extern unsigned IOCTL_CDNR_MOD_TSW;
1074extern unsigned IOCTL_FIFOQ_IF_ATTACH;
1075extern unsigned IOCTL_FIFOQ_IF_DETACH;
1076extern unsigned IOCTL_FIFOQ_ENABLE;
1077extern unsigned IOCTL_FIFOQ_DISABLE;
1078extern unsigned IOCTL_FIFOQ_CONFIG;
1079extern unsigned IOCTL_FIFOQ_GETSTATS;
1080extern unsigned IOCTL_HFSC_IF_ATTACH;
1081extern unsigned IOCTL_HFSC_IF_DETACH;
1082extern unsigned IOCTL_HFSC_ENABLE;
1083extern unsigned IOCTL_HFSC_DISABLE;
1084extern unsigned IOCTL_HFSC_CLEAR_HIERARCHY;
1085extern unsigned IOCTL_HFSC_ADD_CLASS;
1086extern unsigned IOCTL_HFSC_DEL_CLASS;
1087extern unsigned IOCTL_HFSC_MOD_CLASS;
1088extern unsigned IOCTL_HFSC_ADD_FILTER;
1089extern unsigned IOCTL_HFSC_DEL_FILTER;
1090extern unsigned IOCTL_HFSC_GETSTATS;
1091extern unsigned IOCTL_JOBS_IF_ATTACH;
1092extern unsigned IOCTL_JOBS_IF_DETACH;
1093extern unsigned IOCTL_JOBS_ENABLE;
1094extern unsigned IOCTL_JOBS_DISABLE;
1095extern unsigned IOCTL_JOBS_CLEAR;
1096extern unsigned IOCTL_JOBS_ADD_CLASS;
1097extern unsigned IOCTL_JOBS_DEL_CLASS;
1098extern unsigned IOCTL_JOBS_MOD_CLASS;
1099extern unsigned IOCTL_JOBS_ADD_FILTER;
1100extern unsigned IOCTL_JOBS_DEL_FILTER;
1101extern unsigned IOCTL_JOBS_GETSTATS;
1102extern unsigned IOCTL_PRIQ_IF_ATTACH;
1103extern unsigned IOCTL_PRIQ_IF_DETACH;
1104extern unsigned IOCTL_PRIQ_ENABLE;
1105extern unsigned IOCTL_PRIQ_DISABLE;
1106extern unsigned IOCTL_PRIQ_CLEAR;
1107extern unsigned IOCTL_PRIQ_ADD_CLASS;
1108extern unsigned IOCTL_PRIQ_DEL_CLASS;
1109extern unsigned IOCTL_PRIQ_MOD_CLASS;
1110extern unsigned IOCTL_PRIQ_ADD_FILTER;
1111extern unsigned IOCTL_PRIQ_DEL_FILTER;
1112extern unsigned IOCTL_PRIQ_GETSTATS;
1113extern unsigned IOCTL_RED_IF_ATTACH;
1114extern unsigned IOCTL_RED_IF_DETACH;
1115extern unsigned IOCTL_RED_ENABLE;
1116extern unsigned IOCTL_RED_DISABLE;
1117extern unsigned IOCTL_RED_CONFIG;
1118extern unsigned IOCTL_RED_GETSTATS;
1119extern unsigned IOCTL_RED_SETDEFAULTS;
1120extern unsigned IOCTL_RIO_IF_ATTACH;
1121extern unsigned IOCTL_RIO_IF_DETACH;
1122extern unsigned IOCTL_RIO_ENABLE;
1123extern unsigned IOCTL_RIO_DISABLE;
1124extern unsigned IOCTL_RIO_CONFIG;
1125extern unsigned IOCTL_RIO_GETSTATS;
1126extern unsigned IOCTL_RIO_SETDEFAULTS;
1127extern unsigned IOCTL_WFQ_IF_ATTACH;
1128extern unsigned IOCTL_WFQ_IF_DETACH;
1129extern unsigned IOCTL_WFQ_ENABLE;
1130extern unsigned IOCTL_WFQ_DISABLE;
1131extern unsigned IOCTL_WFQ_CONFIG;
1132extern unsigned IOCTL_WFQ_GET_STATS;
1133extern unsigned IOCTL_WFQ_GET_QID;
1134extern unsigned IOCTL_WFQ_SET_WEIGHT;
1135extern unsigned IOCTL_CRIOGET;
1136extern unsigned IOCTL_CIOCFSESSION;
1137extern unsigned IOCTL_CIOCKEY;
1138extern unsigned IOCTL_CIOCNFKEYM;
1139extern unsigned IOCTL_CIOCNFSESSION;
1140extern unsigned IOCTL_CIOCNCRYPTRETM;
1141extern unsigned IOCTL_CIOCNCRYPTRET;
1142extern unsigned IOCTL_CIOCGSESSION;
1143extern unsigned IOCTL_CIOCNGSESSION;
1144extern unsigned IOCTL_CIOCCRYPT;
1145extern unsigned IOCTL_CIOCNCRYPTM;
1146extern unsigned IOCTL_CIOCASYMFEAT;
1147extern unsigned IOCTL_APM_IOC_REJECT;
1148extern unsigned IOCTL_APM_IOC_STANDBY;
1149extern unsigned IOCTL_APM_IOC_SUSPEND;
1150extern unsigned IOCTL_OAPM_IOC_GETPOWER;
1151extern unsigned IOCTL_APM_IOC_GETPOWER;
1152extern unsigned IOCTL_APM_IOC_NEXTEVENT;
1153extern unsigned IOCTL_APM_IOC_DEV_CTL;
1154extern unsigned IOCTL_NETBSD_DM_IOCTL;
1155extern unsigned IOCTL_DMIO_SETFUNC;
1156extern unsigned IOCTL_DMX_START;
1157extern unsigned IOCTL_DMX_STOP;
1158extern unsigned IOCTL_DMX_SET_FILTER;
1159extern unsigned IOCTL_DMX_SET_PES_FILTER;
1160extern unsigned IOCTL_DMX_SET_BUFFER_SIZE;
1161extern unsigned IOCTL_DMX_GET_STC;
1162extern unsigned IOCTL_DMX_ADD_PID;
1163extern unsigned IOCTL_DMX_REMOVE_PID;
1164extern unsigned IOCTL_DMX_GET_CAPS;
1165extern unsigned IOCTL_DMX_SET_SOURCE;
1166extern unsigned IOCTL_FE_READ_STATUS;
1167extern unsigned IOCTL_FE_READ_BER;
1168extern unsigned IOCTL_FE_READ_SNR;
1169extern unsigned IOCTL_FE_READ_SIGNAL_STRENGTH;
1170extern unsigned IOCTL_FE_READ_UNCORRECTED_BLOCKS;
1171extern unsigned IOCTL_FE_SET_FRONTEND;
1172extern unsigned IOCTL_FE_GET_FRONTEND;
1173extern unsigned IOCTL_FE_GET_EVENT;
1174extern unsigned IOCTL_FE_GET_INFO;
1175extern unsigned IOCTL_FE_DISEQC_RESET_OVERLOAD;
1176extern unsigned IOCTL_FE_DISEQC_SEND_MASTER_CMD;
1177extern unsigned IOCTL_FE_DISEQC_RECV_SLAVE_REPLY;
1178extern unsigned IOCTL_FE_DISEQC_SEND_BURST;
1179extern unsigned IOCTL_FE_SET_TONE;
1180extern unsigned IOCTL_FE_SET_VOLTAGE;
1181extern unsigned IOCTL_FE_ENABLE_HIGH_LNB_VOLTAGE;
1182extern unsigned IOCTL_FE_SET_FRONTEND_TUNE_MODE;
1183extern unsigned IOCTL_FE_DISHNETWORK_SEND_LEGACY_CMD;
1184extern unsigned IOCTL_FILEMON_SET_FD;
1185extern unsigned IOCTL_FILEMON_SET_PID;
1186extern unsigned IOCTL_HDAUDIO_FGRP_INFO;
1187extern unsigned IOCTL_HDAUDIO_FGRP_GETCONFIG;
1188extern unsigned IOCTL_HDAUDIO_FGRP_SETCONFIG;
1189extern unsigned IOCTL_HDAUDIO_FGRP_WIDGET_INFO;
1190extern unsigned IOCTL_HDAUDIO_FGRP_CODEC_INFO;
1191extern unsigned IOCTL_HDAUDIO_AFG_WIDGET_INFO;
1192extern unsigned IOCTL_HDAUDIO_AFG_CODEC_INFO;
1193extern unsigned IOCTL_CEC_GET_PHYS_ADDR;
1194extern unsigned IOCTL_CEC_GET_LOG_ADDRS;
1195extern unsigned IOCTL_CEC_SET_LOG_ADDRS;
1196extern unsigned IOCTL_CEC_GET_VENDOR_ID;
1197extern unsigned IOCTL_HPCFBIO_GCONF;
1198extern unsigned IOCTL_HPCFBIO_SCONF;
1199extern unsigned IOCTL_HPCFBIO_GDSPCONF;
1200extern unsigned IOCTL_HPCFBIO_SDSPCONF;
1201extern unsigned IOCTL_HPCFBIO_GOP;
1202extern unsigned IOCTL_HPCFBIO_SOP;
1203extern unsigned IOCTL_IOPIOCPT;
1204extern unsigned IOCTL_IOPIOCGLCT;
1205extern unsigned IOCTL_IOPIOCGSTATUS;
1206extern unsigned IOCTL_IOPIOCRECONFIG;
1207extern unsigned IOCTL_IOPIOCGTIDMAP;
1208extern unsigned IOCTL_SIOCGATHSTATS;
1209extern unsigned IOCTL_SIOCGATHDIAG;
1210extern unsigned IOCTL_METEORCAPTUR;
1211extern unsigned IOCTL_METEORCAPFRM;
1212extern unsigned IOCTL_METEORSETGEO;
1213extern unsigned IOCTL_METEORGETGEO;
1214extern unsigned IOCTL_METEORSTATUS;
1215extern unsigned IOCTL_METEORSHUE;
1216extern unsigned IOCTL_METEORGHUE;
1217extern unsigned IOCTL_METEORSFMT;
1218extern unsigned IOCTL_METEORGFMT;
1219extern unsigned IOCTL_METEORSINPUT;
1220extern unsigned IOCTL_METEORGINPUT;
1221extern unsigned IOCTL_METEORSCHCV;
1222extern unsigned IOCTL_METEORGCHCV;
1223extern unsigned IOCTL_METEORSCOUNT;
1224extern unsigned IOCTL_METEORGCOUNT;
1225extern unsigned IOCTL_METEORSFPS;
1226extern unsigned IOCTL_METEORGFPS;
1227extern unsigned IOCTL_METEORSSIGNAL;
1228extern unsigned IOCTL_METEORGSIGNAL;
1229extern unsigned IOCTL_METEORSVIDEO;
1230extern unsigned IOCTL_METEORGVIDEO;
1231extern unsigned IOCTL_METEORSBRIG;
1232extern unsigned IOCTL_METEORGBRIG;
1233extern unsigned IOCTL_METEORSCSAT;
1234extern unsigned IOCTL_METEORGCSAT;
1235extern unsigned IOCTL_METEORSCONT;
1236extern unsigned IOCTL_METEORGCONT;
1237extern unsigned IOCTL_METEORSHWS;
1238extern unsigned IOCTL_METEORGHWS;
1239extern unsigned IOCTL_METEORSVWS;
1240extern unsigned IOCTL_METEORGVWS;
1241extern unsigned IOCTL_METEORSTS;
1242extern unsigned IOCTL_METEORGTS;
1243extern unsigned IOCTL_TVTUNER_SETCHNL;
1244extern unsigned IOCTL_TVTUNER_GETCHNL;
1245extern unsigned IOCTL_TVTUNER_SETTYPE;
1246extern unsigned IOCTL_TVTUNER_GETTYPE;
1247extern unsigned IOCTL_TVTUNER_GETSTATUS;
1248extern unsigned IOCTL_TVTUNER_SETFREQ;
1249extern unsigned IOCTL_TVTUNER_GETFREQ;
1250extern unsigned IOCTL_TVTUNER_SETAFC;
1251extern unsigned IOCTL_TVTUNER_GETAFC;
1252extern unsigned IOCTL_RADIO_SETMODE;
1253extern unsigned IOCTL_RADIO_GETMODE;
1254extern unsigned IOCTL_RADIO_SETFREQ;
1255extern unsigned IOCTL_RADIO_GETFREQ;
1256extern unsigned IOCTL_METEORSACTPIXFMT;
1257extern unsigned IOCTL_METEORGACTPIXFMT;
1258extern unsigned IOCTL_METEORGSUPPIXFMT;
1259extern unsigned IOCTL_TVTUNER_GETCHNLSET;
1260extern unsigned IOCTL_REMOTE_GETKEY;
1261extern unsigned IOCTL_GDT_IOCTL_GENERAL;
1262extern unsigned IOCTL_GDT_IOCTL_DRVERS;
1263extern unsigned IOCTL_GDT_IOCTL_CTRTYPE;
1264extern unsigned IOCTL_GDT_IOCTL_OSVERS;
1265extern unsigned IOCTL_GDT_IOCTL_CTRCNT;
1266extern unsigned IOCTL_GDT_IOCTL_EVENT;
1267extern unsigned IOCTL_GDT_IOCTL_STATIST;
1268extern unsigned IOCTL_GDT_IOCTL_RESCAN;
1269extern unsigned IOCTL_ISP_SDBLEV;
1270extern unsigned IOCTL_ISP_RESETHBA;
1271extern unsigned IOCTL_ISP_RESCAN;
1272extern unsigned IOCTL_ISP_SETROLE;
1273extern unsigned IOCTL_ISP_GETROLE;
1274extern unsigned IOCTL_ISP_GET_STATS;
1275extern unsigned IOCTL_ISP_CLR_STATS;
1276extern unsigned IOCTL_ISP_FC_LIP;
1277extern unsigned IOCTL_ISP_FC_GETDINFO;
1278extern unsigned IOCTL_ISP_GET_FW_CRASH_DUMP;
1279extern unsigned IOCTL_ISP_FORCE_CRASH_DUMP;
1280extern unsigned IOCTL_ISP_FC_GETHINFO;
1281extern unsigned IOCTL_ISP_TSK_MGMT;
1282extern unsigned IOCTL_ISP_FC_GETDLIST;
1283extern unsigned IOCTL_MLXD_STATUS;
1284extern unsigned IOCTL_MLXD_CHECKASYNC;
1285extern unsigned IOCTL_MLXD_DETACH;
1286extern unsigned IOCTL_MLX_RESCAN_DRIVES;
1287extern unsigned IOCTL_MLX_PAUSE_CHANNEL;
1288extern unsigned IOCTL_MLX_COMMAND;
1289extern unsigned IOCTL_MLX_REBUILDASYNC;
1290extern unsigned IOCTL_MLX_REBUILDSTAT;
1291extern unsigned IOCTL_MLX_GET_SYSDRIVE;
1292extern unsigned IOCTL_MLX_GET_CINFO;
1293extern unsigned IOCTL_NVME_PASSTHROUGH_CMD;
1294extern unsigned IOCTL_FWCFGIO_SET_INDEX;
1295extern unsigned IOCTL_IRDA_RESET_PARAMS;
1296extern unsigned IOCTL_IRDA_SET_PARAMS;
1297extern unsigned IOCTL_IRDA_GET_SPEEDMASK;
1298extern unsigned IOCTL_IRDA_GET_TURNAROUNDMASK;
1299extern unsigned IOCTL_IRFRAMETTY_GET_DEVICE;
1300extern unsigned IOCTL_IRFRAMETTY_GET_DONGLE;
1301extern unsigned IOCTL_IRFRAMETTY_SET_DONGLE;
1302extern unsigned IOCTL_ISV_CMD;
1303extern unsigned IOCTL_WTQICMD;
1304extern unsigned IOCTL_ISCSI_GET_VERSION;
1305extern unsigned IOCTL_ISCSI_LOGIN;
1306extern unsigned IOCTL_ISCSI_LOGOUT;
1307extern unsigned IOCTL_ISCSI_ADD_CONNECTION;
1308extern unsigned IOCTL_ISCSI_RESTORE_CONNECTION;
1309extern unsigned IOCTL_ISCSI_REMOVE_CONNECTION;
1310extern unsigned IOCTL_ISCSI_CONNECTION_STATUS;
1311extern unsigned IOCTL_ISCSI_SEND_TARGETS;
1312extern unsigned IOCTL_ISCSI_SET_NODE_NAME;
1313extern unsigned IOCTL_ISCSI_IO_COMMAND;
1314extern unsigned IOCTL_ISCSI_REGISTER_EVENT;
1315extern unsigned IOCTL_ISCSI_DEREGISTER_EVENT;
1316extern unsigned IOCTL_ISCSI_WAIT_EVENT;
1317extern unsigned IOCTL_ISCSI_POLL_EVENT;
1318extern unsigned IOCTL_OFIOCGET;
1319extern unsigned IOCTL_OFIOCSET;
1320extern unsigned IOCTL_OFIOCNEXTPROP;
1321extern unsigned IOCTL_OFIOCGETOPTNODE;
1322extern unsigned IOCTL_OFIOCGETNEXT;
1323extern unsigned IOCTL_OFIOCGETCHILD;
1324extern unsigned IOCTL_OFIOCFINDDEVICE;
1325extern unsigned IOCTL_AMR_IO_VERSION;
1326extern unsigned IOCTL_AMR_IO_COMMAND;
1327extern unsigned IOCTL_MLYIO_COMMAND;
1328extern unsigned IOCTL_MLYIO_HEALTH;
1329extern unsigned IOCTL_PCI_IOC_CFGREAD;
1330extern unsigned IOCTL_PCI_IOC_CFGWRITE;
1331extern unsigned IOCTL_PCI_IOC_BDF_CFGREAD;
1332extern unsigned IOCTL_PCI_IOC_BDF_CFGWRITE;
1333extern unsigned IOCTL_PCI_IOC_BUSINFO;
1334extern unsigned IOCTL_PCI_IOC_DRVNAME;
1335extern unsigned IOCTL_PCI_IOC_DRVNAMEONBUS;
1336extern unsigned IOCTL_TWEIO_COMMAND;
1337extern unsigned IOCTL_TWEIO_STATS;
1338extern unsigned IOCTL_TWEIO_AEN_POLL;
1339extern unsigned IOCTL_TWEIO_AEN_WAIT;
1340extern unsigned IOCTL_TWEIO_SET_PARAM;
1341extern unsigned IOCTL_TWEIO_GET_PARAM;
1342extern unsigned IOCTL_TWEIO_RESET;
1343extern unsigned IOCTL_TWEIO_ADD_UNIT;
1344extern unsigned IOCTL_TWEIO_DEL_UNIT;
1345extern unsigned IOCTL_SIOCSCNWDOMAIN;
1346extern unsigned IOCTL_SIOCGCNWDOMAIN;
1347extern unsigned IOCTL_SIOCSCNWKEY;
1348extern unsigned IOCTL_SIOCGCNWSTATUS;
1349extern unsigned IOCTL_SIOCGCNWSTATS;
1350extern unsigned IOCTL_SIOCGCNWTRAIL;
1351extern unsigned IOCTL_SIOCGRAYSIGLEV;
1352extern unsigned IOCTL_RAIDFRAME_SHUTDOWN;
1353extern unsigned IOCTL_RAIDFRAME_TUR;
1354extern unsigned IOCTL_RAIDFRAME_FAIL_DISK;
1355extern unsigned IOCTL_RAIDFRAME_CHECK_RECON_STATUS;
1356extern unsigned IOCTL_RAIDFRAME_REWRITEPARITY;
1357extern unsigned IOCTL_RAIDFRAME_COPYBACK;
1358extern unsigned IOCTL_RAIDFRAME_SPARET_WAIT;
1359extern unsigned IOCTL_RAIDFRAME_SEND_SPARET;
1360extern unsigned IOCTL_RAIDFRAME_ABORT_SPARET_WAIT;
1361extern unsigned IOCTL_RAIDFRAME_START_ATRACE;
1362extern unsigned IOCTL_RAIDFRAME_STOP_ATRACE;
1363extern unsigned IOCTL_RAIDFRAME_GET_SIZE;
1364extern unsigned IOCTL_RAIDFRAME_RESET_ACCTOTALS;
1365extern unsigned IOCTL_RAIDFRAME_KEEP_ACCTOTALS;
1366extern unsigned IOCTL_RAIDFRAME_GET_COMPONENT_LABEL;
1367extern unsigned IOCTL_RAIDFRAME_SET_COMPONENT_LABEL;
1368extern unsigned IOCTL_RAIDFRAME_INIT_LABELS;
1369extern unsigned IOCTL_RAIDFRAME_ADD_HOT_SPARE;
1370extern unsigned IOCTL_RAIDFRAME_REMOVE_HOT_SPARE;
1371extern unsigned IOCTL_RAIDFRAME_REBUILD_IN_PLACE;
1372extern unsigned IOCTL_RAIDFRAME_CHECK_PARITY;
1373extern unsigned IOCTL_RAIDFRAME_CHECK_PARITYREWRITE_STATUS;
1374extern unsigned IOCTL_RAIDFRAME_CHECK_COPYBACK_STATUS;
1375extern unsigned IOCTL_RAIDFRAME_SET_AUTOCONFIG;
1376extern unsigned IOCTL_RAIDFRAME_SET_ROOT;
1377extern unsigned IOCTL_RAIDFRAME_DELETE_COMPONENT;
1378extern unsigned IOCTL_RAIDFRAME_INCORPORATE_HOT_SPARE;
1379extern unsigned IOCTL_RAIDFRAME_CHECK_RECON_STATUS_EXT;
1380extern unsigned IOCTL_RAIDFRAME_CHECK_PARITYREWRITE_STATUS_EXT;
1381extern unsigned IOCTL_RAIDFRAME_CHECK_COPYBACK_STATUS_EXT;
1382extern unsigned IOCTL_RAIDFRAME_CONFIGURE;
1383extern unsigned IOCTL_RAIDFRAME_GET_INFO;
1384extern unsigned IOCTL_RAIDFRAME_PARITYMAP_STATUS;
1385extern unsigned IOCTL_RAIDFRAME_PARITYMAP_GET_DISABLE;
1386extern unsigned IOCTL_RAIDFRAME_PARITYMAP_SET_DISABLE;
1387extern unsigned IOCTL_RAIDFRAME_PARITYMAP_SET_PARAMS;
1388extern unsigned IOCTL_RAIDFRAME_SET_LAST_UNIT;
1389extern unsigned IOCTL_MBPPIOCSPARAM;
1390extern unsigned IOCTL_MBPPIOCGPARAM;
1391extern unsigned IOCTL_MBPPIOCGSTAT;
1392extern unsigned IOCTL_SESIOC_GETNOBJ;
1393extern unsigned IOCTL_SESIOC_GETOBJMAP;
1394extern unsigned IOCTL_SESIOC_GETENCSTAT;
1395extern unsigned IOCTL_SESIOC_SETENCSTAT;
1396extern unsigned IOCTL_SESIOC_GETOBJSTAT;
1397extern unsigned IOCTL_SESIOC_SETOBJSTAT;
1398extern unsigned IOCTL_SESIOC_GETTEXT;
1399extern unsigned IOCTL_SESIOC_INIT;
1400extern unsigned IOCTL_SUN_DKIOCGGEOM;
1401extern unsigned IOCTL_SUN_DKIOCINFO;
1402extern unsigned IOCTL_SUN_DKIOCGPART;
1403extern unsigned IOCTL_FBIOGTYPE;
1404extern unsigned IOCTL_FBIOPUTCMAP;
1405extern unsigned IOCTL_FBIOGETCMAP;
1406extern unsigned IOCTL_FBIOGATTR;
1407extern unsigned IOCTL_FBIOSVIDEO;
1408extern unsigned IOCTL_FBIOGVIDEO;
1409extern unsigned IOCTL_FBIOSCURSOR;
1410extern unsigned IOCTL_FBIOGCURSOR;
1411extern unsigned IOCTL_FBIOSCURPOS;
1412extern unsigned IOCTL_FBIOGCURPOS;
1413extern unsigned IOCTL_FBIOGCURMAX;
1414extern unsigned IOCTL_KIOCTRANS;
1415extern unsigned IOCTL_KIOCSETKEY;
1416extern unsigned IOCTL_KIOCGETKEY;
1417extern unsigned IOCTL_KIOCGTRANS;
1418extern unsigned IOCTL_KIOCCMD;
1419extern unsigned IOCTL_KIOCTYPE;
1420extern unsigned IOCTL_KIOCSDIRECT;
1421extern unsigned IOCTL_KIOCSKEY;
1422extern unsigned IOCTL_KIOCGKEY;
1423extern unsigned IOCTL_KIOCSLED;
1424extern unsigned IOCTL_KIOCGLED;
1425extern unsigned IOCTL_KIOCLAYOUT;
1426extern unsigned IOCTL_VUIDSFORMAT;
1427extern unsigned IOCTL_VUIDGFORMAT;
1428extern unsigned IOCTL_STICIO_GXINFO;
1429extern unsigned IOCTL_STICIO_RESET;
1430extern unsigned IOCTL_STICIO_STARTQ;
1431extern unsigned IOCTL_STICIO_STOPQ;
1432extern unsigned IOCTL_UKYOPON_IDENTIFY;
1433extern unsigned IOCTL_URIO_SEND_COMMAND;
1434extern unsigned IOCTL_URIO_RECV_COMMAND;
1435extern unsigned IOCTL_USB_REQUEST;
1436extern unsigned IOCTL_USB_SETDEBUG;
1437extern unsigned IOCTL_USB_DISCOVER;
1438extern unsigned IOCTL_USB_DEVICEINFO;
1439extern unsigned IOCTL_USB_DEVICEINFO_OLD;
1440extern unsigned IOCTL_USB_DEVICESTATS;
1441extern unsigned IOCTL_USB_GET_REPORT_DESC;
1442extern unsigned IOCTL_USB_SET_IMMED;
1443extern unsigned IOCTL_USB_GET_REPORT;
1444extern unsigned IOCTL_USB_SET_REPORT;
1445extern unsigned IOCTL_USB_GET_REPORT_ID;
1446extern unsigned IOCTL_USB_GET_CONFIG;
1447extern unsigned IOCTL_USB_SET_CONFIG;
1448extern unsigned IOCTL_USB_GET_ALTINTERFACE;
1449extern unsigned IOCTL_USB_SET_ALTINTERFACE;
1450extern unsigned IOCTL_USB_GET_NO_ALT;
1451extern unsigned IOCTL_USB_GET_DEVICE_DESC;
1452extern unsigned IOCTL_USB_GET_CONFIG_DESC;
1453extern unsigned IOCTL_USB_GET_INTERFACE_DESC;
1454extern unsigned IOCTL_USB_GET_ENDPOINT_DESC;
1455extern unsigned IOCTL_USB_GET_FULL_DESC;
1456extern unsigned IOCTL_USB_GET_STRING_DESC;
1457extern unsigned IOCTL_USB_DO_REQUEST;
1458extern unsigned IOCTL_USB_GET_DEVICEINFO;
1459extern unsigned IOCTL_USB_GET_DEVICEINFO_OLD;
1460extern unsigned IOCTL_USB_SET_SHORT_XFER;
1461extern unsigned IOCTL_USB_SET_TIMEOUT;
1462extern unsigned IOCTL_USB_SET_BULK_RA;
1463extern unsigned IOCTL_USB_SET_BULK_WB;
1464extern unsigned IOCTL_USB_SET_BULK_RA_OPT;
1465extern unsigned IOCTL_USB_SET_BULK_WB_OPT;
1466extern unsigned IOCTL_USB_GET_CM_OVER_DATA;
1467extern unsigned IOCTL_USB_SET_CM_OVER_DATA;
1468extern unsigned IOCTL_UTOPPYIOTURBO;
1469extern unsigned IOCTL_UTOPPYIOCANCEL;
1470extern unsigned IOCTL_UTOPPYIOREBOOT;
1471extern unsigned IOCTL_UTOPPYIOSTATS;
1472extern unsigned IOCTL_UTOPPYIORENAME;
1473extern unsigned IOCTL_UTOPPYIOMKDIR;
1474extern unsigned IOCTL_UTOPPYIODELETE;
1475extern unsigned IOCTL_UTOPPYIOREADDIR;
1476extern unsigned IOCTL_UTOPPYIOREADFILE;
1477extern unsigned IOCTL_UTOPPYIOWRITEFILE;
1478extern unsigned IOCTL_DIOSXDCMD;
1479extern unsigned IOCTL_VT_OPENQRY;
1480extern unsigned IOCTL_VT_SETMODE;
1481extern unsigned IOCTL_VT_GETMODE;
1482extern unsigned IOCTL_VT_RELDISP;
1483extern unsigned IOCTL_VT_ACTIVATE;
1484extern unsigned IOCTL_VT_WAITACTIVE;
1485extern unsigned IOCTL_VT_GETACTIVE;
1486extern unsigned IOCTL_VT_GETSTATE;
1487extern unsigned IOCTL_KDGETKBENT;
1488extern unsigned IOCTL_KDGKBMODE;
1489extern unsigned IOCTL_KDSKBMODE;
1490extern unsigned IOCTL_KDMKTONE;
1491extern unsigned IOCTL_KDSETMODE;
1492extern unsigned IOCTL_KDENABIO;
1493extern unsigned IOCTL_KDDISABIO;
1494extern unsigned IOCTL_KDGKBTYPE;
1495extern unsigned IOCTL_KDGETLED;
1496extern unsigned IOCTL_KDSETLED;
1497extern unsigned IOCTL_KDSETRAD;
1498extern unsigned IOCTL_VGAPCVTID;
1499extern unsigned IOCTL_CONS_GETVERS;
1500extern unsigned IOCTL_WSKBDIO_GTYPE;
1501extern unsigned IOCTL_WSKBDIO_BELL;
1502extern unsigned IOCTL_WSKBDIO_COMPLEXBELL;
1503extern unsigned IOCTL_WSKBDIO_SETBELL;
1504extern unsigned IOCTL_WSKBDIO_GETBELL;
1505extern unsigned IOCTL_WSKBDIO_SETDEFAULTBELL;
1506extern unsigned IOCTL_WSKBDIO_GETDEFAULTBELL;
1507extern unsigned IOCTL_WSKBDIO_SETKEYREPEAT;
1508extern unsigned IOCTL_WSKBDIO_GETKEYREPEAT;
1509extern unsigned IOCTL_WSKBDIO_SETDEFAULTKEYREPEAT;
1510extern unsigned IOCTL_WSKBDIO_GETDEFAULTKEYREPEAT;
1511extern unsigned IOCTL_WSKBDIO_SETLEDS;
1512extern unsigned IOCTL_WSKBDIO_GETLEDS;
1513extern unsigned IOCTL_WSKBDIO_GETMAP;
1514extern unsigned IOCTL_WSKBDIO_SETMAP;
1515extern unsigned IOCTL_WSKBDIO_GETENCODING;
1516extern unsigned IOCTL_WSKBDIO_SETENCODING;
1517extern unsigned IOCTL_WSKBDIO_SETMODE;
1518extern unsigned IOCTL_WSKBDIO_GETMODE;
1519extern unsigned IOCTL_WSKBDIO_SETKEYCLICK;
1520extern unsigned IOCTL_WSKBDIO_GETKEYCLICK;
1521extern unsigned IOCTL_WSKBDIO_GETSCROLL;
1522extern unsigned IOCTL_WSKBDIO_SETSCROLL;
1523extern unsigned IOCTL_WSKBDIO_SETVERSION;
1524extern unsigned IOCTL_WSMOUSEIO_GTYPE;
1525extern unsigned IOCTL_WSMOUSEIO_SRES;
1526extern unsigned IOCTL_WSMOUSEIO_SSCALE;
1527extern unsigned IOCTL_WSMOUSEIO_SRATE;
1528extern unsigned IOCTL_WSMOUSEIO_SCALIBCOORDS;
1529extern unsigned IOCTL_WSMOUSEIO_GCALIBCOORDS;
1530extern unsigned IOCTL_WSMOUSEIO_GETID;
1531extern unsigned IOCTL_WSMOUSEIO_GETREPEAT;
1532extern unsigned IOCTL_WSMOUSEIO_SETREPEAT;
1533extern unsigned IOCTL_WSMOUSEIO_SETVERSION;
1534extern unsigned IOCTL_WSDISPLAYIO_GTYPE;
1535extern unsigned IOCTL_WSDISPLAYIO_GINFO;
1536extern unsigned IOCTL_WSDISPLAYIO_GETCMAP;
1537extern unsigned IOCTL_WSDISPLAYIO_PUTCMAP;
1538extern unsigned IOCTL_WSDISPLAYIO_GVIDEO;
1539extern unsigned IOCTL_WSDISPLAYIO_SVIDEO;
1540extern unsigned IOCTL_WSDISPLAYIO_GCURPOS;
1541extern unsigned IOCTL_WSDISPLAYIO_SCURPOS;
1542extern unsigned IOCTL_WSDISPLAYIO_GCURMAX;
1543extern unsigned IOCTL_WSDISPLAYIO_GCURSOR;
1544extern unsigned IOCTL_WSDISPLAYIO_SCURSOR;
1545extern unsigned IOCTL_WSDISPLAYIO_GMODE;
1546extern unsigned IOCTL_WSDISPLAYIO_SMODE;
1547extern unsigned IOCTL_WSDISPLAYIO_LDFONT;
1548extern unsigned IOCTL_WSDISPLAYIO_ADDSCREEN;
1549extern unsigned IOCTL_WSDISPLAYIO_DELSCREEN;
1550extern unsigned IOCTL_WSDISPLAYIO_SFONT;
1551extern unsigned IOCTL__O_WSDISPLAYIO_SETKEYBOARD;
1552extern unsigned IOCTL_WSDISPLAYIO_GETPARAM;
1553extern unsigned IOCTL_WSDISPLAYIO_SETPARAM;
1554extern unsigned IOCTL_WSDISPLAYIO_GETACTIVESCREEN;
1555extern unsigned IOCTL_WSDISPLAYIO_GETWSCHAR;
1556extern unsigned IOCTL_WSDISPLAYIO_PUTWSCHAR;
1557extern unsigned IOCTL_WSDISPLAYIO_DGSCROLL;
1558extern unsigned IOCTL_WSDISPLAYIO_DSSCROLL;
1559extern unsigned IOCTL_WSDISPLAYIO_GMSGATTRS;
1560extern unsigned IOCTL_WSDISPLAYIO_SMSGATTRS;
1561extern unsigned IOCTL_WSDISPLAYIO_GBORDER;
1562extern unsigned IOCTL_WSDISPLAYIO_SBORDER;
1563extern unsigned IOCTL_WSDISPLAYIO_SSPLASH;
1564extern unsigned IOCTL_WSDISPLAYIO_SPROGRESS;
1565extern unsigned IOCTL_WSDISPLAYIO_LINEBYTES;
1566extern unsigned IOCTL_WSDISPLAYIO_SETVERSION;
1567extern unsigned IOCTL_WSMUXIO_ADD_DEVICE;
1568extern unsigned IOCTL_WSMUXIO_REMOVE_DEVICE;
1569extern unsigned IOCTL_WSMUXIO_LIST_DEVICES;
1570extern unsigned IOCTL_WSMUXIO_INJECTEVENT;
1571extern unsigned IOCTL_WSDISPLAYIO_GET_BUSID;
1572extern unsigned IOCTL_WSDISPLAYIO_GET_EDID;
1573extern unsigned IOCTL_WSDISPLAYIO_SET_POLLING;
1574extern unsigned IOCTL_WSDISPLAYIO_GET_FBINFO;
1575extern unsigned IOCTL_WSDISPLAYIO_DOBLIT;
1576extern unsigned IOCTL_WSDISPLAYIO_WAITBLIT;
1577extern unsigned IOCTL_BIOCLOCATE;
1578extern unsigned IOCTL_BIOCINQ;
1579extern unsigned IOCTL_BIOCDISK_NOVOL;
1580extern unsigned IOCTL_BIOCDISK;
1581extern unsigned IOCTL_BIOCVOL;
1582extern unsigned IOCTL_BIOCALARM;
1583extern unsigned IOCTL_BIOCBLINK;
1584extern unsigned IOCTL_BIOCSETSTATE;
1585extern unsigned IOCTL_BIOCVOLOPS;
1586extern unsigned IOCTL_MD_GETCONF;
1587extern unsigned IOCTL_MD_SETCONF;
1588extern unsigned IOCTL_CCDIOCSET;
1589extern unsigned IOCTL_CCDIOCCLR;
1590extern unsigned IOCTL_CGDIOCSET;
1591extern unsigned IOCTL_CGDIOCCLR;
1592extern unsigned IOCTL_CGDIOCGET;
1593extern unsigned IOCTL_FSSIOCSET;
1594extern unsigned IOCTL_FSSIOCGET;
1595extern unsigned IOCTL_FSSIOCCLR;
1596extern unsigned IOCTL_FSSIOFSET;
1597extern unsigned IOCTL_FSSIOFGET;
1598extern unsigned IOCTL_BTDEV_ATTACH;
1599extern unsigned IOCTL_BTDEV_DETACH;
1600extern unsigned IOCTL_BTSCO_GETINFO;
1601extern unsigned IOCTL_KTTCP_IO_SEND;
1602extern unsigned IOCTL_KTTCP_IO_RECV;
1603extern unsigned IOCTL_IOC_LOCKSTAT_GVERSION;
1604extern unsigned IOCTL_IOC_LOCKSTAT_ENABLE;
1605extern unsigned IOCTL_IOC_LOCKSTAT_DISABLE;
1606extern unsigned IOCTL_VNDIOCSET;
1607extern unsigned IOCTL_VNDIOCCLR;
1608extern unsigned IOCTL_VNDIOCGET;
1609extern unsigned IOCTL_SPKRTONE;
1610extern unsigned IOCTL_SPKRTUNE;
1611extern unsigned IOCTL_SPKRGETVOL;
1612extern unsigned IOCTL_SPKRSETVOL;
1613#if defined(__x86_64__)
1614extern unsigned IOCTL_NVMM_IOC_CAPABILITY;
1615extern unsigned IOCTL_NVMM_IOC_MACHINE_CREATE;
1616extern unsigned IOCTL_NVMM_IOC_MACHINE_DESTROY;
1617extern unsigned IOCTL_NVMM_IOC_MACHINE_CONFIGURE;
1618extern unsigned IOCTL_NVMM_IOC_VCPU_CREATE;
1619extern unsigned IOCTL_NVMM_IOC_VCPU_DESTROY;
1620extern unsigned IOCTL_NVMM_IOC_VCPU_CONFIGURE;
1621extern unsigned IOCTL_NVMM_IOC_VCPU_SETSTATE;
1622extern unsigned IOCTL_NVMM_IOC_VCPU_GETSTATE;
1623extern unsigned IOCTL_NVMM_IOC_VCPU_INJECT;
1624extern unsigned IOCTL_NVMM_IOC_VCPU_RUN;
1625extern unsigned IOCTL_NVMM_IOC_GPA_MAP;
1626extern unsigned IOCTL_NVMM_IOC_GPA_UNMAP;
1627extern unsigned IOCTL_NVMM_IOC_HVA_MAP;
1628extern unsigned IOCTL_NVMM_IOC_HVA_UNMAP;
1629extern unsigned IOCTL_NVMM_IOC_CTL;
1630#endif
1631extern unsigned IOCTL_AUTOFSREQUEST;
1632extern unsigned IOCTL_AUTOFSDONE;
1633extern unsigned IOCTL_BIOCGBLEN;
1634extern unsigned IOCTL_BIOCSBLEN;
1635extern unsigned IOCTL_BIOCSETF;
1636extern unsigned IOCTL_BIOCFLUSH;
1637extern unsigned IOCTL_BIOCPROMISC;
1638extern unsigned IOCTL_BIOCGDLT;
1639extern unsigned IOCTL_BIOCGETIF;
1640extern unsigned IOCTL_BIOCSETIF;
1641extern unsigned IOCTL_BIOCGSTATS;
1642extern unsigned IOCTL_BIOCGSTATSOLD;
1643extern unsigned IOCTL_BIOCIMMEDIATE;
1644extern unsigned IOCTL_BIOCVERSION;
1645extern unsigned IOCTL_BIOCSTCPF;
1646extern unsigned IOCTL_BIOCSUDPF;
1647extern unsigned IOCTL_BIOCGHDRCMPLT;
1648extern unsigned IOCTL_BIOCSHDRCMPLT;
1649extern unsigned IOCTL_BIOCSDLT;
1650extern unsigned IOCTL_BIOCGDLTLIST;
1651extern unsigned IOCTL_BIOCGDIRECTION;
1652extern unsigned IOCTL_BIOCSDIRECTION;
1653extern unsigned IOCTL_BIOCSRTIMEOUT;
1654extern unsigned IOCTL_BIOCGRTIMEOUT;
1655extern unsigned IOCTL_BIOCGFEEDBACK;
1656extern unsigned IOCTL_BIOCSFEEDBACK;
1657extern unsigned IOCTL_GRESADDRS;
1658extern unsigned IOCTL_GRESADDRD;
1659extern unsigned IOCTL_GREGADDRS;
1660extern unsigned IOCTL_GREGADDRD;
1661extern unsigned IOCTL_GRESPROTO;
1662extern unsigned IOCTL_GREGPROTO;
1663extern unsigned IOCTL_GRESSOCK;
1664extern unsigned IOCTL_GREDSOCK;
1665extern unsigned IOCTL_PPPIOCGRAWIN;
1666extern unsigned IOCTL_PPPIOCGFLAGS;
1667extern unsigned IOCTL_PPPIOCSFLAGS;
1668extern unsigned IOCTL_PPPIOCGASYNCMAP;
1669extern unsigned IOCTL_PPPIOCSASYNCMAP;
1670extern unsigned IOCTL_PPPIOCGUNIT;
1671extern unsigned IOCTL_PPPIOCGRASYNCMAP;
1672extern unsigned IOCTL_PPPIOCSRASYNCMAP;
1673extern unsigned IOCTL_PPPIOCGMRU;
1674extern unsigned IOCTL_PPPIOCSMRU;
1675extern unsigned IOCTL_PPPIOCSMAXCID;
1676extern unsigned IOCTL_PPPIOCGXASYNCMAP;
1677extern unsigned IOCTL_PPPIOCSXASYNCMAP;
1678extern unsigned IOCTL_PPPIOCXFERUNIT;
1679extern unsigned IOCTL_PPPIOCSCOMPRESS;
1680extern unsigned IOCTL_PPPIOCGNPMODE;
1681extern unsigned IOCTL_PPPIOCSNPMODE;
1682extern unsigned IOCTL_PPPIOCGIDLE;
1683extern unsigned IOCTL_PPPIOCGMTU;
1684extern unsigned IOCTL_PPPIOCSMTU;
1685extern unsigned IOCTL_SIOCGPPPSTATS;
1686extern unsigned IOCTL_SIOCGPPPCSTATS;
1687extern unsigned IOCTL_IOC_NPF_VERSION;
1688extern unsigned IOCTL_IOC_NPF_SWITCH;
1689extern unsigned IOCTL_IOC_NPF_LOAD;
1690extern unsigned IOCTL_IOC_NPF_TABLE;
1691extern unsigned IOCTL_IOC_NPF_STATS;
1692extern unsigned IOCTL_IOC_NPF_SAVE;
1693extern unsigned IOCTL_IOC_NPF_RULE;
1694extern unsigned IOCTL_IOC_NPF_CONN_LOOKUP;
1695extern unsigned IOCTL_IOC_NPF_TABLE_REPLACE;
1696extern unsigned IOCTL_PPPOESETPARMS;
1697extern unsigned IOCTL_PPPOEGETPARMS;
1698extern unsigned IOCTL_PPPOEGETSESSION;
1699extern unsigned IOCTL_SPPPGETAUTHCFG;
1700extern unsigned IOCTL_SPPPSETAUTHCFG;
1701extern unsigned IOCTL_SPPPGETLCPCFG;
1702extern unsigned IOCTL_SPPPSETLCPCFG;
1703extern unsigned IOCTL_SPPPGETSTATUS;
1704extern unsigned IOCTL_SPPPGETSTATUSNCP;
1705extern unsigned IOCTL_SPPPGETIDLETO;
1706extern unsigned IOCTL_SPPPSETIDLETO;
1707extern unsigned IOCTL_SPPPGETAUTHFAILURES;
1708extern unsigned IOCTL_SPPPSETAUTHFAILURE;
1709extern unsigned IOCTL_SPPPSETDNSOPTS;
1710extern unsigned IOCTL_SPPPGETDNSOPTS;
1711extern unsigned IOCTL_SPPPGETDNSADDRS;
1712extern unsigned IOCTL_SPPPSETKEEPALIVE;
1713extern unsigned IOCTL_SPPPGETKEEPALIVE;
1714extern unsigned IOCTL_SRT_GETNRT;
1715extern unsigned IOCTL_SRT_GETRT;
1716extern unsigned IOCTL_SRT_SETRT;
1717extern unsigned IOCTL_SRT_DELRT;
1718extern unsigned IOCTL_SRT_SFLAGS;
1719extern unsigned IOCTL_SRT_GFLAGS;
1720extern unsigned IOCTL_SRT_SGFLAGS;
1721extern unsigned IOCTL_SRT_DEBUG;
1722extern unsigned IOCTL_TAPGIFNAME;
1723extern unsigned IOCTL_TUNSDEBUG;
1724extern unsigned IOCTL_TUNGDEBUG;
1725extern unsigned IOCTL_TUNSIFMODE;
1726extern unsigned IOCTL_TUNSLMODE;
1727extern unsigned IOCTL_TUNSIFHEAD;
1728extern unsigned IOCTL_TUNGIFHEAD;
1729extern unsigned IOCTL_DIOCSTART;
1730extern unsigned IOCTL_DIOCSTOP;
1731extern unsigned IOCTL_DIOCADDRULE;
1732extern unsigned IOCTL_DIOCGETRULES;
1733extern unsigned IOCTL_DIOCGETRULE;
1734extern unsigned IOCTL_DIOCSETLCK;
1735extern unsigned IOCTL_DIOCCLRSTATES;
1736extern unsigned IOCTL_DIOCGETSTATE;
1737extern unsigned IOCTL_DIOCSETSTATUSIF;
1738extern unsigned IOCTL_DIOCGETSTATUS;
1739extern unsigned IOCTL_DIOCCLRSTATUS;
1740extern unsigned IOCTL_DIOCNATLOOK;
1741extern unsigned IOCTL_DIOCSETDEBUG;
1742extern unsigned IOCTL_DIOCGETSTATES;
1743extern unsigned IOCTL_DIOCCHANGERULE;
1744extern unsigned IOCTL_DIOCSETTIMEOUT;
1745extern unsigned IOCTL_DIOCGETTIMEOUT;
1746extern unsigned IOCTL_DIOCADDSTATE;
1747extern unsigned IOCTL_DIOCCLRRULECTRS;
1748extern unsigned IOCTL_DIOCGETLIMIT;
1749extern unsigned IOCTL_DIOCSETLIMIT;
1750extern unsigned IOCTL_DIOCKILLSTATES;
1751extern unsigned IOCTL_DIOCSTARTALTQ;
1752extern unsigned IOCTL_DIOCSTOPALTQ;
1753extern unsigned IOCTL_DIOCADDALTQ;
1754extern unsigned IOCTL_DIOCGETALTQS;
1755extern unsigned IOCTL_DIOCGETALTQ;
1756extern unsigned IOCTL_DIOCCHANGEALTQ;
1757extern unsigned IOCTL_DIOCGETQSTATS;
1758extern unsigned IOCTL_DIOCBEGINADDRS;
1759extern unsigned IOCTL_DIOCADDADDR;
1760extern unsigned IOCTL_DIOCGETADDRS;
1761extern unsigned IOCTL_DIOCGETADDR;
1762extern unsigned IOCTL_DIOCCHANGEADDR;
1763extern unsigned IOCTL_DIOCADDSTATES;
1764extern unsigned IOCTL_DIOCGETRULESETS;
1765extern unsigned IOCTL_DIOCGETRULESET;
1766extern unsigned IOCTL_DIOCRCLRTABLES;
1767extern unsigned IOCTL_DIOCRADDTABLES;
1768extern unsigned IOCTL_DIOCRDELTABLES;
1769extern unsigned IOCTL_DIOCRGETTABLES;
1770extern unsigned IOCTL_DIOCRGETTSTATS;
1771extern unsigned IOCTL_DIOCRCLRTSTATS;
1772extern unsigned IOCTL_DIOCRCLRADDRS;
1773extern unsigned IOCTL_DIOCRADDADDRS;
1774extern unsigned IOCTL_DIOCRDELADDRS;
1775extern unsigned IOCTL_DIOCRSETADDRS;
1776extern unsigned IOCTL_DIOCRGETADDRS;
1777extern unsigned IOCTL_DIOCRGETASTATS;
1778extern unsigned IOCTL_DIOCRCLRASTATS;
1779extern unsigned IOCTL_DIOCRTSTADDRS;
1780extern unsigned IOCTL_DIOCRSETTFLAGS;
1781extern unsigned IOCTL_DIOCRINADEFINE;
1782extern unsigned IOCTL_DIOCOSFPFLUSH;
1783extern unsigned IOCTL_DIOCOSFPADD;
1784extern unsigned IOCTL_DIOCOSFPGET;
1785extern unsigned IOCTL_DIOCXBEGIN;
1786extern unsigned IOCTL_DIOCXCOMMIT;
1787extern unsigned IOCTL_DIOCXROLLBACK;
1788extern unsigned IOCTL_DIOCGETSRCNODES;
1789extern unsigned IOCTL_DIOCCLRSRCNODES;
1790extern unsigned IOCTL_DIOCSETHOSTID;
1791extern unsigned IOCTL_DIOCIGETIFACES;
1792extern unsigned IOCTL_DIOCSETIFFLAG;
1793extern unsigned IOCTL_DIOCCLRIFFLAG;
1794extern unsigned IOCTL_DIOCKILLSRCNODES;
1795extern unsigned IOCTL_SLIOCGUNIT;
1796extern unsigned IOCTL_SIOCGBTINFO;
1797extern unsigned IOCTL_SIOCGBTINFOA;
1798extern unsigned IOCTL_SIOCNBTINFO;
1799extern unsigned IOCTL_SIOCSBTFLAGS;
1800extern unsigned IOCTL_SIOCSBTPOLICY;
1801extern unsigned IOCTL_SIOCSBTPTYPE;
1802extern unsigned IOCTL_SIOCGBTSTATS;
1803extern unsigned IOCTL_SIOCZBTSTATS;
1804extern unsigned IOCTL_SIOCBTDUMP;
1805extern unsigned IOCTL_SIOCSBTSCOMTU;
1806extern unsigned IOCTL_SIOCGBTFEAT;
1807extern unsigned IOCTL_SIOCADNAT;
1808extern unsigned IOCTL_SIOCRMNAT;
1809extern unsigned IOCTL_SIOCGNATS;
1810extern unsigned IOCTL_SIOCGNATL;
1811extern unsigned IOCTL_SIOCPURGENAT;
1812extern unsigned IOCTL_SIOCCONNECTX;
1813extern unsigned IOCTL_SIOCCONNECTXDEL;
1814extern unsigned IOCTL_SIOCSIFINFO_FLAGS;
1815extern unsigned IOCTL_SIOCAADDRCTL_POLICY;
1816extern unsigned IOCTL_SIOCDADDRCTL_POLICY;
1817extern unsigned IOCTL_SMBIOC_OPENSESSION;
1818extern unsigned IOCTL_SMBIOC_OPENSHARE;
1819extern unsigned IOCTL_SMBIOC_REQUEST;
1820extern unsigned IOCTL_SMBIOC_SETFLAGS;
1821extern unsigned IOCTL_SMBIOC_LOOKUP;
1822extern unsigned IOCTL_SMBIOC_READ;
1823extern unsigned IOCTL_SMBIOC_WRITE;
1824extern unsigned IOCTL_AGPIOC_INFO;
1825extern unsigned IOCTL_AGPIOC_ACQUIRE;
1826extern unsigned IOCTL_AGPIOC_RELEASE;
1827extern unsigned IOCTL_AGPIOC_SETUP;
1828extern unsigned IOCTL_AGPIOC_ALLOCATE;
1829extern unsigned IOCTL_AGPIOC_DEALLOCATE;
1830extern unsigned IOCTL_AGPIOC_BIND;
1831extern unsigned IOCTL_AGPIOC_UNBIND;
1832extern unsigned IOCTL_AUDIO_GETINFO;
1833extern unsigned IOCTL_AUDIO_SETINFO;
1834extern unsigned IOCTL_AUDIO_DRAIN;
1835extern unsigned IOCTL_AUDIO_FLUSH;
1836extern unsigned IOCTL_AUDIO_WSEEK;
1837extern unsigned IOCTL_AUDIO_RERROR;
1838extern unsigned IOCTL_AUDIO_GETDEV;
1839extern unsigned IOCTL_AUDIO_GETENC;
1840extern unsigned IOCTL_AUDIO_GETFD;
1841extern unsigned IOCTL_AUDIO_SETFD;
1842extern unsigned IOCTL_AUDIO_PERROR;
1843extern unsigned IOCTL_AUDIO_GETIOFFS;
1844extern unsigned IOCTL_AUDIO_GETOOFFS;
1845extern unsigned IOCTL_AUDIO_GETPROPS;
1846extern unsigned IOCTL_AUDIO_GETBUFINFO;
1847extern unsigned IOCTL_AUDIO_SETCHAN;
1848extern unsigned IOCTL_AUDIO_GETCHAN;
1849extern unsigned IOCTL_AUDIO_QUERYFORMAT;
1850extern unsigned IOCTL_AUDIO_GETFORMAT;
1851extern unsigned IOCTL_AUDIO_SETFORMAT;
1852extern unsigned IOCTL_AUDIO_MIXER_READ;
1853extern unsigned IOCTL_AUDIO_MIXER_WRITE;
1854extern unsigned IOCTL_AUDIO_MIXER_DEVINFO;
1855extern unsigned IOCTL_ATAIOCCOMMAND;
1856extern unsigned IOCTL_ATABUSIOSCAN;
1857extern unsigned IOCTL_ATABUSIORESET;
1858extern unsigned IOCTL_ATABUSIODETACH;
1859extern unsigned IOCTL_CDIOCPLAYTRACKS;
1860extern unsigned IOCTL_CDIOCPLAYBLOCKS;
1861extern unsigned IOCTL_CDIOCREADSUBCHANNEL;
1862extern unsigned IOCTL_CDIOREADTOCHEADER;
1863extern unsigned IOCTL_CDIOREADTOCENTRIES;
1864extern unsigned IOCTL_CDIOREADMSADDR;
1865extern unsigned IOCTL_CDIOCSETPATCH;
1866extern unsigned IOCTL_CDIOCGETVOL;
1867extern unsigned IOCTL_CDIOCSETVOL;
1868extern unsigned IOCTL_CDIOCSETMONO;
1869extern unsigned IOCTL_CDIOCSETSTEREO;
1870extern unsigned IOCTL_CDIOCSETMUTE;
1871extern unsigned IOCTL_CDIOCSETLEFT;
1872extern unsigned IOCTL_CDIOCSETRIGHT;
1873extern unsigned IOCTL_CDIOCSETDEBUG;
1874extern unsigned IOCTL_CDIOCCLRDEBUG;
1875extern unsigned IOCTL_CDIOCPAUSE;
1876extern unsigned IOCTL_CDIOCRESUME;
1877extern unsigned IOCTL_CDIOCRESET;
1878extern unsigned IOCTL_CDIOCSTART;
1879extern unsigned IOCTL_CDIOCSTOP;
1880extern unsigned IOCTL_CDIOCEJECT;
1881extern unsigned IOCTL_CDIOCALLOW;
1882extern unsigned IOCTL_CDIOCPREVENT;
1883extern unsigned IOCTL_CDIOCCLOSE;
1884extern unsigned IOCTL_CDIOCPLAYMSF;
1885extern unsigned IOCTL_CDIOCLOADUNLOAD;
1886extern unsigned IOCTL_CHIOMOVE;
1887extern unsigned IOCTL_CHIOEXCHANGE;
1888extern unsigned IOCTL_CHIOPOSITION;
1889extern unsigned IOCTL_CHIOGPICKER;
1890extern unsigned IOCTL_CHIOSPICKER;
1891extern unsigned IOCTL_CHIOGPARAMS;
1892extern unsigned IOCTL_CHIOIELEM;
1893extern unsigned IOCTL_OCHIOGSTATUS;
1894extern unsigned IOCTL_CHIOGSTATUS;
1895extern unsigned IOCTL_CHIOSVOLTAG;
1896extern unsigned IOCTL_CLOCKCTL_SETTIMEOFDAY;
1897extern unsigned IOCTL_CLOCKCTL_ADJTIME;
1898extern unsigned IOCTL_CLOCKCTL_CLOCK_SETTIME;
1899extern unsigned IOCTL_CLOCKCTL_NTP_ADJTIME;
1900extern unsigned IOCTL_IOC_CPU_SETSTATE;
1901extern unsigned IOCTL_IOC_CPU_GETSTATE;
1902extern unsigned IOCTL_IOC_CPU_GETCOUNT;
1903extern unsigned IOCTL_IOC_CPU_MAPID;
1904extern unsigned IOCTL_IOC_CPU_UCODE_GET_VERSION;
1905extern unsigned IOCTL_IOC_CPU_UCODE_APPLY;
1906extern unsigned IOCTL_DIOCGDINFO;
1907extern unsigned IOCTL_DIOCSDINFO;
1908extern unsigned IOCTL_DIOCWDINFO;
1909extern unsigned IOCTL_DIOCRFORMAT;
1910extern unsigned IOCTL_DIOCWFORMAT;
1911extern unsigned IOCTL_DIOCSSTEP;
1912extern unsigned IOCTL_DIOCSRETRIES;
1913extern unsigned IOCTL_DIOCKLABEL;
1914extern unsigned IOCTL_DIOCWLABEL;
1915extern unsigned IOCTL_DIOCSBAD;
1916extern unsigned IOCTL_DIOCEJECT;
1917extern unsigned IOCTL_ODIOCEJECT;
1918extern unsigned IOCTL_DIOCLOCK;
1919extern unsigned IOCTL_DIOCGDEFLABEL;
1920extern unsigned IOCTL_DIOCCLRLABEL;
1921extern unsigned IOCTL_DIOCGCACHE;
1922extern unsigned IOCTL_DIOCSCACHE;
1923extern unsigned IOCTL_DIOCCACHESYNC;
1924extern unsigned IOCTL_DIOCBSLIST;
1925extern unsigned IOCTL_DIOCBSFLUSH;
1926extern unsigned IOCTL_DIOCAWEDGE;
1927extern unsigned IOCTL_DIOCGWEDGEINFO;
1928extern unsigned IOCTL_DIOCDWEDGE;
1929extern unsigned IOCTL_DIOCLWEDGES;
1930extern unsigned IOCTL_DIOCGSTRATEGY;
1931extern unsigned IOCTL_DIOCSSTRATEGY;
1932extern unsigned IOCTL_DIOCGDISKINFO;
1933extern unsigned IOCTL_DIOCTUR;
1934extern unsigned IOCTL_DIOCMWEDGES;
1935extern unsigned IOCTL_DIOCGSECTORSIZE;
1936extern unsigned IOCTL_DIOCGMEDIASIZE;
1937extern unsigned IOCTL_DIOCRMWEDGES;
1938extern unsigned IOCTL_DRVDETACHDEV;
1939extern unsigned IOCTL_DRVRESCANBUS;
1940extern unsigned IOCTL_DRVCTLCOMMAND;
1941extern unsigned IOCTL_DRVRESUMEDEV;
1942extern unsigned IOCTL_DRVLISTDEV;
1943extern unsigned IOCTL_DRVGETEVENT;
1944extern unsigned IOCTL_DRVSUSPENDDEV;
1945extern unsigned IOCTL_DVD_READ_STRUCT;
1946extern unsigned IOCTL_DVD_WRITE_STRUCT;
1947extern unsigned IOCTL_DVD_AUTH;
1948extern unsigned IOCTL_ENVSYS_GETDICTIONARY;
1949extern unsigned IOCTL_ENVSYS_SETDICTIONARY;
1950extern unsigned IOCTL_ENVSYS_REMOVEPROPS;
1951extern unsigned IOCTL_ENVSYS_GTREDATA;
1952extern unsigned IOCTL_ENVSYS_GTREINFO;
1953extern unsigned IOCTL_KFILTER_BYFILTER;
1954extern unsigned IOCTL_KFILTER_BYNAME;
1955extern unsigned IOCTL_FDIOCGETOPTS;
1956extern unsigned IOCTL_FDIOCSETOPTS;
1957extern unsigned IOCTL_FDIOCSETFORMAT;
1958extern unsigned IOCTL_FDIOCGETFORMAT;
1959extern unsigned IOCTL_FDIOCFORMAT_TRACK;
1960extern unsigned IOCTL_FIOCLEX;
1961extern unsigned IOCTL_FIONCLEX;
1962extern unsigned IOCTL_FIOSEEKDATA;
1963extern unsigned IOCTL_FIOSEEKHOLE;
1964extern unsigned IOCTL_FIONREAD;
1965extern unsigned IOCTL_FIONBIO;
1966extern unsigned IOCTL_FIOASYNC;
1967extern unsigned IOCTL_FIOSETOWN;
1968extern unsigned IOCTL_FIOGETOWN;
1969extern unsigned IOCTL_OFIOGETBMAP;
1970extern unsigned IOCTL_FIOGETBMAP;
1971extern unsigned IOCTL_FIONWRITE;
1972extern unsigned IOCTL_FIONSPACE;
1973extern unsigned IOCTL_GPIOINFO;
1974extern unsigned IOCTL_GPIOSET;
1975extern unsigned IOCTL_GPIOUNSET;
1976extern unsigned IOCTL_GPIOREAD;
1977extern unsigned IOCTL_GPIOWRITE;
1978extern unsigned IOCTL_GPIOTOGGLE;
1979extern unsigned IOCTL_GPIOATTACH;
1980extern unsigned IOCTL_PTIOCNETBSD;
1981extern unsigned IOCTL_PTIOCSUNOS;
1982extern unsigned IOCTL_PTIOCLINUX;
1983extern unsigned IOCTL_PTIOCFREEBSD;
1984extern unsigned IOCTL_PTIOCULTRIX;
1985extern unsigned IOCTL_TIOCHPCL;
1986extern unsigned IOCTL_TIOCGETP;
1987extern unsigned IOCTL_TIOCSETP;
1988extern unsigned IOCTL_TIOCSETN;
1989extern unsigned IOCTL_TIOCSETC;
1990extern unsigned IOCTL_TIOCGETC;
1991extern unsigned IOCTL_TIOCLBIS;
1992extern unsigned IOCTL_TIOCLBIC;
1993extern unsigned IOCTL_TIOCLSET;
1994extern unsigned IOCTL_TIOCLGET;
1995extern unsigned IOCTL_TIOCSLTC;
1996extern unsigned IOCTL_TIOCGLTC;
1997extern unsigned IOCTL_OTIOCCONS;
1998extern unsigned IOCTL_JOY_SETTIMEOUT;
1999extern unsigned IOCTL_JOY_GETTIMEOUT;
2000extern unsigned IOCTL_JOY_SET_X_OFFSET;
2001extern unsigned IOCTL_JOY_SET_Y_OFFSET;
2002extern unsigned IOCTL_JOY_GET_X_OFFSET;
2003extern unsigned IOCTL_JOY_GET_Y_OFFSET;
2004extern unsigned IOCTL_OKIOCGSYMBOL;
2005extern unsigned IOCTL_OKIOCGVALUE;
2006extern unsigned IOCTL_KIOCGSIZE;
2007extern unsigned IOCTL_KIOCGVALUE;
2008extern unsigned IOCTL_KIOCGSYMBOL;
2009extern unsigned IOCTL_LUAINFO;
2010extern unsigned IOCTL_LUACREATE;
2011extern unsigned IOCTL_LUADESTROY;
2012extern unsigned IOCTL_LUAREQUIRE;
2013extern unsigned IOCTL_LUALOAD;
2014extern unsigned IOCTL_MIDI_PRETIME;
2015extern unsigned IOCTL_MIDI_MPUMODE;
2016extern unsigned IOCTL_MIDI_MPUCMD;
2017extern unsigned IOCTL_SEQUENCER_RESET;
2018extern unsigned IOCTL_SEQUENCER_SYNC;
2019extern unsigned IOCTL_SEQUENCER_INFO;
2020extern unsigned IOCTL_SEQUENCER_CTRLRATE;
2021extern unsigned IOCTL_SEQUENCER_GETOUTCOUNT;
2022extern unsigned IOCTL_SEQUENCER_GETINCOUNT;
2023extern unsigned IOCTL_SEQUENCER_RESETSAMPLES;
2024extern unsigned IOCTL_SEQUENCER_NRSYNTHS;
2025extern unsigned IOCTL_SEQUENCER_NRMIDIS;
2026extern unsigned IOCTL_SEQUENCER_THRESHOLD;
2027extern unsigned IOCTL_SEQUENCER_MEMAVL;
2028extern unsigned IOCTL_SEQUENCER_PANIC;
2029extern unsigned IOCTL_SEQUENCER_OUTOFBAND;
2030extern unsigned IOCTL_SEQUENCER_GETTIME;
2031extern unsigned IOCTL_SEQUENCER_TMR_TIMEBASE;
2032extern unsigned IOCTL_SEQUENCER_TMR_START;
2033extern unsigned IOCTL_SEQUENCER_TMR_STOP;
2034extern unsigned IOCTL_SEQUENCER_TMR_CONTINUE;
2035extern unsigned IOCTL_SEQUENCER_TMR_TEMPO;
2036extern unsigned IOCTL_SEQUENCER_TMR_SOURCE;
2037extern unsigned IOCTL_SEQUENCER_TMR_METRONOME;
2038extern unsigned IOCTL_SEQUENCER_TMR_SELECT;
2039extern unsigned IOCTL_SPI_IOCTL_CONFIGURE;
2040extern unsigned IOCTL_SPI_IOCTL_TRANSFER;
2041extern unsigned IOCTL_MTIOCTOP;
2042extern unsigned IOCTL_MTIOCGET;
2043extern unsigned IOCTL_MTIOCIEOT;
2044extern unsigned IOCTL_MTIOCEEOT;
2045extern unsigned IOCTL_MTIOCRDSPOS;
2046extern unsigned IOCTL_MTIOCRDHPOS;
2047extern unsigned IOCTL_MTIOCSLOCATE;
2048extern unsigned IOCTL_MTIOCHLOCATE;
2049extern unsigned IOCTL_POWER_EVENT_RECVDICT;
2050extern unsigned IOCTL_POWER_IOC_GET_TYPE;
2051extern unsigned IOCTL_RIOCGINFO;
2052extern unsigned IOCTL_RIOCSINFO;
2053extern unsigned IOCTL_RIOCSSRCH;
2054extern unsigned IOCTL_RNDGETENTCNT;
2055extern unsigned IOCTL_RNDGETSRCNUM;
2056extern unsigned IOCTL_RNDGETSRCNAME;
2057extern unsigned IOCTL_RNDCTL;
2058extern unsigned IOCTL_RNDADDDATA;
2059extern unsigned IOCTL_RNDGETPOOLSTAT;
2060extern unsigned IOCTL_RNDGETESTNUM;
2061extern unsigned IOCTL_RNDGETESTNAME;
2062extern unsigned IOCTL_SCIOCGET;
2063extern unsigned IOCTL_SCIOCSET;
2064extern unsigned IOCTL_SCIOCRESTART;
2065extern unsigned IOCTL_SCIOC_USE_ADF;
2066extern unsigned IOCTL_SCIOCCOMMAND;
2067extern unsigned IOCTL_SCIOCDEBUG;
2068extern unsigned IOCTL_SCIOCIDENTIFY;
2069extern unsigned IOCTL_OSCIOCIDENTIFY;
2070extern unsigned IOCTL_SCIOCDECONFIG;
2071extern unsigned IOCTL_SCIOCRECONFIG;
2072extern unsigned IOCTL_SCIOCRESET;
2073extern unsigned IOCTL_SCBUSIOSCAN;
2074extern unsigned IOCTL_SCBUSIORESET;
2075extern unsigned IOCTL_SCBUSIODETACH;
2076extern unsigned IOCTL_SCBUSACCEL;
2077extern unsigned IOCTL_SCBUSIOLLSCAN;
2078extern unsigned IOCTL_SIOCSHIWAT;
2079extern unsigned IOCTL_SIOCGHIWAT;
2080extern unsigned IOCTL_SIOCSLOWAT;
2081extern unsigned IOCTL_SIOCGLOWAT;
2082extern unsigned IOCTL_SIOCATMARK;
2083extern unsigned IOCTL_SIOCSPGRP;
2084extern unsigned IOCTL_SIOCGPGRP;
2085extern unsigned IOCTL_SIOCPEELOFF;
2086extern unsigned IOCTL_SIOCADDRT;
2087extern unsigned IOCTL_SIOCDELRT;
2088extern unsigned IOCTL_SIOCSIFADDR;
2089extern unsigned IOCTL_SIOCGIFADDR;
2090extern unsigned IOCTL_SIOCSIFDSTADDR;
2091extern unsigned IOCTL_SIOCGIFDSTADDR;
2092extern unsigned IOCTL_SIOCSIFFLAGS;
2093extern unsigned IOCTL_SIOCGIFFLAGS;
2094extern unsigned IOCTL_SIOCGIFBRDADDR;
2095extern unsigned IOCTL_SIOCSIFBRDADDR;
2096extern unsigned IOCTL_SIOCGIFCONF;
2097extern unsigned IOCTL_SIOCGIFNETMASK;
2098extern unsigned IOCTL_SIOCSIFNETMASK;
2099extern unsigned IOCTL_SIOCGIFMETRIC;
2100extern unsigned IOCTL_SIOCSIFMETRIC;
2101extern unsigned IOCTL_SIOCDIFADDR;
2102extern unsigned IOCTL_SIOCAIFADDR;
2103extern unsigned IOCTL_SIOCGIFALIAS;
2104extern unsigned IOCTL_SIOCGIFAFLAG_IN;
2105extern unsigned IOCTL_SIOCALIFADDR;
2106extern unsigned IOCTL_SIOCGLIFADDR;
2107extern unsigned IOCTL_SIOCDLIFADDR;
2108extern unsigned IOCTL_SIOCSIFADDRPREF;
2109extern unsigned IOCTL_SIOCGIFADDRPREF;
2110extern unsigned IOCTL_SIOCADDMULTI;
2111extern unsigned IOCTL_SIOCDELMULTI;
2112extern unsigned IOCTL_SIOCGETVIFCNT;
2113extern unsigned IOCTL_SIOCGETSGCNT;
2114extern unsigned IOCTL_SIOCSIFMEDIA;
2115extern unsigned IOCTL_SIOCGIFMEDIA;
2116extern unsigned IOCTL_SIOCSIFGENERIC;
2117extern unsigned IOCTL_SIOCGIFGENERIC;
2118extern unsigned IOCTL_SIOCSIFPHYADDR;
2119extern unsigned IOCTL_SIOCGIFPSRCADDR;
2120extern unsigned IOCTL_SIOCGIFPDSTADDR;
2121extern unsigned IOCTL_SIOCDIFPHYADDR;
2122extern unsigned IOCTL_SIOCSLIFPHYADDR;
2123extern unsigned IOCTL_SIOCGLIFPHYADDR;
2124extern unsigned IOCTL_SIOCSIFMTU;
2125extern unsigned IOCTL_SIOCGIFMTU;
2126extern unsigned IOCTL_SIOCSDRVSPEC;
2127extern unsigned IOCTL_SIOCGDRVSPEC;
2128extern unsigned IOCTL_SIOCIFCREATE;
2129extern unsigned IOCTL_SIOCIFDESTROY;
2130extern unsigned IOCTL_SIOCIFGCLONERS;
2131extern unsigned IOCTL_SIOCGIFDLT;
2132extern unsigned IOCTL_SIOCGIFCAP;
2133extern unsigned IOCTL_SIOCSIFCAP;
2134extern unsigned IOCTL_SIOCSVH;
2135extern unsigned IOCTL_SIOCGVH;
2136extern unsigned IOCTL_SIOCINITIFADDR;
2137extern unsigned IOCTL_SIOCGIFDATA;
2138extern unsigned IOCTL_SIOCZIFDATA;
2139extern unsigned IOCTL_SIOCGLINKSTR;
2140extern unsigned IOCTL_SIOCSLINKSTR;
2141extern unsigned IOCTL_SIOCGETHERCAP;
2142extern unsigned IOCTL_SIOCGIFINDEX;
2143extern unsigned IOCTL_SIOCSETHERCAP;
2144extern unsigned IOCTL_SIOCSIFDESCR;
2145extern unsigned IOCTL_SIOCGIFDESCR;
2146extern unsigned IOCTL_SIOCGUMBINFO;
2147extern unsigned IOCTL_SIOCSUMBPARAM;
2148extern unsigned IOCTL_SIOCGUMBPARAM;
2149extern unsigned IOCTL_SIOCSETPFSYNC;
2150extern unsigned IOCTL_SIOCGETPFSYNC;
2151extern unsigned IOCTL_PPS_IOC_CREATE;
2152extern unsigned IOCTL_PPS_IOC_DESTROY;
2153extern unsigned IOCTL_PPS_IOC_SETPARAMS;
2154extern unsigned IOCTL_PPS_IOC_GETPARAMS;
2155extern unsigned IOCTL_PPS_IOC_GETCAP;
2156extern unsigned IOCTL_PPS_IOC_FETCH;
2157extern unsigned IOCTL_PPS_IOC_KCBIND;
2158extern unsigned IOCTL_TIOCEXCL;
2159extern unsigned IOCTL_TIOCNXCL;
2160extern unsigned IOCTL_TIOCFLUSH;
2161extern unsigned IOCTL_TIOCGETA;
2162extern unsigned IOCTL_TIOCSETA;
2163extern unsigned IOCTL_TIOCSETAW;
2164extern unsigned IOCTL_TIOCSETAF;
2165extern unsigned IOCTL_TIOCGETD;
2166extern unsigned IOCTL_TIOCSETD;
2167extern unsigned IOCTL_TIOCGLINED;
2168extern unsigned IOCTL_TIOCSLINED;
2169extern unsigned IOCTL_TIOCSBRK;
2170extern unsigned IOCTL_TIOCCBRK;
2171extern unsigned IOCTL_TIOCSDTR;
2172extern unsigned IOCTL_TIOCCDTR;
2173extern unsigned IOCTL_TIOCGPGRP;
2174extern unsigned IOCTL_TIOCSPGRP;
2175extern unsigned IOCTL_TIOCOUTQ;
2176extern unsigned IOCTL_TIOCSTI;
2177extern unsigned IOCTL_TIOCNOTTY;
2178extern unsigned IOCTL_TIOCPKT;
2179extern unsigned IOCTL_TIOCSTOP;
2180extern unsigned IOCTL_TIOCSTART;
2181extern unsigned IOCTL_TIOCMSET;
2182extern unsigned IOCTL_TIOCMBIS;
2183extern unsigned IOCTL_TIOCMBIC;
2184extern unsigned IOCTL_TIOCMGET;
2185extern unsigned IOCTL_TIOCREMOTE;
2186extern unsigned IOCTL_TIOCGWINSZ;
2187extern unsigned IOCTL_TIOCSWINSZ;
2188extern unsigned IOCTL_TIOCUCNTL;
2189extern unsigned IOCTL_TIOCSTAT;
2190extern unsigned IOCTL_TIOCGSID;
2191extern unsigned IOCTL_TIOCCONS;
2192extern unsigned IOCTL_TIOCSCTTY;
2193extern unsigned IOCTL_TIOCEXT;
2194extern unsigned IOCTL_TIOCSIG;
2195extern unsigned IOCTL_TIOCDRAIN;
2196extern unsigned IOCTL_TIOCGFLAGS;
2197extern unsigned IOCTL_TIOCSFLAGS;
2198extern unsigned IOCTL_TIOCDCDTIMESTAMP;
2199extern unsigned IOCTL_TIOCRCVFRAME;
2200extern unsigned IOCTL_TIOCXMTFRAME;
2201extern unsigned IOCTL_TIOCPTMGET;
2202extern unsigned IOCTL_TIOCGRANTPT;
2203extern unsigned IOCTL_TIOCPTSNAME;
2204extern unsigned IOCTL_TIOCSQSIZE;
2205extern unsigned IOCTL_TIOCGQSIZE;
2206extern unsigned IOCTL_VERIEXEC_LOAD;
2207extern unsigned IOCTL_VERIEXEC_TABLESIZE;
2208extern unsigned IOCTL_VERIEXEC_DELETE;
2209extern unsigned IOCTL_VERIEXEC_QUERY;
2210extern unsigned IOCTL_VERIEXEC_DUMP;
2211extern unsigned IOCTL_VERIEXEC_FLUSH;
2212extern unsigned IOCTL_VIDIOC_QUERYCAP;
2213extern unsigned IOCTL_VIDIOC_RESERVED;
2214extern unsigned IOCTL_VIDIOC_ENUM_FMT;
2215extern unsigned IOCTL_VIDIOC_G_FMT;
2216extern unsigned IOCTL_VIDIOC_S_FMT;
2217extern unsigned IOCTL_VIDIOC_REQBUFS;
2218extern unsigned IOCTL_VIDIOC_QUERYBUF;
2219extern unsigned IOCTL_VIDIOC_G_FBUF;
2220extern unsigned IOCTL_VIDIOC_S_FBUF;
2221extern unsigned IOCTL_VIDIOC_OVERLAY;
2222extern unsigned IOCTL_VIDIOC_QBUF;
2223extern unsigned IOCTL_VIDIOC_DQBUF;
2224extern unsigned IOCTL_VIDIOC_STREAMON;
2225extern unsigned IOCTL_VIDIOC_STREAMOFF;
2226extern unsigned IOCTL_VIDIOC_G_PARM;
2227extern unsigned IOCTL_VIDIOC_S_PARM;
2228extern unsigned IOCTL_VIDIOC_G_STD;
2229extern unsigned IOCTL_VIDIOC_S_STD;
2230extern unsigned IOCTL_VIDIOC_ENUMSTD;
2231extern unsigned IOCTL_VIDIOC_ENUMINPUT;
2232extern unsigned IOCTL_VIDIOC_G_CTRL;
2233extern unsigned IOCTL_VIDIOC_S_CTRL;
2234extern unsigned IOCTL_VIDIOC_G_TUNER;
2235extern unsigned IOCTL_VIDIOC_S_TUNER;
2236extern unsigned IOCTL_VIDIOC_G_AUDIO;
2237extern unsigned IOCTL_VIDIOC_S_AUDIO;
2238extern unsigned IOCTL_VIDIOC_QUERYCTRL;
2239extern unsigned IOCTL_VIDIOC_QUERYMENU;
2240extern unsigned IOCTL_VIDIOC_G_INPUT;
2241extern unsigned IOCTL_VIDIOC_S_INPUT;
2242extern unsigned IOCTL_VIDIOC_G_OUTPUT;
2243extern unsigned IOCTL_VIDIOC_S_OUTPUT;
2244extern unsigned IOCTL_VIDIOC_ENUMOUTPUT;
2245extern unsigned IOCTL_VIDIOC_G_AUDOUT;
2246extern unsigned IOCTL_VIDIOC_S_AUDOUT;
2247extern unsigned IOCTL_VIDIOC_G_MODULATOR;
2248extern unsigned IOCTL_VIDIOC_S_MODULATOR;
2249extern unsigned IOCTL_VIDIOC_G_FREQUENCY;
2250extern unsigned IOCTL_VIDIOC_S_FREQUENCY;
2251extern unsigned IOCTL_VIDIOC_CROPCAP;
2252extern unsigned IOCTL_VIDIOC_G_CROP;
2253extern unsigned IOCTL_VIDIOC_S_CROP;
2254extern unsigned IOCTL_VIDIOC_G_JPEGCOMP;
2255extern unsigned IOCTL_VIDIOC_S_JPEGCOMP;
2256extern unsigned IOCTL_VIDIOC_QUERYSTD;
2257extern unsigned IOCTL_VIDIOC_TRY_FMT;
2258extern unsigned IOCTL_VIDIOC_ENUMAUDIO;
2259extern unsigned IOCTL_VIDIOC_ENUMAUDOUT;
2260extern unsigned IOCTL_VIDIOC_G_PRIORITY;
2261extern unsigned IOCTL_VIDIOC_S_PRIORITY;
2262extern unsigned IOCTL_VIDIOC_ENUM_FRAMESIZES;
2263extern unsigned IOCTL_VIDIOC_ENUM_FRAMEINTERVALS;
2264extern unsigned IOCTL_WDOGIOC_GMODE;
2265extern unsigned IOCTL_WDOGIOC_SMODE;
2266extern unsigned IOCTL_WDOGIOC_WHICH;
2267extern unsigned IOCTL_WDOGIOC_TICKLE;
2268extern unsigned IOCTL_WDOGIOC_GTICKLER;
2269extern unsigned IOCTL_WDOGIOC_GWDOGS;
2270extern unsigned IOCTL_KCOV_IOC_SETBUFSIZE;
2271extern unsigned IOCTL_KCOV_IOC_ENABLE;
2272extern unsigned IOCTL_KCOV_IOC_DISABLE;
2273extern unsigned IOCTL_IPMICTL_RECEIVE_MSG_TRUNC;
2274extern unsigned IOCTL_IPMICTL_RECEIVE_MSG;
2275extern unsigned IOCTL_IPMICTL_SEND_COMMAND;
2276extern unsigned IOCTL_IPMICTL_REGISTER_FOR_CMD;
2277extern unsigned IOCTL_IPMICTL_UNREGISTER_FOR_CMD;
2278extern unsigned IOCTL_IPMICTL_SET_GETS_EVENTS_CMD;
2279extern unsigned IOCTL_IPMICTL_SET_MY_ADDRESS_CMD;
2280extern unsigned IOCTL_IPMICTL_GET_MY_ADDRESS_CMD;
2281extern unsigned IOCTL_IPMICTL_SET_MY_LUN_CMD;
2282extern unsigned IOCTL_IPMICTL_GET_MY_LUN_CMD;
2283extern unsigned IOCTL_SNDCTL_DSP_RESET;
2284extern unsigned IOCTL_SNDCTL_DSP_SYNC;
2285extern unsigned IOCTL_SNDCTL_DSP_SPEED;
2286extern unsigned IOCTL_SOUND_PCM_READ_RATE;
2287extern unsigned IOCTL_SNDCTL_DSP_STEREO;
2288extern unsigned IOCTL_SNDCTL_DSP_GETBLKSIZE;
2289extern unsigned IOCTL_SNDCTL_DSP_SETFMT;
2290extern unsigned IOCTL_SOUND_PCM_READ_BITS;
2291extern unsigned IOCTL_SNDCTL_DSP_CHANNELS;
2292extern unsigned IOCTL_SOUND_PCM_READ_CHANNELS;
2293extern unsigned IOCTL_SOUND_PCM_WRITE_FILTER;
2294extern unsigned IOCTL_SOUND_PCM_READ_FILTER;
2295extern unsigned IOCTL_SNDCTL_DSP_POST;
2296extern unsigned IOCTL_SNDCTL_DSP_SUBDIVIDE;
2297extern unsigned IOCTL_SNDCTL_DSP_SETFRAGMENT;
2298extern unsigned IOCTL_SNDCTL_DSP_GETFMTS;
2299extern unsigned IOCTL_SNDCTL_DSP_GETOSPACE;
2300extern unsigned IOCTL_SNDCTL_DSP_GETISPACE;
2301extern unsigned IOCTL_SNDCTL_DSP_NONBLOCK;
2302extern unsigned IOCTL_SNDCTL_DSP_GETCAPS;
2303extern unsigned IOCTL_SNDCTL_DSP_GETTRIGGER;
2304extern unsigned IOCTL_SNDCTL_DSP_SETTRIGGER;
2305extern unsigned IOCTL_SNDCTL_DSP_GETIPTR;
2306extern unsigned IOCTL_SNDCTL_DSP_GETOPTR;
2307extern unsigned IOCTL_SNDCTL_DSP_MAPINBUF;
2308extern unsigned IOCTL_SNDCTL_DSP_MAPOUTBUF;
2309extern unsigned IOCTL_SNDCTL_DSP_SETSYNCRO;
2310extern unsigned IOCTL_SNDCTL_DSP_SETDUPLEX;
2311extern unsigned IOCTL_SNDCTL_DSP_PROFILE;
2312extern unsigned IOCTL_SNDCTL_DSP_GETODELAY;
2313extern unsigned IOCTL_SOUND_MIXER_INFO;
2314extern unsigned IOCTL_SOUND_OLD_MIXER_INFO;
2315extern unsigned IOCTL_OSS_GETVERSION;
2316extern unsigned IOCTL_SNDCTL_SYSINFO;
2317extern unsigned IOCTL_SNDCTL_AUDIOINFO;
2318extern unsigned IOCTL_SNDCTL_ENGINEINFO;
2319extern unsigned IOCTL_SNDCTL_DSP_GETPLAYVOL;
2320extern unsigned IOCTL_SNDCTL_DSP_SETPLAYVOL;
2321extern unsigned IOCTL_SNDCTL_DSP_GETRECVOL;
2322extern unsigned IOCTL_SNDCTL_DSP_SETRECVOL;
2323extern unsigned IOCTL_SNDCTL_DSP_SKIP;
2324extern unsigned IOCTL_SNDCTL_DSP_SILENCE;
2325
2326extern const int si_SEGV_MAPERR;
2327extern const int si_SEGV_ACCERR;
2328
2329extern const unsigned SHA1_CTX_sz;
2330extern const unsigned SHA1_return_length;
2331
2332extern const unsigned MD4_CTX_sz;
2333extern const unsigned MD4_return_length;
2334
2335extern const unsigned RMD160_CTX_sz;
2336extern const unsigned RMD160_return_length;
2337
2338extern const unsigned MD5_CTX_sz;
2339extern const unsigned MD5_return_length;
2340
2341extern const unsigned fpos_t_sz;
2342
2343extern const unsigned MD2_CTX_sz;
2344extern const unsigned MD2_return_length;
2345
2346#define SHA2_EXTERN(LEN)                          \
2347  extern const unsigned SHA##LEN##_CTX_sz;        \
2348  extern const unsigned SHA##LEN##_return_length; \
2349  extern const unsigned SHA##LEN##_block_length;  \
2350  extern const unsigned SHA##LEN##_digest_length
2351
2352SHA2_EXTERN(224);
2353SHA2_EXTERN(256);
2354SHA2_EXTERN(384);
2355SHA2_EXTERN(512);
2356
2357#undef SHA2_EXTERN
2358
2359extern const int unvis_valid;
2360extern const int unvis_validpush;
2361
2362struct __sanitizer_cdbr {
2363  void (*unmap)(void *, void *, uptr);
2364  void *cookie;
2365  u8 *mmap_base;
2366  uptr mmap_size;
2367
2368  u8 *hash_base;
2369  u8 *offset_base;
2370  u8 *data_base;
2371
2372  u32 data_size;
2373  u32 entries;
2374  u32 entries_index;
2375  u32 seed;
2376
2377  u8 offset_size;
2378  u8 index_size;
2379
2380  u32 entries_m;
2381  u32 entries_index_m;
2382  u8 entries_s1, entries_s2;
2383  u8 entries_index_s1, entries_index_s2;
2384};
2385
2386struct __sanitizer_cdbw {
2387  uptr data_counter;
2388  uptr data_allocated;
2389  uptr data_size;
2390  uptr *data_len;
2391  void **data_ptr;
2392  uptr hash_size;
2393  void *hash;
2394  uptr key_counter;
2395};
2396}  // namespace __sanitizer
2397
2398#define CHECK_TYPE_SIZE(TYPE) \
2399  COMPILER_CHECK(sizeof(__sanitizer_##TYPE) == sizeof(TYPE))
2400
2401#define CHECK_SIZE_AND_OFFSET(CLASS, MEMBER)                      \
2402  COMPILER_CHECK(sizeof(((__sanitizer_##CLASS *)NULL)->MEMBER) == \
2403                 sizeof(((CLASS *)NULL)->MEMBER));                \
2404  COMPILER_CHECK(offsetof(__sanitizer_##CLASS, MEMBER) ==         \
2405                 offsetof(CLASS, MEMBER))
2406
2407// For sigaction, which is a function and struct at the same time,
2408// and thus requires explicit "struct" in sizeof() expression.
2409#define CHECK_STRUCT_SIZE_AND_OFFSET(CLASS, MEMBER)                      \
2410  COMPILER_CHECK(sizeof(((struct __sanitizer_##CLASS *)NULL)->MEMBER) == \
2411                 sizeof(((struct CLASS *)NULL)->MEMBER));                \
2412  COMPILER_CHECK(offsetof(struct __sanitizer_##CLASS, MEMBER) ==         \
2413                 offsetof(struct CLASS, MEMBER))
2414
2415#define SIGACTION_SYMNAME __sigaction14
2416
2417// Compat with 9.0
2418extern unsigned struct_statvfs90_sz;
2419
2420#endif  // SANITIZER_NETBSD
2421
2422#endif
2423