2013-02-19 17:19:16 +08:00
|
|
|
//===-- sanitizer_platform_limits_posix.cc --------------------------------===//
|
2012-12-11 20:27:27 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2013-02-19 17:19:16 +08:00
|
|
|
// This file is a part of Sanitizer common code.
|
2012-12-11 20:27:27 +08:00
|
|
|
//
|
|
|
|
// Sizes and layouts of platform-specific POSIX data structures.
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2013-03-19 22:33:38 +08:00
|
|
|
|
|
|
|
#include "sanitizer_platform.h"
|
|
|
|
#if SANITIZER_LINUX || SANITIZER_MAC
|
2012-12-11 20:27:27 +08:00
|
|
|
|
2013-02-19 17:19:16 +08:00
|
|
|
#include "sanitizer_internal_defs.h"
|
|
|
|
#include "sanitizer_platform_limits_posix.h"
|
2012-12-11 20:27:27 +08:00
|
|
|
|
2013-04-23 22:05:15 +08:00
|
|
|
#include <arpa/inet.h>
|
2013-02-19 17:19:16 +08:00
|
|
|
#include <dirent.h>
|
2013-04-23 20:01:20 +08:00
|
|
|
#include <grp.h>
|
2013-06-07 21:00:47 +08:00
|
|
|
#include <net/if.h>
|
|
|
|
#include <net/if_arp.h>
|
|
|
|
#include <net/route.h>
|
|
|
|
#include <netdb.h>
|
2013-03-13 17:01:40 +08:00
|
|
|
#include <pthread.h>
|
2013-04-01 22:47:21 +08:00
|
|
|
#include <pwd.h>
|
|
|
|
#include <signal.h>
|
2013-05-17 21:30:48 +08:00
|
|
|
#include <stddef.h>
|
2012-12-11 20:27:27 +08:00
|
|
|
#include <sys/resource.h>
|
2013-02-19 17:19:16 +08:00
|
|
|
#include <sys/socket.h>
|
2013-06-07 21:00:47 +08:00
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/utsname.h>
|
|
|
|
#include <termios.h>
|
2013-02-19 17:19:16 +08:00
|
|
|
#include <time.h>
|
|
|
|
|
2013-06-07 21:00:47 +08:00
|
|
|
#if SANITIZER_LINUX
|
2013-06-18 17:22:24 +08:00
|
|
|
#include <sys/mount.h>
|
2013-06-07 21:00:47 +08:00
|
|
|
#include <sys/vt.h>
|
|
|
|
#include <linux/cdrom.h>
|
|
|
|
#include <linux/fd.h>
|
2013-06-18 17:49:04 +08:00
|
|
|
#include <linux/fs.h>
|
2013-06-07 21:00:47 +08:00
|
|
|
#include <linux/hdreg.h>
|
|
|
|
#include <linux/soundcard.h>
|
|
|
|
#endif
|
|
|
|
|
2013-04-04 17:21:48 +08:00
|
|
|
#if !SANITIZER_ANDROID
|
|
|
|
#include <sys/ucontext.h>
|
2013-06-07 21:00:47 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if SANITIZER_LINUX && !SANITIZER_ANDROID
|
2013-06-19 18:36:31 +08:00
|
|
|
#include <net/if_ppp.h>
|
2013-06-07 21:00:47 +08:00
|
|
|
#include <netax25/ax25.h>
|
|
|
|
#include <netipx/ipx.h>
|
|
|
|
#include <netrom/netrom.h>
|
2013-06-18 17:22:24 +08:00
|
|
|
#include <scsi/scsi.h>
|
2013-06-07 21:00:47 +08:00
|
|
|
#include <sys/mtio.h>
|
|
|
|
#include <sys/kd.h>
|
|
|
|
#include <linux/cyclades.h>
|
2013-06-18 17:22:24 +08:00
|
|
|
#include <linux/if_eql.h>
|
|
|
|
#include <linux/if_plip.h>
|
2013-06-07 21:00:47 +08:00
|
|
|
#include <linux/lp.h>
|
|
|
|
#include <linux/mroute.h>
|
|
|
|
#include <linux/mroute6.h>
|
|
|
|
#include <linux/scc.h>
|
|
|
|
#include <linux/serial.h>
|
|
|
|
#endif // SANITIZER_LINUX && !SANITIZER_ANDROID
|
|
|
|
|
|
|
|
#if SANITIZER_ANDROID
|
2013-06-07 22:56:54 +08:00
|
|
|
#include <linux/kd.h>
|
2013-06-07 21:00:47 +08:00
|
|
|
#include <linux/mtio.h>
|
2013-06-19 18:36:31 +08:00
|
|
|
#include <linux/ppp_defs.h>
|
|
|
|
#include <linux/if_ppp.h>
|
2013-06-07 21:00:47 +08:00
|
|
|
#endif
|
2013-04-04 17:21:48 +08:00
|
|
|
|
2013-03-19 22:33:38 +08:00
|
|
|
#if SANITIZER_LINUX
|
2013-05-17 20:51:13 +08:00
|
|
|
#include <link.h>
|
2012-12-11 20:27:27 +08:00
|
|
|
#include <sys/vfs.h>
|
|
|
|
#include <sys/epoll.h>
|
2013-04-03 15:24:35 +08:00
|
|
|
#endif // SANITIZER_LINUX
|
2012-12-11 20:27:27 +08:00
|
|
|
|
2013-06-07 21:00:47 +08:00
|
|
|
#if SANITIZER_MAC
|
|
|
|
#include <netinet/ip_mroute.h>
|
2013-06-18 17:22:24 +08:00
|
|
|
#include <sys/filio.h>
|
|
|
|
#include <sys/sockio.h>
|
2013-06-07 21:00:47 +08:00
|
|
|
#endif
|
|
|
|
|
2013-02-19 17:19:16 +08:00
|
|
|
namespace __sanitizer {
|
2012-12-11 20:27:27 +08:00
|
|
|
unsigned struct_utsname_sz = sizeof(struct utsname);
|
|
|
|
unsigned struct_stat_sz = sizeof(struct stat);
|
|
|
|
unsigned struct_stat64_sz = sizeof(struct stat64);
|
2013-02-19 17:19:16 +08:00
|
|
|
unsigned struct_rusage_sz = sizeof(struct rusage);
|
|
|
|
unsigned struct_tm_sz = sizeof(struct tm);
|
2013-04-01 22:47:21 +08:00
|
|
|
unsigned struct_passwd_sz = sizeof(struct passwd);
|
2013-04-23 20:01:20 +08:00
|
|
|
unsigned struct_group_sz = sizeof(struct group);
|
2013-04-09 22:34:59 +08:00
|
|
|
unsigned siginfo_t_sz = sizeof(siginfo_t);
|
2013-04-01 22:47:21 +08:00
|
|
|
unsigned struct_sigaction_sz = sizeof(struct sigaction);
|
|
|
|
unsigned struct_itimerval_sz = sizeof(struct itimerval);
|
|
|
|
unsigned pthread_t_sz = sizeof(pthread_t);
|
2013-06-07 21:00:47 +08:00
|
|
|
unsigned pid_t_sz = sizeof(pid_t);
|
|
|
|
unsigned timeval_sz = sizeof(timeval);
|
|
|
|
unsigned uid_t_sz = sizeof(uid_t);
|
2013-04-04 17:21:48 +08:00
|
|
|
|
|
|
|
#if !SANITIZER_ANDROID
|
2013-04-04 17:03:56 +08:00
|
|
|
unsigned ucontext_t_sz = sizeof(ucontext_t);
|
2013-04-04 17:21:48 +08:00
|
|
|
#endif // !SANITIZER_ANDROID
|
2013-02-19 17:19:16 +08:00
|
|
|
|
2013-03-19 22:33:38 +08:00
|
|
|
#if SANITIZER_LINUX
|
2012-12-11 20:27:27 +08:00
|
|
|
unsigned struct_rlimit_sz = sizeof(struct rlimit);
|
|
|
|
unsigned struct_dirent_sz = sizeof(struct dirent);
|
|
|
|
unsigned struct_statfs_sz = sizeof(struct statfs);
|
|
|
|
unsigned struct_epoll_event_sz = sizeof(struct epoll_event);
|
2013-04-01 22:47:21 +08:00
|
|
|
unsigned struct_timespec_sz = sizeof(struct timespec);
|
2013-04-03 15:24:35 +08:00
|
|
|
#endif // SANITIZER_LINUX
|
2012-12-11 20:27:27 +08:00
|
|
|
|
2013-03-19 22:33:38 +08:00
|
|
|
#if SANITIZER_LINUX && !SANITIZER_ANDROID
|
2013-03-14 21:24:03 +08:00
|
|
|
unsigned struct_dirent64_sz = sizeof(struct dirent64);
|
2013-02-19 19:06:41 +08:00
|
|
|
unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
|
|
|
|
unsigned struct_statfs64_sz = sizeof(struct statfs64);
|
2013-04-03 15:24:35 +08:00
|
|
|
#endif // SANITIZER_LINUX && !SANITIZER_ANDROID
|
2013-02-19 19:06:41 +08:00
|
|
|
|
2013-04-04 16:22:52 +08:00
|
|
|
uptr sig_ign = (uptr)SIG_IGN;
|
|
|
|
uptr sig_dfl = (uptr)SIG_DFL;
|
|
|
|
|
2013-06-07 21:00:47 +08:00
|
|
|
#if SANITIZER_LINUX
|
|
|
|
int e_tabsz = (int)E_TABSZ;
|
|
|
|
#endif
|
|
|
|
|
2013-04-04 16:22:52 +08:00
|
|
|
uptr __sanitizer_get_sigaction_sa_sigaction(void *act) {
|
|
|
|
struct sigaction *a = (struct sigaction *)act;
|
|
|
|
// Check that sa_sigaction and sa_handler are the same.
|
|
|
|
CHECK((void *)&(a->sa_sigaction) == (void *)&(a->sa_handler));
|
|
|
|
return (uptr) a->sa_sigaction;
|
|
|
|
}
|
|
|
|
void __sanitizer_set_sigaction_sa_sigaction(void *act, uptr cb) {
|
|
|
|
struct sigaction *a = (struct sigaction *)act;
|
|
|
|
a->sa_sigaction = (void (*)(int, siginfo_t *, void *))cb;
|
|
|
|
}
|
|
|
|
bool __sanitizer_get_sigaction_sa_siginfo(void *act) {
|
|
|
|
struct sigaction *a = (struct sigaction *)act;
|
|
|
|
return a->sa_flags & SA_SIGINFO;
|
|
|
|
}
|
2013-04-23 22:05:15 +08:00
|
|
|
|
|
|
|
uptr __sanitizer_in_addr_sz(int af) {
|
|
|
|
if (af == AF_INET)
|
|
|
|
return sizeof(struct in_addr);
|
|
|
|
else if (af == AF_INET6)
|
|
|
|
return sizeof(struct in6_addr);
|
|
|
|
else
|
|
|
|
return 0;
|
|
|
|
}
|
2013-06-07 21:00:47 +08:00
|
|
|
|
|
|
|
// ioctl arguments
|
|
|
|
unsigned struct_arpreq_sz = sizeof(struct arpreq);
|
2013-06-08 04:28:29 +08:00
|
|
|
unsigned struct_ifconf_sz = sizeof(struct ifconf);
|
2013-06-07 21:00:47 +08:00
|
|
|
unsigned struct_ifreq_sz = sizeof(struct ifreq);
|
|
|
|
unsigned struct_termios_sz = sizeof(struct termios);
|
|
|
|
unsigned struct_winsize_sz = sizeof(struct winsize);
|
|
|
|
|
|
|
|
#if SANITIZER_LINUX
|
|
|
|
unsigned struct_cdrom_msf_sz = sizeof(struct cdrom_msf);
|
|
|
|
unsigned struct_cdrom_multisession_sz = sizeof(struct cdrom_multisession);
|
|
|
|
unsigned struct_cdrom_read_audio_sz = sizeof(struct cdrom_read_audio);
|
|
|
|
unsigned struct_cdrom_subchnl_sz = sizeof(struct cdrom_subchnl);
|
|
|
|
unsigned struct_cdrom_ti_sz = sizeof(struct cdrom_ti);
|
|
|
|
unsigned struct_cdrom_tocentry_sz = sizeof(struct cdrom_tocentry);
|
|
|
|
unsigned struct_cdrom_tochdr_sz = sizeof(struct cdrom_tochdr);
|
|
|
|
unsigned struct_cdrom_volctrl_sz = sizeof(struct cdrom_volctrl);
|
|
|
|
unsigned struct_copr_buffer_sz = sizeof(struct copr_buffer);
|
|
|
|
unsigned struct_copr_debug_buf_sz = sizeof(struct copr_debug_buf);
|
|
|
|
unsigned struct_copr_msg_sz = sizeof(struct copr_msg);
|
|
|
|
unsigned struct_floppy_drive_params_sz = sizeof(struct floppy_drive_params);
|
|
|
|
unsigned struct_floppy_drive_struct_sz = sizeof(struct floppy_drive_struct);
|
|
|
|
unsigned struct_floppy_fdc_state_sz = sizeof(struct floppy_fdc_state);
|
|
|
|
unsigned struct_floppy_max_errors_sz = sizeof(struct floppy_max_errors);
|
|
|
|
unsigned struct_floppy_raw_cmd_sz = sizeof(struct floppy_raw_cmd);
|
|
|
|
unsigned struct_floppy_struct_sz = sizeof(struct floppy_struct);
|
|
|
|
unsigned struct_floppy_write_errors_sz = sizeof(struct floppy_write_errors);
|
|
|
|
unsigned struct_format_descr_sz = sizeof(struct format_descr);
|
|
|
|
unsigned struct_hd_driveid_sz = sizeof(struct hd_driveid);
|
|
|
|
unsigned struct_hd_geometry_sz = sizeof(struct hd_geometry);
|
|
|
|
unsigned struct_midi_info_sz = sizeof(struct midi_info);
|
|
|
|
unsigned struct_mtget_sz = sizeof(struct mtget);
|
|
|
|
unsigned struct_mtop_sz = sizeof(struct mtop);
|
|
|
|
unsigned struct_mtpos_sz = sizeof(struct mtpos);
|
|
|
|
unsigned struct_rtentry_sz = sizeof(struct rtentry);
|
|
|
|
unsigned struct_sbi_instrument_sz = sizeof(struct sbi_instrument);
|
|
|
|
unsigned struct_seq_event_rec_sz = sizeof(struct seq_event_rec);
|
|
|
|
unsigned struct_synth_info_sz = sizeof(struct synth_info);
|
|
|
|
unsigned struct_termio_sz = sizeof(struct termio);
|
|
|
|
unsigned struct_vt_consize_sz = sizeof(struct vt_consize);
|
|
|
|
unsigned struct_vt_mode_sz = sizeof(struct vt_mode);
|
|
|
|
unsigned struct_vt_sizes_sz = sizeof(struct vt_sizes);
|
|
|
|
unsigned struct_vt_stat_sz = sizeof(struct vt_stat);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if SANITIZER_LINUX && !SANITIZER_ANDROID
|
|
|
|
unsigned struct_audio_buf_info_sz = sizeof(struct audio_buf_info);
|
|
|
|
unsigned struct_ax25_parms_struct_sz = sizeof(struct ax25_parms_struct);
|
|
|
|
unsigned struct_cyclades_monitor_sz = sizeof(struct cyclades_monitor);
|
|
|
|
unsigned struct_ipx_config_data_sz = sizeof(struct ipx_config_data);
|
|
|
|
unsigned struct_kbdiacrs_sz = sizeof(struct kbdiacrs);
|
|
|
|
unsigned struct_kbentry_sz = sizeof(struct kbentry);
|
|
|
|
unsigned struct_kbkeycode_sz = sizeof(struct kbkeycode);
|
|
|
|
unsigned struct_kbsentry_sz = sizeof(struct kbsentry);
|
|
|
|
unsigned mpu_command_rec_sz = sizeof(mpu_command_rec);
|
|
|
|
unsigned struct_mtconfiginfo_sz = sizeof(struct mtconfiginfo);
|
|
|
|
unsigned struct_nr_parms_struct_sz = sizeof(struct nr_parms_struct);
|
|
|
|
unsigned struct_ppp_stats_sz = sizeof(struct ppp_stats);
|
|
|
|
unsigned struct_scc_modem_sz = sizeof(struct scc_modem);
|
|
|
|
unsigned struct_scc_stat_sz = sizeof(struct scc_stat);
|
2013-06-10 18:00:54 +08:00
|
|
|
unsigned struct_serial_multiport_struct_sz
|
|
|
|
= sizeof(struct serial_multiport_struct);
|
2013-06-07 21:00:47 +08:00
|
|
|
unsigned struct_serial_struct_sz = sizeof(struct serial_struct);
|
|
|
|
unsigned struct_sockaddr_ax25_sz = sizeof(struct sockaddr_ax25);
|
|
|
|
unsigned struct_unimapdesc_sz = sizeof(struct unimapdesc);
|
|
|
|
unsigned struct_unimapinit_sz = sizeof(struct unimapinit);
|
|
|
|
#endif
|
|
|
|
|
2013-06-10 18:00:54 +08:00
|
|
|
#if !SANITIZER_ANDROID
|
2013-06-07 21:00:47 +08:00
|
|
|
unsigned struct_sioc_sg_req_sz = sizeof(struct sioc_sg_req);
|
|
|
|
unsigned struct_sioc_vif_req_sz = sizeof(struct sioc_vif_req);
|
|
|
|
#endif
|
2013-06-18 17:22:24 +08:00
|
|
|
|
|
|
|
unsigned IOCTL_FIOASYNC = FIOASYNC;
|
|
|
|
unsigned IOCTL_FIOCLEX = FIOCLEX;
|
|
|
|
unsigned IOCTL_FIOGETOWN = FIOGETOWN;
|
|
|
|
unsigned IOCTL_FIONBIO = FIONBIO;
|
|
|
|
unsigned IOCTL_FIONCLEX = FIONCLEX;
|
|
|
|
unsigned IOCTL_FIOSETOWN = FIOSETOWN;
|
|
|
|
unsigned IOCTL_SIOCADDMULTI = SIOCADDMULTI;
|
|
|
|
unsigned IOCTL_SIOCATMARK = SIOCATMARK;
|
|
|
|
unsigned IOCTL_SIOCDELMULTI = SIOCDELMULTI;
|
|
|
|
unsigned IOCTL_SIOCGIFADDR = SIOCGIFADDR;
|
|
|
|
unsigned IOCTL_SIOCGIFBRDADDR = SIOCGIFBRDADDR;
|
|
|
|
unsigned IOCTL_SIOCGIFCONF = SIOCGIFCONF;
|
|
|
|
unsigned IOCTL_SIOCGIFDSTADDR = SIOCGIFDSTADDR;
|
|
|
|
unsigned IOCTL_SIOCGIFFLAGS = SIOCGIFFLAGS;
|
|
|
|
unsigned IOCTL_SIOCGIFMETRIC = SIOCGIFMETRIC;
|
|
|
|
unsigned IOCTL_SIOCGIFMTU = SIOCGIFMTU;
|
|
|
|
unsigned IOCTL_SIOCGIFNETMASK = SIOCGIFNETMASK;
|
|
|
|
unsigned IOCTL_SIOCGPGRP = SIOCGPGRP;
|
|
|
|
unsigned IOCTL_SIOCSIFADDR = SIOCSIFADDR;
|
|
|
|
unsigned IOCTL_SIOCSIFBRDADDR = SIOCSIFBRDADDR;
|
|
|
|
unsigned IOCTL_SIOCSIFDSTADDR = SIOCSIFDSTADDR;
|
|
|
|
unsigned IOCTL_SIOCSIFFLAGS = SIOCSIFFLAGS;
|
|
|
|
unsigned IOCTL_SIOCSIFMETRIC = SIOCSIFMETRIC;
|
|
|
|
unsigned IOCTL_SIOCSIFMTU = SIOCSIFMTU;
|
|
|
|
unsigned IOCTL_SIOCSIFNETMASK = SIOCSIFNETMASK;
|
|
|
|
unsigned IOCTL_SIOCSPGRP = SIOCSPGRP;
|
|
|
|
unsigned IOCTL_TIOCCONS = TIOCCONS;
|
|
|
|
unsigned IOCTL_TIOCEXCL = TIOCEXCL;
|
|
|
|
unsigned IOCTL_TIOCGETD = TIOCGETD;
|
|
|
|
unsigned IOCTL_TIOCGPGRP = TIOCGPGRP;
|
|
|
|
unsigned IOCTL_TIOCGWINSZ = TIOCGWINSZ;
|
|
|
|
unsigned IOCTL_TIOCMBIC = TIOCMBIC;
|
|
|
|
unsigned IOCTL_TIOCMBIS = TIOCMBIS;
|
|
|
|
unsigned IOCTL_TIOCMGET = TIOCMGET;
|
|
|
|
unsigned IOCTL_TIOCMSET = TIOCMSET;
|
|
|
|
unsigned IOCTL_TIOCNOTTY = TIOCNOTTY;
|
|
|
|
unsigned IOCTL_TIOCNXCL = TIOCNXCL;
|
|
|
|
unsigned IOCTL_TIOCOUTQ = TIOCOUTQ;
|
|
|
|
unsigned IOCTL_TIOCPKT = TIOCPKT;
|
|
|
|
unsigned IOCTL_TIOCSCTTY = TIOCSCTTY;
|
|
|
|
unsigned IOCTL_TIOCSETD = TIOCSETD;
|
|
|
|
unsigned IOCTL_TIOCSPGRP = TIOCSPGRP;
|
|
|
|
unsigned IOCTL_TIOCSTI = TIOCSTI;
|
|
|
|
unsigned IOCTL_TIOCSWINSZ = TIOCSWINSZ;
|
|
|
|
#if (SANITIZER_LINUX && !SANITIZER_ANDROID) || SANITIZER_MAC
|
|
|
|
unsigned IOCTL_SIOCGETSGCNT = SIOCGETSGCNT;
|
|
|
|
unsigned IOCTL_SIOCGETVIFCNT = SIOCGETVIFCNT;
|
|
|
|
#endif
|
|
|
|
#if SANITIZER_LINUX
|
|
|
|
unsigned IOCTL_BLKFLSBUF = BLKFLSBUF;
|
|
|
|
unsigned IOCTL_BLKGETSIZE = BLKGETSIZE;
|
|
|
|
unsigned IOCTL_BLKRAGET = BLKRAGET;
|
|
|
|
unsigned IOCTL_BLKRASET = BLKRASET;
|
|
|
|
unsigned IOCTL_BLKROGET = BLKROGET;
|
|
|
|
unsigned IOCTL_BLKROSET = BLKROSET;
|
|
|
|
unsigned IOCTL_BLKRRPART = BLKRRPART;
|
|
|
|
unsigned IOCTL_CDROMAUDIOBUFSIZ = CDROMAUDIOBUFSIZ;
|
|
|
|
unsigned IOCTL_CDROMEJECT = CDROMEJECT;
|
|
|
|
unsigned IOCTL_CDROMEJECT_SW = CDROMEJECT_SW;
|
|
|
|
unsigned IOCTL_CDROMMULTISESSION = CDROMMULTISESSION;
|
|
|
|
unsigned IOCTL_CDROMPAUSE = CDROMPAUSE;
|
|
|
|
unsigned IOCTL_CDROMPLAYMSF = CDROMPLAYMSF;
|
|
|
|
unsigned IOCTL_CDROMPLAYTRKIND = CDROMPLAYTRKIND;
|
|
|
|
unsigned IOCTL_CDROMREADAUDIO = CDROMREADAUDIO;
|
|
|
|
unsigned IOCTL_CDROMREADCOOKED = CDROMREADCOOKED;
|
|
|
|
unsigned IOCTL_CDROMREADMODE1 = CDROMREADMODE1;
|
|
|
|
unsigned IOCTL_CDROMREADMODE2 = CDROMREADMODE2;
|
|
|
|
unsigned IOCTL_CDROMREADRAW = CDROMREADRAW;
|
|
|
|
unsigned IOCTL_CDROMREADTOCENTRY = CDROMREADTOCENTRY;
|
|
|
|
unsigned IOCTL_CDROMREADTOCHDR = CDROMREADTOCHDR;
|
|
|
|
unsigned IOCTL_CDROMRESET = CDROMRESET;
|
|
|
|
unsigned IOCTL_CDROMRESUME = CDROMRESUME;
|
|
|
|
unsigned IOCTL_CDROMSEEK = CDROMSEEK;
|
|
|
|
unsigned IOCTL_CDROMSTART = CDROMSTART;
|
|
|
|
unsigned IOCTL_CDROMSTOP = CDROMSTOP;
|
|
|
|
unsigned IOCTL_CDROMSUBCHNL = CDROMSUBCHNL;
|
|
|
|
unsigned IOCTL_CDROMVOLCTRL = CDROMVOLCTRL;
|
|
|
|
unsigned IOCTL_CDROMVOLREAD = CDROMVOLREAD;
|
|
|
|
unsigned IOCTL_CDROM_GET_UPC = CDROM_GET_UPC;
|
|
|
|
unsigned IOCTL_FDCLRPRM = FDCLRPRM;
|
|
|
|
unsigned IOCTL_FDDEFPRM = FDDEFPRM;
|
|
|
|
unsigned IOCTL_FDFLUSH = FDFLUSH;
|
|
|
|
unsigned IOCTL_FDFMTBEG = FDFMTBEG;
|
|
|
|
unsigned IOCTL_FDFMTEND = FDFMTEND;
|
|
|
|
unsigned IOCTL_FDFMTTRK = FDFMTTRK;
|
|
|
|
unsigned IOCTL_FDGETDRVPRM = FDGETDRVPRM;
|
|
|
|
unsigned IOCTL_FDGETDRVSTAT = FDGETDRVSTAT;
|
|
|
|
unsigned IOCTL_FDGETDRVTYP = FDGETDRVTYP;
|
|
|
|
unsigned IOCTL_FDGETFDCSTAT = FDGETFDCSTAT;
|
|
|
|
unsigned IOCTL_FDGETMAXERRS = FDGETMAXERRS;
|
|
|
|
unsigned IOCTL_FDGETPRM = FDGETPRM;
|
|
|
|
unsigned IOCTL_FDMSGOFF = FDMSGOFF;
|
|
|
|
unsigned IOCTL_FDMSGON = FDMSGON;
|
|
|
|
unsigned IOCTL_FDPOLLDRVSTAT = FDPOLLDRVSTAT;
|
|
|
|
unsigned IOCTL_FDRAWCMD = FDRAWCMD;
|
|
|
|
unsigned IOCTL_FDRESET = FDRESET;
|
|
|
|
unsigned IOCTL_FDSETDRVPRM = FDSETDRVPRM;
|
|
|
|
unsigned IOCTL_FDSETEMSGTRESH = FDSETEMSGTRESH;
|
|
|
|
unsigned IOCTL_FDSETMAXERRS = FDSETMAXERRS;
|
|
|
|
unsigned IOCTL_FDSETPRM = FDSETPRM;
|
|
|
|
unsigned IOCTL_FDTWADDLE = FDTWADDLE;
|
|
|
|
unsigned IOCTL_FDWERRORCLR = FDWERRORCLR;
|
|
|
|
unsigned IOCTL_FDWERRORGET = FDWERRORGET;
|
|
|
|
unsigned IOCTL_HDIO_DRIVE_CMD = HDIO_DRIVE_CMD;
|
|
|
|
unsigned IOCTL_HDIO_GETGEO = HDIO_GETGEO;
|
|
|
|
unsigned IOCTL_HDIO_GET_32BIT = HDIO_GET_32BIT;
|
|
|
|
unsigned IOCTL_HDIO_GET_DMA = HDIO_GET_DMA;
|
|
|
|
unsigned IOCTL_HDIO_GET_IDENTITY = HDIO_GET_IDENTITY;
|
|
|
|
unsigned IOCTL_HDIO_GET_KEEPSETTINGS = HDIO_GET_KEEPSETTINGS;
|
|
|
|
unsigned IOCTL_HDIO_GET_MULTCOUNT = HDIO_GET_MULTCOUNT;
|
|
|
|
unsigned IOCTL_HDIO_GET_NOWERR = HDIO_GET_NOWERR;
|
|
|
|
unsigned IOCTL_HDIO_GET_UNMASKINTR = HDIO_GET_UNMASKINTR;
|
|
|
|
unsigned IOCTL_HDIO_SET_32BIT = HDIO_SET_32BIT;
|
|
|
|
unsigned IOCTL_HDIO_SET_DMA = HDIO_SET_DMA;
|
|
|
|
unsigned IOCTL_HDIO_SET_KEEPSETTINGS = HDIO_SET_KEEPSETTINGS;
|
|
|
|
unsigned IOCTL_HDIO_SET_MULTCOUNT = HDIO_SET_MULTCOUNT;
|
|
|
|
unsigned IOCTL_HDIO_SET_NOWERR = HDIO_SET_NOWERR;
|
|
|
|
unsigned IOCTL_HDIO_SET_UNMASKINTR = HDIO_SET_UNMASKINTR;
|
|
|
|
unsigned IOCTL_MTIOCGET = MTIOCGET;
|
|
|
|
unsigned IOCTL_MTIOCPOS = MTIOCPOS;
|
|
|
|
unsigned IOCTL_MTIOCTOP = MTIOCTOP;
|
|
|
|
unsigned IOCTL_PPPIOCGASYNCMAP = PPPIOCGASYNCMAP;
|
|
|
|
unsigned IOCTL_PPPIOCGDEBUG = PPPIOCGDEBUG;
|
|
|
|
unsigned IOCTL_PPPIOCGFLAGS = PPPIOCGFLAGS;
|
|
|
|
unsigned IOCTL_PPPIOCGUNIT = PPPIOCGUNIT;
|
|
|
|
unsigned IOCTL_PPPIOCGXASYNCMAP = PPPIOCGXASYNCMAP;
|
|
|
|
unsigned IOCTL_PPPIOCSASYNCMAP = PPPIOCSASYNCMAP;
|
|
|
|
unsigned IOCTL_PPPIOCSDEBUG = PPPIOCSDEBUG;
|
|
|
|
unsigned IOCTL_PPPIOCSFLAGS = PPPIOCSFLAGS;
|
|
|
|
unsigned IOCTL_PPPIOCSMAXCID = PPPIOCSMAXCID;
|
|
|
|
unsigned IOCTL_PPPIOCSMRU = PPPIOCSMRU;
|
|
|
|
unsigned IOCTL_PPPIOCSXASYNCMAP = PPPIOCSXASYNCMAP;
|
|
|
|
unsigned IOCTL_SIOCADDRT = SIOCADDRT;
|
|
|
|
unsigned IOCTL_SIOCDARP = SIOCDARP;
|
|
|
|
unsigned IOCTL_SIOCDELRT = SIOCDELRT;
|
|
|
|
unsigned IOCTL_SIOCDRARP = SIOCDRARP;
|
|
|
|
unsigned IOCTL_SIOCGARP = SIOCGARP;
|
|
|
|
unsigned IOCTL_SIOCGIFENCAP = SIOCGIFENCAP;
|
|
|
|
unsigned IOCTL_SIOCGIFHWADDR = SIOCGIFHWADDR;
|
|
|
|
unsigned IOCTL_SIOCGIFMAP = SIOCGIFMAP;
|
|
|
|
unsigned IOCTL_SIOCGIFMEM = SIOCGIFMEM;
|
|
|
|
unsigned IOCTL_SIOCGIFNAME = SIOCGIFNAME;
|
|
|
|
unsigned IOCTL_SIOCGIFSLAVE = SIOCGIFSLAVE;
|
|
|
|
unsigned IOCTL_SIOCGRARP = SIOCGRARP;
|
|
|
|
unsigned IOCTL_SIOCGSTAMP = SIOCGSTAMP;
|
|
|
|
unsigned IOCTL_SIOCSARP = SIOCSARP;
|
|
|
|
unsigned IOCTL_SIOCSIFENCAP = SIOCSIFENCAP;
|
|
|
|
unsigned IOCTL_SIOCSIFHWADDR = SIOCSIFHWADDR;
|
|
|
|
unsigned IOCTL_SIOCSIFLINK = SIOCSIFLINK;
|
|
|
|
unsigned IOCTL_SIOCSIFMAP = SIOCSIFMAP;
|
|
|
|
unsigned IOCTL_SIOCSIFMEM = SIOCSIFMEM;
|
|
|
|
unsigned IOCTL_SIOCSIFSLAVE = SIOCSIFSLAVE;
|
|
|
|
unsigned IOCTL_SIOCSRARP = SIOCSRARP;
|
|
|
|
unsigned IOCTL_SNDCTL_COPR_HALT = SNDCTL_COPR_HALT;
|
|
|
|
unsigned IOCTL_SNDCTL_COPR_LOAD = SNDCTL_COPR_LOAD;
|
|
|
|
unsigned IOCTL_SNDCTL_COPR_RCODE = SNDCTL_COPR_RCODE;
|
|
|
|
unsigned IOCTL_SNDCTL_COPR_RCVMSG = SNDCTL_COPR_RCVMSG;
|
|
|
|
unsigned IOCTL_SNDCTL_COPR_RDATA = SNDCTL_COPR_RDATA;
|
|
|
|
unsigned IOCTL_SNDCTL_COPR_RESET = SNDCTL_COPR_RESET;
|
|
|
|
unsigned IOCTL_SNDCTL_COPR_RUN = SNDCTL_COPR_RUN;
|
|
|
|
unsigned IOCTL_SNDCTL_COPR_SENDMSG = SNDCTL_COPR_SENDMSG;
|
|
|
|
unsigned IOCTL_SNDCTL_COPR_WCODE = SNDCTL_COPR_WCODE;
|
|
|
|
unsigned IOCTL_SNDCTL_COPR_WDATA = SNDCTL_COPR_WDATA;
|
|
|
|
unsigned IOCTL_SNDCTL_DSP_GETBLKSIZE = SNDCTL_DSP_GETBLKSIZE;
|
|
|
|
unsigned IOCTL_SNDCTL_DSP_GETFMTS = SNDCTL_DSP_GETFMTS;
|
|
|
|
unsigned IOCTL_SNDCTL_DSP_NONBLOCK = SNDCTL_DSP_NONBLOCK;
|
|
|
|
unsigned IOCTL_SNDCTL_DSP_POST = SNDCTL_DSP_POST;
|
|
|
|
unsigned IOCTL_SNDCTL_DSP_RESET = SNDCTL_DSP_RESET;
|
|
|
|
unsigned IOCTL_SNDCTL_DSP_SETFMT = SNDCTL_DSP_SETFMT;
|
|
|
|
unsigned IOCTL_SNDCTL_DSP_SETFRAGMENT = SNDCTL_DSP_SETFRAGMENT;
|
|
|
|
unsigned IOCTL_SNDCTL_DSP_SPEED = SNDCTL_DSP_SPEED;
|
|
|
|
unsigned IOCTL_SNDCTL_DSP_STEREO = SNDCTL_DSP_STEREO;
|
|
|
|
unsigned IOCTL_SNDCTL_DSP_SUBDIVIDE = SNDCTL_DSP_SUBDIVIDE;
|
|
|
|
unsigned IOCTL_SNDCTL_DSP_SYNC = SNDCTL_DSP_SYNC;
|
|
|
|
unsigned IOCTL_SNDCTL_FM_4OP_ENABLE = SNDCTL_FM_4OP_ENABLE;
|
|
|
|
unsigned IOCTL_SNDCTL_FM_LOAD_INSTR = SNDCTL_FM_LOAD_INSTR;
|
|
|
|
unsigned IOCTL_SNDCTL_MIDI_INFO = SNDCTL_MIDI_INFO;
|
|
|
|
unsigned IOCTL_SNDCTL_MIDI_MPUMODE = SNDCTL_MIDI_MPUMODE;
|
|
|
|
unsigned IOCTL_SNDCTL_MIDI_PRETIME = SNDCTL_MIDI_PRETIME;
|
|
|
|
unsigned IOCTL_SNDCTL_SEQ_CTRLRATE = SNDCTL_SEQ_CTRLRATE;
|
|
|
|
unsigned IOCTL_SNDCTL_SEQ_GETINCOUNT = SNDCTL_SEQ_GETINCOUNT;
|
|
|
|
unsigned IOCTL_SNDCTL_SEQ_GETOUTCOUNT = SNDCTL_SEQ_GETOUTCOUNT;
|
|
|
|
unsigned IOCTL_SNDCTL_SEQ_NRMIDIS = SNDCTL_SEQ_NRMIDIS;
|
|
|
|
unsigned IOCTL_SNDCTL_SEQ_NRSYNTHS = SNDCTL_SEQ_NRSYNTHS;
|
|
|
|
unsigned IOCTL_SNDCTL_SEQ_OUTOFBAND = SNDCTL_SEQ_OUTOFBAND;
|
|
|
|
unsigned IOCTL_SNDCTL_SEQ_PANIC = SNDCTL_SEQ_PANIC;
|
|
|
|
unsigned IOCTL_SNDCTL_SEQ_PERCMODE = SNDCTL_SEQ_PERCMODE;
|
|
|
|
unsigned IOCTL_SNDCTL_SEQ_RESET = SNDCTL_SEQ_RESET;
|
|
|
|
unsigned IOCTL_SNDCTL_SEQ_RESETSAMPLES = SNDCTL_SEQ_RESETSAMPLES;
|
|
|
|
unsigned IOCTL_SNDCTL_SEQ_SYNC = SNDCTL_SEQ_SYNC;
|
|
|
|
unsigned IOCTL_SNDCTL_SEQ_TESTMIDI = SNDCTL_SEQ_TESTMIDI;
|
|
|
|
unsigned IOCTL_SNDCTL_SEQ_THRESHOLD = SNDCTL_SEQ_THRESHOLD;
|
|
|
|
unsigned IOCTL_SNDCTL_SYNTH_INFO = SNDCTL_SYNTH_INFO;
|
|
|
|
unsigned IOCTL_SNDCTL_SYNTH_MEMAVL = SNDCTL_SYNTH_MEMAVL;
|
|
|
|
unsigned IOCTL_SNDCTL_TMR_CONTINUE = SNDCTL_TMR_CONTINUE;
|
|
|
|
unsigned IOCTL_SNDCTL_TMR_METRONOME = SNDCTL_TMR_METRONOME;
|
|
|
|
unsigned IOCTL_SNDCTL_TMR_SELECT = SNDCTL_TMR_SELECT;
|
|
|
|
unsigned IOCTL_SNDCTL_TMR_SOURCE = SNDCTL_TMR_SOURCE;
|
|
|
|
unsigned IOCTL_SNDCTL_TMR_START = SNDCTL_TMR_START;
|
|
|
|
unsigned IOCTL_SNDCTL_TMR_STOP = SNDCTL_TMR_STOP;
|
|
|
|
unsigned IOCTL_SNDCTL_TMR_TEMPO = SNDCTL_TMR_TEMPO;
|
|
|
|
unsigned IOCTL_SNDCTL_TMR_TIMEBASE = SNDCTL_TMR_TIMEBASE;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_ALTPCM = SOUND_MIXER_READ_ALTPCM;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_BASS = SOUND_MIXER_READ_BASS;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_CAPS = SOUND_MIXER_READ_CAPS;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_CD = SOUND_MIXER_READ_CD;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_DEVMASK = SOUND_MIXER_READ_DEVMASK;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_ENHANCE = SOUND_MIXER_READ_ENHANCE;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_IGAIN = SOUND_MIXER_READ_IGAIN;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_IMIX = SOUND_MIXER_READ_IMIX;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_LINE = SOUND_MIXER_READ_LINE;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_LINE1 = SOUND_MIXER_READ_LINE1;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_LINE2 = SOUND_MIXER_READ_LINE2;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_LINE3 = SOUND_MIXER_READ_LINE3;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_LOUD = SOUND_MIXER_READ_LOUD;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_MIC = SOUND_MIXER_READ_MIC;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_MUTE = SOUND_MIXER_READ_MUTE;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_OGAIN = SOUND_MIXER_READ_OGAIN;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_PCM = SOUND_MIXER_READ_PCM;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_RECLEV = SOUND_MIXER_READ_RECLEV;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_RECMASK = SOUND_MIXER_READ_RECMASK;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_RECSRC = SOUND_MIXER_READ_RECSRC;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_SPEAKER = SOUND_MIXER_READ_SPEAKER;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_STEREODEVS = SOUND_MIXER_READ_STEREODEVS;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_SYNTH = SOUND_MIXER_READ_SYNTH;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_TREBLE = SOUND_MIXER_READ_TREBLE;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_READ_VOLUME = SOUND_MIXER_READ_VOLUME;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_ALTPCM = SOUND_MIXER_WRITE_ALTPCM;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_BASS = SOUND_MIXER_WRITE_BASS;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_CD = SOUND_MIXER_WRITE_CD;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_ENHANCE = SOUND_MIXER_WRITE_ENHANCE;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_IGAIN = SOUND_MIXER_WRITE_IGAIN;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_IMIX = SOUND_MIXER_WRITE_IMIX;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_LINE = SOUND_MIXER_WRITE_LINE;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_LINE1 = SOUND_MIXER_WRITE_LINE1;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_LINE2 = SOUND_MIXER_WRITE_LINE2;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_LINE3 = SOUND_MIXER_WRITE_LINE3;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_LOUD = SOUND_MIXER_WRITE_LOUD;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_MIC = SOUND_MIXER_WRITE_MIC;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_MUTE = SOUND_MIXER_WRITE_MUTE;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_OGAIN = SOUND_MIXER_WRITE_OGAIN;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_PCM = SOUND_MIXER_WRITE_PCM;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_RECLEV = SOUND_MIXER_WRITE_RECLEV;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_RECSRC = SOUND_MIXER_WRITE_RECSRC;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_SPEAKER = SOUND_MIXER_WRITE_SPEAKER;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_SYNTH = SOUND_MIXER_WRITE_SYNTH;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_TREBLE = SOUND_MIXER_WRITE_TREBLE;
|
|
|
|
unsigned IOCTL_SOUND_MIXER_WRITE_VOLUME = SOUND_MIXER_WRITE_VOLUME;
|
|
|
|
unsigned IOCTL_SOUND_PCM_READ_BITS = SOUND_PCM_READ_BITS;
|
|
|
|
unsigned IOCTL_SOUND_PCM_READ_CHANNELS = SOUND_PCM_READ_CHANNELS;
|
|
|
|
unsigned IOCTL_SOUND_PCM_READ_FILTER = SOUND_PCM_READ_FILTER;
|
|
|
|
unsigned IOCTL_SOUND_PCM_READ_RATE = SOUND_PCM_READ_RATE;
|
|
|
|
unsigned IOCTL_SOUND_PCM_WRITE_CHANNELS = SOUND_PCM_WRITE_CHANNELS;
|
|
|
|
unsigned IOCTL_SOUND_PCM_WRITE_FILTER = SOUND_PCM_WRITE_FILTER;
|
|
|
|
unsigned IOCTL_TCFLSH = TCFLSH;
|
|
|
|
unsigned IOCTL_TCGETA = TCGETA;
|
|
|
|
unsigned IOCTL_TCGETS = TCGETS;
|
|
|
|
unsigned IOCTL_TCSBRK = TCSBRK;
|
|
|
|
unsigned IOCTL_TCSBRKP = TCSBRKP;
|
|
|
|
unsigned IOCTL_TCSETA = TCSETA;
|
|
|
|
unsigned IOCTL_TCSETAF = TCSETAF;
|
|
|
|
unsigned IOCTL_TCSETAW = TCSETAW;
|
|
|
|
unsigned IOCTL_TCSETS = TCSETS;
|
|
|
|
unsigned IOCTL_TCSETSF = TCSETSF;
|
|
|
|
unsigned IOCTL_TCSETSW = TCSETSW;
|
|
|
|
unsigned IOCTL_TCXONC = TCXONC;
|
|
|
|
unsigned IOCTL_TIOCGLCKTRMIOS = TIOCGLCKTRMIOS;
|
|
|
|
unsigned IOCTL_TIOCGSOFTCAR = TIOCGSOFTCAR;
|
|
|
|
unsigned IOCTL_TIOCINQ = TIOCINQ;
|
|
|
|
unsigned IOCTL_TIOCLINUX = TIOCLINUX;
|
|
|
|
unsigned IOCTL_TIOCSERCONFIG = TIOCSERCONFIG;
|
|
|
|
unsigned IOCTL_TIOCSERGETLSR = TIOCSERGETLSR;
|
|
|
|
unsigned IOCTL_TIOCSERGWILD = TIOCSERGWILD;
|
|
|
|
unsigned IOCTL_TIOCSERSWILD = TIOCSERSWILD;
|
|
|
|
unsigned IOCTL_TIOCSLCKTRMIOS = TIOCSLCKTRMIOS;
|
|
|
|
unsigned IOCTL_TIOCSSOFTCAR = TIOCSSOFTCAR;
|
|
|
|
unsigned IOCTL_VT_ACTIVATE = VT_ACTIVATE;
|
|
|
|
unsigned IOCTL_VT_DISALLOCATE = VT_DISALLOCATE;
|
|
|
|
unsigned IOCTL_VT_GETMODE = VT_GETMODE;
|
|
|
|
unsigned IOCTL_VT_GETSTATE = VT_GETSTATE;
|
|
|
|
unsigned IOCTL_VT_OPENQRY = VT_OPENQRY;
|
|
|
|
unsigned IOCTL_VT_RELDISP = VT_RELDISP;
|
|
|
|
unsigned IOCTL_VT_RESIZE = VT_RESIZE;
|
|
|
|
unsigned IOCTL_VT_RESIZEX = VT_RESIZEX;
|
|
|
|
unsigned IOCTL_VT_SENDSIG = VT_SENDSIG;
|
|
|
|
unsigned IOCTL_VT_SETMODE = VT_SETMODE;
|
|
|
|
unsigned IOCTL_VT_WAITACTIVE = VT_WAITACTIVE;
|
|
|
|
#endif
|
|
|
|
#if SANITIZER_LINUX && !SANITIZER_ANDROID
|
|
|
|
unsigned IOCTL_CYGETDEFTHRESH = CYGETDEFTHRESH;
|
|
|
|
unsigned IOCTL_CYGETDEFTIMEOUT = CYGETDEFTIMEOUT;
|
|
|
|
unsigned IOCTL_CYGETMON = CYGETMON;
|
|
|
|
unsigned IOCTL_CYGETTHRESH = CYGETTHRESH;
|
|
|
|
unsigned IOCTL_CYGETTIMEOUT = CYGETTIMEOUT;
|
|
|
|
unsigned IOCTL_CYSETDEFTHRESH = CYSETDEFTHRESH;
|
|
|
|
unsigned IOCTL_CYSETDEFTIMEOUT = CYSETDEFTIMEOUT;
|
|
|
|
unsigned IOCTL_CYSETTHRESH = CYSETTHRESH;
|
|
|
|
unsigned IOCTL_CYSETTIMEOUT = CYSETTIMEOUT;
|
|
|
|
unsigned IOCTL_EQL_EMANCIPATE = EQL_EMANCIPATE;
|
|
|
|
unsigned IOCTL_EQL_ENSLAVE = EQL_ENSLAVE;
|
|
|
|
unsigned IOCTL_EQL_GETMASTRCFG = EQL_GETMASTRCFG;
|
|
|
|
unsigned IOCTL_EQL_GETSLAVECFG = EQL_GETSLAVECFG;
|
|
|
|
unsigned IOCTL_EQL_SETMASTRCFG = EQL_SETMASTRCFG;
|
|
|
|
unsigned IOCTL_EQL_SETSLAVECFG = EQL_SETSLAVECFG;
|
2013-06-18 21:56:12 +08:00
|
|
|
unsigned IOCTL_FS_IOC_GETFLAGS = FS_IOC_GETFLAGS;
|
|
|
|
unsigned IOCTL_FS_IOC_GETVERSION = FS_IOC_GETVERSION;
|
|
|
|
unsigned IOCTL_FS_IOC_SETFLAGS = FS_IOC_SETFLAGS;
|
|
|
|
unsigned IOCTL_FS_IOC_SETVERSION = FS_IOC_SETVERSION;
|
2013-06-18 17:22:24 +08:00
|
|
|
unsigned IOCTL_GIO_CMAP = GIO_CMAP;
|
|
|
|
unsigned IOCTL_GIO_FONT = GIO_FONT;
|
|
|
|
unsigned IOCTL_GIO_SCRNMAP = GIO_SCRNMAP;
|
|
|
|
unsigned IOCTL_GIO_UNIMAP = GIO_UNIMAP;
|
|
|
|
unsigned IOCTL_GIO_UNISCRNMAP = GIO_UNISCRNMAP;
|
|
|
|
unsigned IOCTL_KDADDIO = KDADDIO;
|
|
|
|
unsigned IOCTL_KDDELIO = KDDELIO;
|
|
|
|
unsigned IOCTL_KDDISABIO = KDDISABIO;
|
|
|
|
unsigned IOCTL_KDENABIO = KDENABIO;
|
|
|
|
unsigned IOCTL_KDGETKEYCODE = KDGETKEYCODE;
|
|
|
|
unsigned IOCTL_KDGETLED = KDGETLED;
|
|
|
|
unsigned IOCTL_KDGETMODE = KDGETMODE;
|
|
|
|
unsigned IOCTL_KDGKBDIACR = KDGKBDIACR;
|
|
|
|
unsigned IOCTL_KDGKBENT = KDGKBENT;
|
|
|
|
unsigned IOCTL_KDGKBLED = KDGKBLED;
|
|
|
|
unsigned IOCTL_KDGKBMETA = KDGKBMETA;
|
|
|
|
unsigned IOCTL_KDGKBMODE = KDGKBMODE;
|
|
|
|
unsigned IOCTL_KDGKBSENT = KDGKBSENT;
|
|
|
|
unsigned IOCTL_KDGKBTYPE = KDGKBTYPE;
|
|
|
|
unsigned IOCTL_KDMAPDISP = KDMAPDISP;
|
|
|
|
unsigned IOCTL_KDMKTONE = KDMKTONE;
|
|
|
|
unsigned IOCTL_KDSETKEYCODE = KDSETKEYCODE;
|
|
|
|
unsigned IOCTL_KDSETLED = KDSETLED;
|
|
|
|
unsigned IOCTL_KDSETMODE = KDSETMODE;
|
|
|
|
unsigned IOCTL_KDSIGACCEPT = KDSIGACCEPT;
|
|
|
|
unsigned IOCTL_KDSKBDIACR = KDSKBDIACR;
|
|
|
|
unsigned IOCTL_KDSKBENT = KDSKBENT;
|
|
|
|
unsigned IOCTL_KDSKBLED = KDSKBLED;
|
|
|
|
unsigned IOCTL_KDSKBMETA = KDSKBMETA;
|
|
|
|
unsigned IOCTL_KDSKBMODE = KDSKBMODE;
|
|
|
|
unsigned IOCTL_KDSKBSENT = KDSKBSENT;
|
|
|
|
unsigned IOCTL_KDUNMAPDISP = KDUNMAPDISP;
|
|
|
|
unsigned IOCTL_KIOCSOUND = KIOCSOUND;
|
|
|
|
unsigned IOCTL_LPABORT = LPABORT;
|
|
|
|
unsigned IOCTL_LPABORTOPEN = LPABORTOPEN;
|
|
|
|
unsigned IOCTL_LPCAREFUL = LPCAREFUL;
|
|
|
|
unsigned IOCTL_LPCHAR = LPCHAR;
|
|
|
|
unsigned IOCTL_LPGETIRQ = LPGETIRQ;
|
|
|
|
unsigned IOCTL_LPGETSTATUS = LPGETSTATUS;
|
|
|
|
unsigned IOCTL_LPRESET = LPRESET;
|
|
|
|
unsigned IOCTL_LPSETIRQ = LPSETIRQ;
|
|
|
|
unsigned IOCTL_LPTIME = LPTIME;
|
|
|
|
unsigned IOCTL_LPWAIT = LPWAIT;
|
|
|
|
unsigned IOCTL_MTIOCGETCONFIG = MTIOCGETCONFIG;
|
|
|
|
unsigned IOCTL_MTIOCSETCONFIG = MTIOCSETCONFIG;
|
|
|
|
unsigned IOCTL_PIO_CMAP = PIO_CMAP;
|
|
|
|
unsigned IOCTL_PIO_FONT = PIO_FONT;
|
|
|
|
unsigned IOCTL_PIO_SCRNMAP = PIO_SCRNMAP;
|
|
|
|
unsigned IOCTL_PIO_UNIMAP = PIO_UNIMAP;
|
|
|
|
unsigned IOCTL_PIO_UNIMAPCLR = PIO_UNIMAPCLR;
|
|
|
|
unsigned IOCTL_PIO_UNISCRNMAP = PIO_UNISCRNMAP;
|
|
|
|
unsigned IOCTL_SCSI_IOCTL_GET_IDLUN = SCSI_IOCTL_GET_IDLUN;
|
|
|
|
unsigned IOCTL_SCSI_IOCTL_PROBE_HOST = SCSI_IOCTL_PROBE_HOST;
|
|
|
|
unsigned IOCTL_SCSI_IOCTL_TAGGED_DISABLE = SCSI_IOCTL_TAGGED_DISABLE;
|
|
|
|
unsigned IOCTL_SCSI_IOCTL_TAGGED_ENABLE = SCSI_IOCTL_TAGGED_ENABLE;
|
|
|
|
unsigned IOCTL_SIOCAIPXITFCRT = SIOCAIPXITFCRT;
|
|
|
|
unsigned IOCTL_SIOCAIPXPRISLT = SIOCAIPXPRISLT;
|
|
|
|
unsigned IOCTL_SIOCAX25ADDUID = SIOCAX25ADDUID;
|
|
|
|
unsigned IOCTL_SIOCAX25DELUID = SIOCAX25DELUID;
|
|
|
|
unsigned IOCTL_SIOCAX25GETPARMS = SIOCAX25GETPARMS;
|
|
|
|
unsigned IOCTL_SIOCAX25GETUID = SIOCAX25GETUID;
|
|
|
|
unsigned IOCTL_SIOCAX25NOUID = SIOCAX25NOUID;
|
|
|
|
unsigned IOCTL_SIOCAX25SETPARMS = SIOCAX25SETPARMS;
|
|
|
|
unsigned IOCTL_SIOCDEVPLIP = SIOCDEVPLIP;
|
|
|
|
unsigned IOCTL_SIOCIPXCFGDATA = SIOCIPXCFGDATA;
|
|
|
|
unsigned IOCTL_SIOCNRDECOBS = SIOCNRDECOBS;
|
|
|
|
unsigned IOCTL_SIOCNRGETPARMS = SIOCNRGETPARMS;
|
|
|
|
unsigned IOCTL_SIOCNRRTCTL = SIOCNRRTCTL;
|
|
|
|
unsigned IOCTL_SIOCNRSETPARMS = SIOCNRSETPARMS;
|
|
|
|
unsigned IOCTL_SNDCTL_DSP_GETISPACE = SNDCTL_DSP_GETISPACE;
|
|
|
|
unsigned IOCTL_SNDCTL_DSP_GETOSPACE = SNDCTL_DSP_GETOSPACE;
|
|
|
|
unsigned IOCTL_TIOCGSERIAL = TIOCGSERIAL;
|
|
|
|
unsigned IOCTL_TIOCSERGETMULTI = TIOCSERGETMULTI;
|
|
|
|
unsigned IOCTL_TIOCSERSETMULTI = TIOCSERSETMULTI;
|
|
|
|
unsigned IOCTL_TIOCSSERIAL = TIOCSSERIAL;
|
|
|
|
#endif
|
2013-02-19 17:19:16 +08:00
|
|
|
} // namespace __sanitizer
|
2012-12-11 20:27:27 +08:00
|
|
|
|
2013-05-31 18:46:51 +08:00
|
|
|
#define CHECK_TYPE_SIZE(TYPE) \
|
|
|
|
COMPILER_CHECK(sizeof(__sanitizer_##TYPE) == sizeof(TYPE))
|
|
|
|
|
|
|
|
#define CHECK_SIZE_AND_OFFSET(CLASS, MEMBER) \
|
|
|
|
COMPILER_CHECK(sizeof(((__sanitizer_##CLASS *) NULL)->MEMBER) == \
|
|
|
|
sizeof(((CLASS *) NULL)->MEMBER)); \
|
|
|
|
COMPILER_CHECK(offsetof(__sanitizer_##CLASS, MEMBER) == \
|
|
|
|
offsetof(CLASS, MEMBER))
|
|
|
|
|
2013-03-13 17:01:40 +08:00
|
|
|
COMPILER_CHECK(sizeof(__sanitizer_pthread_attr_t) >= sizeof(pthread_attr_t));
|
2013-04-04 16:22:52 +08:00
|
|
|
COMPILER_CHECK(sizeof(__sanitizer::struct_sigaction_max_sz) >=
|
|
|
|
sizeof(__sanitizer::struct_sigaction_sz));
|
2013-05-17 20:51:13 +08:00
|
|
|
|
2013-05-29 19:30:00 +08:00
|
|
|
COMPILER_CHECK(sizeof(socklen_t) == sizeof(unsigned));
|
|
|
|
|
2013-05-31 18:46:51 +08:00
|
|
|
#if SANITIZER_LINUX
|
|
|
|
// There are more undocumented fields in dl_phdr_info that we are not interested
|
|
|
|
// in.
|
|
|
|
COMPILER_CHECK(sizeof(__sanitizer_dl_phdr_info) <= sizeof(dl_phdr_info));
|
|
|
|
CHECK_SIZE_AND_OFFSET(dl_phdr_info, dlpi_addr);
|
|
|
|
CHECK_SIZE_AND_OFFSET(dl_phdr_info, dlpi_name);
|
|
|
|
CHECK_SIZE_AND_OFFSET(dl_phdr_info, dlpi_phdr);
|
|
|
|
CHECK_SIZE_AND_OFFSET(dl_phdr_info, dlpi_phnum);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
CHECK_TYPE_SIZE(addrinfo);
|
|
|
|
CHECK_SIZE_AND_OFFSET(addrinfo, ai_flags);
|
|
|
|
CHECK_SIZE_AND_OFFSET(addrinfo, ai_family);
|
|
|
|
CHECK_SIZE_AND_OFFSET(addrinfo, ai_socktype);
|
|
|
|
CHECK_SIZE_AND_OFFSET(addrinfo, ai_protocol);
|
|
|
|
CHECK_SIZE_AND_OFFSET(addrinfo, ai_protocol);
|
|
|
|
CHECK_SIZE_AND_OFFSET(addrinfo, ai_addrlen);
|
|
|
|
CHECK_SIZE_AND_OFFSET(addrinfo, ai_canonname);
|
|
|
|
CHECK_SIZE_AND_OFFSET(addrinfo, ai_addr);
|
|
|
|
|
|
|
|
CHECK_TYPE_SIZE(hostent);
|
|
|
|
CHECK_SIZE_AND_OFFSET(hostent, h_name);
|
|
|
|
CHECK_SIZE_AND_OFFSET(hostent, h_aliases);
|
|
|
|
CHECK_SIZE_AND_OFFSET(hostent, h_addrtype);
|
|
|
|
CHECK_SIZE_AND_OFFSET(hostent, h_length);
|
|
|
|
CHECK_SIZE_AND_OFFSET(hostent, h_addr_list);
|
|
|
|
|
|
|
|
CHECK_TYPE_SIZE(iovec);
|
|
|
|
CHECK_SIZE_AND_OFFSET(iovec, iov_base);
|
|
|
|
CHECK_SIZE_AND_OFFSET(iovec, iov_len);
|
|
|
|
|
|
|
|
CHECK_TYPE_SIZE(msghdr);
|
|
|
|
CHECK_SIZE_AND_OFFSET(msghdr, msg_name);
|
|
|
|
CHECK_SIZE_AND_OFFSET(msghdr, msg_namelen);
|
|
|
|
CHECK_SIZE_AND_OFFSET(msghdr, msg_iov);
|
|
|
|
CHECK_SIZE_AND_OFFSET(msghdr, msg_iovlen);
|
|
|
|
CHECK_SIZE_AND_OFFSET(msghdr, msg_control);
|
|
|
|
CHECK_SIZE_AND_OFFSET(msghdr, msg_controllen);
|
|
|
|
CHECK_SIZE_AND_OFFSET(msghdr, msg_flags);
|
|
|
|
|
|
|
|
CHECK_TYPE_SIZE(cmsghdr);
|
|
|
|
CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_len);
|
|
|
|
CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_level);
|
|
|
|
CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_type);
|
2013-05-29 19:30:00 +08:00
|
|
|
|
2013-04-03 15:24:35 +08:00
|
|
|
#endif // SANITIZER_LINUX || SANITIZER_MAC
|