aboutsummaryrefslogtreecommitdiff
path: root/vendor/libc/src/unix/linux_like/linux/arch
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-07-19 15:37:58 +0300
committerValentin Popov <valentin@popov.link>2024-07-19 15:37:58 +0300
commita990de90fe41456a23e58bd087d2f107d321f3a1 (patch)
tree15afc392522a9e85dc3332235e311b7d39352ea9 /vendor/libc/src/unix/linux_like/linux/arch
parent3d48cd3f81164bbfc1a755dc1d4a9a02f98c8ddd (diff)
downloadfparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.tar.xz
fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.zip
Deleted vendor folder
Diffstat (limited to 'vendor/libc/src/unix/linux_like/linux/arch')
-rw-r--r--vendor/libc/src/unix/linux_like/linux/arch/generic/mod.rs329
-rw-r--r--vendor/libc/src/unix/linux_like/linux/arch/mips/mod.rs323
-rw-r--r--vendor/libc/src/unix/linux_like/linux/arch/mod.rs18
-rw-r--r--vendor/libc/src/unix/linux_like/linux/arch/powerpc/mod.rs277
-rw-r--r--vendor/libc/src/unix/linux_like/linux/arch/sparc/mod.rs259
5 files changed, 0 insertions, 1206 deletions
diff --git a/vendor/libc/src/unix/linux_like/linux/arch/generic/mod.rs b/vendor/libc/src/unix/linux_like/linux/arch/generic/mod.rs
deleted file mode 100644
index b8e4596..0000000
--- a/vendor/libc/src/unix/linux_like/linux/arch/generic/mod.rs
+++ /dev/null
@@ -1,329 +0,0 @@
-s! {
- pub struct termios2 {
- pub c_iflag: ::tcflag_t,
- pub c_oflag: ::tcflag_t,
- pub c_cflag: ::tcflag_t,
- pub c_lflag: ::tcflag_t,
- pub c_line: ::cc_t,
- pub c_cc: [::cc_t; 19],
- pub c_ispeed: ::speed_t,
- pub c_ospeed: ::speed_t,
- }
-}
-
-// include/uapi/asm-generic/socket.h
-// arch/alpha/include/uapi/asm/socket.h
-// tools/include/uapi/asm-generic/socket.h
-// arch/mips/include/uapi/asm/socket.h
-pub const SOL_SOCKET: ::c_int = 1;
-
-// Defined in unix/linux_like/mod.rs
-// pub const SO_DEBUG: ::c_int = 1;
-pub const SO_REUSEADDR: ::c_int = 2;
-pub const SO_TYPE: ::c_int = 3;
-pub const SO_ERROR: ::c_int = 4;
-pub const SO_DONTROUTE: ::c_int = 5;
-pub const SO_BROADCAST: ::c_int = 6;
-pub const SO_SNDBUF: ::c_int = 7;
-pub const SO_RCVBUF: ::c_int = 8;
-pub const SO_KEEPALIVE: ::c_int = 9;
-pub const SO_OOBINLINE: ::c_int = 10;
-pub const SO_NO_CHECK: ::c_int = 11;
-pub const SO_PRIORITY: ::c_int = 12;
-pub const SO_LINGER: ::c_int = 13;
-pub const SO_BSDCOMPAT: ::c_int = 14;
-pub const SO_REUSEPORT: ::c_int = 15;
-pub const SO_PASSCRED: ::c_int = 16;
-pub const SO_PEERCRED: ::c_int = 17;
-pub const SO_RCVLOWAT: ::c_int = 18;
-pub const SO_SNDLOWAT: ::c_int = 19;
-pub const SO_RCVTIMEO: ::c_int = 20;
-pub const SO_SNDTIMEO: ::c_int = 21;
-// pub const SO_RCVTIMEO_OLD: ::c_int = 20;
-// pub const SO_SNDTIMEO_OLD: ::c_int = 21;
-pub const SO_SECURITY_AUTHENTICATION: ::c_int = 22;
-pub const SO_SECURITY_ENCRYPTION_TRANSPORT: ::c_int = 23;
-pub const SO_SECURITY_ENCRYPTION_NETWORK: ::c_int = 24;
-pub const SO_BINDTODEVICE: ::c_int = 25;
-pub const SO_ATTACH_FILTER: ::c_int = 26;
-pub const SO_DETACH_FILTER: ::c_int = 27;
-pub const SO_GET_FILTER: ::c_int = SO_ATTACH_FILTER;
-pub const SO_PEERNAME: ::c_int = 28;
-pub const SO_TIMESTAMP: ::c_int = 29;
-// pub const SO_TIMESTAMP_OLD: ::c_int = 29;
-pub const SO_ACCEPTCONN: ::c_int = 30;
-pub const SO_PEERSEC: ::c_int = 31;
-pub const SO_SNDBUFFORCE: ::c_int = 32;
-pub const SO_RCVBUFFORCE: ::c_int = 33;
-pub const SO_PASSSEC: ::c_int = 34;
-pub const SO_TIMESTAMPNS: ::c_int = 35;
-// pub const SO_TIMESTAMPNS_OLD: ::c_int = 35;
-pub const SO_MARK: ::c_int = 36;
-pub const SO_TIMESTAMPING: ::c_int = 37;
-// pub const SO_TIMESTAMPING_OLD: ::c_int = 37;
-pub const SO_PROTOCOL: ::c_int = 38;
-pub const SO_DOMAIN: ::c_int = 39;
-pub const SO_RXQ_OVFL: ::c_int = 40;
-pub const SO_WIFI_STATUS: ::c_int = 41;
-pub const SCM_WIFI_STATUS: ::c_int = SO_WIFI_STATUS;
-pub const SO_PEEK_OFF: ::c_int = 42;
-pub const SO_NOFCS: ::c_int = 43;
-pub const SO_LOCK_FILTER: ::c_int = 44;
-pub const SO_SELECT_ERR_QUEUE: ::c_int = 45;
-pub const SO_BUSY_POLL: ::c_int = 46;
-pub const SO_MAX_PACING_RATE: ::c_int = 47;
-pub const SO_BPF_EXTENSIONS: ::c_int = 48;
-pub const SO_INCOMING_CPU: ::c_int = 49;
-pub const SO_ATTACH_BPF: ::c_int = 50;
-pub const SO_DETACH_BPF: ::c_int = SO_DETACH_FILTER;
-pub const SO_ATTACH_REUSEPORT_CBPF: ::c_int = 51;
-pub const SO_ATTACH_REUSEPORT_EBPF: ::c_int = 52;
-pub const SO_CNX_ADVICE: ::c_int = 53;
-pub const SCM_TIMESTAMPING_OPT_STATS: ::c_int = 54;
-pub const SO_MEMINFO: ::c_int = 55;
-pub const SO_INCOMING_NAPI_ID: ::c_int = 56;
-pub const SO_COOKIE: ::c_int = 57;
-pub const SCM_TIMESTAMPING_PKTINFO: ::c_int = 58;
-pub const SO_PEERGROUPS: ::c_int = 59;
-pub const SO_ZEROCOPY: ::c_int = 60;
-pub const SO_TXTIME: ::c_int = 61;
-pub const SCM_TXTIME: ::c_int = SO_TXTIME;
-pub const SO_BINDTOIFINDEX: ::c_int = 62;
-cfg_if! {
- // Some of these platforms in CI already have these constants.
- // But they may still not have those _OLD ones.
- if #[cfg(all(any(target_arch = "x86",
- target_arch = "x86_64",
- target_arch = "aarch64",
- target_arch = "csky",
- target_arch = "loongarch64"),
- not(any(target_env = "musl", target_env = "ohos"))))] {
- pub const SO_TIMESTAMP_NEW: ::c_int = 63;
- pub const SO_TIMESTAMPNS_NEW: ::c_int = 64;
- pub const SO_TIMESTAMPING_NEW: ::c_int = 65;
- pub const SO_RCVTIMEO_NEW: ::c_int = 66;
- pub const SO_SNDTIMEO_NEW: ::c_int = 67;
- pub const SO_DETACH_REUSEPORT_BPF: ::c_int = 68;
- }
-}
-// pub const SO_PREFER_BUSY_POLL: ::c_int = 69;
-// pub const SO_BUSY_POLL_BUDGET: ::c_int = 70;
-
-cfg_if! {
- if #[cfg(any(target_arch = "x86",
- target_arch = "x86_64",
- target_arch = "arm",
- target_arch = "aarch64",
- target_arch = "riscv64",
- target_arch = "s390x",
- target_arch = "csky",
- target_arch = "loongarch64"))] {
- pub const FICLONE: ::c_ulong = 0x40049409;
- pub const FICLONERANGE: ::c_ulong = 0x4020940D;
- }
-}
-
-// Defined in unix/linux_like/mod.rs
-// pub const SCM_TIMESTAMP: ::c_int = SO_TIMESTAMP;
-pub const SCM_TIMESTAMPNS: ::c_int = SO_TIMESTAMPNS;
-pub const SCM_TIMESTAMPING: ::c_int = SO_TIMESTAMPING;
-
-// Ioctl Constants
-
-pub const TCGETS: ::Ioctl = 0x5401;
-pub const TCSETS: ::Ioctl = 0x5402;
-pub const TCSETSW: ::Ioctl = 0x5403;
-pub const TCSETSF: ::Ioctl = 0x5404;
-pub const TCGETA: ::Ioctl = 0x5405;
-pub const TCSETA: ::Ioctl = 0x5406;
-pub const TCSETAW: ::Ioctl = 0x5407;
-pub const TCSETAF: ::Ioctl = 0x5408;
-pub const TCSBRK: ::Ioctl = 0x5409;
-pub const TCXONC: ::Ioctl = 0x540A;
-pub const TCFLSH: ::Ioctl = 0x540B;
-pub const TIOCEXCL: ::Ioctl = 0x540C;
-pub const TIOCNXCL: ::Ioctl = 0x540D;
-pub const TIOCSCTTY: ::Ioctl = 0x540E;
-pub const TIOCGPGRP: ::Ioctl = 0x540F;
-pub const TIOCSPGRP: ::Ioctl = 0x5410;
-pub const TIOCOUTQ: ::Ioctl = 0x5411;
-pub const TIOCSTI: ::Ioctl = 0x5412;
-pub const TIOCGWINSZ: ::Ioctl = 0x5413;
-pub const TIOCSWINSZ: ::Ioctl = 0x5414;
-pub const TIOCMGET: ::Ioctl = 0x5415;
-pub const TIOCMBIS: ::Ioctl = 0x5416;
-pub const TIOCMBIC: ::Ioctl = 0x5417;
-pub const TIOCMSET: ::Ioctl = 0x5418;
-pub const TIOCGSOFTCAR: ::Ioctl = 0x5419;
-pub const TIOCSSOFTCAR: ::Ioctl = 0x541A;
-pub const FIONREAD: ::Ioctl = 0x541B;
-pub const TIOCINQ: ::Ioctl = FIONREAD;
-pub const TIOCLINUX: ::Ioctl = 0x541C;
-pub const TIOCCONS: ::Ioctl = 0x541D;
-pub const TIOCGSERIAL: ::Ioctl = 0x541E;
-pub const TIOCSSERIAL: ::Ioctl = 0x541F;
-pub const TIOCPKT: ::Ioctl = 0x5420;
-pub const FIONBIO: ::Ioctl = 0x5421;
-pub const TIOCNOTTY: ::Ioctl = 0x5422;
-pub const TIOCSETD: ::Ioctl = 0x5423;
-pub const TIOCGETD: ::Ioctl = 0x5424;
-pub const TCSBRKP: ::Ioctl = 0x5425;
-pub const TIOCSBRK: ::Ioctl = 0x5427;
-pub const TIOCCBRK: ::Ioctl = 0x5428;
-pub const TIOCGSID: ::Ioctl = 0x5429;
-pub const TCGETS2: ::Ioctl = 0x802c542a;
-pub const TCSETS2: ::Ioctl = 0x402c542b;
-pub const TCSETSW2: ::Ioctl = 0x402c542c;
-pub const TCSETSF2: ::Ioctl = 0x402c542d;
-pub const TIOCGRS485: ::Ioctl = 0x542E;
-pub const TIOCSRS485: ::Ioctl = 0x542F;
-pub const TIOCGPTN: ::Ioctl = 0x80045430;
-pub const TIOCSPTLCK: ::Ioctl = 0x40045431;
-pub const TIOCGDEV: ::Ioctl = 0x80045432;
-pub const TCGETX: ::Ioctl = 0x5432;
-pub const TCSETX: ::Ioctl = 0x5433;
-pub const TCSETXF: ::Ioctl = 0x5434;
-pub const TCSETXW: ::Ioctl = 0x5435;
-pub const TIOCSIG: ::Ioctl = 0x40045436;
-pub const TIOCVHANGUP: ::Ioctl = 0x5437;
-pub const TIOCGPKT: ::Ioctl = 0x80045438;
-pub const TIOCGPTLCK: ::Ioctl = 0x80045439;
-pub const TIOCGEXCL: ::Ioctl = 0x80045440;
-pub const TIOCGPTPEER: ::Ioctl = 0x5441;
-// pub const TIOCGISO7816: ::Ioctl = 0x80285442;
-// pub const TIOCSISO7816: ::Ioctl = 0xc0285443;
-pub const FIONCLEX: ::Ioctl = 0x5450;
-pub const FIOCLEX: ::Ioctl = 0x5451;
-pub const FIOASYNC: ::Ioctl = 0x5452;
-pub const TIOCSERCONFIG: ::Ioctl = 0x5453;
-pub const TIOCSERGWILD: ::Ioctl = 0x5454;
-pub const TIOCSERSWILD: ::Ioctl = 0x5455;
-pub const TIOCGLCKTRMIOS: ::Ioctl = 0x5456;
-pub const TIOCSLCKTRMIOS: ::Ioctl = 0x5457;
-pub const TIOCSERGSTRUCT: ::Ioctl = 0x5458;
-pub const TIOCSERGETLSR: ::Ioctl = 0x5459;
-pub const TIOCSERGETMULTI: ::Ioctl = 0x545A;
-pub const TIOCSERSETMULTI: ::Ioctl = 0x545B;
-pub const TIOCMIWAIT: ::Ioctl = 0x545C;
-pub const TIOCGICOUNT: ::Ioctl = 0x545D;
-pub const BLKIOMIN: ::Ioctl = 0x1278;
-pub const BLKIOOPT: ::Ioctl = 0x1279;
-pub const BLKSSZGET: ::Ioctl = 0x1268;
-pub const BLKPBSZGET: ::Ioctl = 0x127B;
-
-cfg_if! {
- // Those type are constructed using the _IOC macro
- // DD-SS_SSSS_SSSS_SSSS-TTTT_TTTT-NNNN_NNNN
- // where D stands for direction (either None (00), Read (01) or Write (11))
- // where S stands for size (int, long, struct...)
- // where T stands for type ('f','v','X'...)
- // where N stands for NR (NumbeR)
- if #[cfg(any(target_arch = "x86", target_arch = "arm"))] {
- pub const FS_IOC_GETFLAGS: ::Ioctl = 0x80046601;
- pub const FS_IOC_SETFLAGS: ::Ioctl = 0x40046602;
- pub const FS_IOC_GETVERSION: ::Ioctl = 0x80047601;
- pub const FS_IOC_SETVERSION: ::Ioctl = 0x40047602;
- pub const FS_IOC32_GETFLAGS: ::Ioctl = 0x80046601;
- pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x40046602;
- pub const FS_IOC32_GETVERSION: ::Ioctl = 0x80047601;
- pub const FS_IOC32_SETVERSION: ::Ioctl = 0x40047602;
- } else if #[cfg(any(target_arch = "x86_64", target_arch = "riscv64", target_arch = "aarch64", target_arch = "s390x"))] {
- pub const FS_IOC_GETFLAGS: ::Ioctl = 0x80086601;
- pub const FS_IOC_SETFLAGS: ::Ioctl = 0x40086602;
- pub const FS_IOC_GETVERSION: ::Ioctl = 0x80087601;
- pub const FS_IOC_SETVERSION: ::Ioctl = 0x40087602;
- pub const FS_IOC32_GETFLAGS: ::Ioctl = 0x80046601;
- pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x40046602;
- pub const FS_IOC32_GETVERSION: ::Ioctl = 0x80047601;
- pub const FS_IOC32_SETVERSION: ::Ioctl = 0x40047602;
- }
-}
-
-cfg_if! {
- if #[cfg(any(target_arch = "arm",
- target_arch = "s390x"))] {
- pub const FIOQSIZE: ::Ioctl = 0x545E;
- } else {
- pub const FIOQSIZE: ::Ioctl = 0x5460;
- }
-}
-
-pub const TIOCM_LE: ::c_int = 0x001;
-pub const TIOCM_DTR: ::c_int = 0x002;
-pub const TIOCM_RTS: ::c_int = 0x004;
-pub const TIOCM_ST: ::c_int = 0x008;
-pub const TIOCM_SR: ::c_int = 0x010;
-pub const TIOCM_CTS: ::c_int = 0x020;
-pub const TIOCM_CAR: ::c_int = 0x040;
-pub const TIOCM_CD: ::c_int = TIOCM_CAR;
-pub const TIOCM_RNG: ::c_int = 0x080;
-pub const TIOCM_RI: ::c_int = TIOCM_RNG;
-pub const TIOCM_DSR: ::c_int = 0x100;
-
-pub const BOTHER: ::speed_t = 0o010000;
-pub const IBSHIFT: ::tcflag_t = 16;
-
-// RLIMIT Constants
-
-cfg_if! {
- if #[cfg(any(target_env = "gnu",
- target_env = "uclibc"))] {
-
- pub const RLIMIT_CPU: ::__rlimit_resource_t = 0;
- pub const RLIMIT_FSIZE: ::__rlimit_resource_t = 1;
- pub const RLIMIT_DATA: ::__rlimit_resource_t = 2;
- pub const RLIMIT_STACK: ::__rlimit_resource_t = 3;
- pub const RLIMIT_CORE: ::__rlimit_resource_t = 4;
- pub const RLIMIT_RSS: ::__rlimit_resource_t = 5;
- pub const RLIMIT_NPROC: ::__rlimit_resource_t = 6;
- pub const RLIMIT_NOFILE: ::__rlimit_resource_t = 7;
- pub const RLIMIT_MEMLOCK: ::__rlimit_resource_t = 8;
- pub const RLIMIT_AS: ::__rlimit_resource_t = 9;
- pub const RLIMIT_LOCKS: ::__rlimit_resource_t = 10;
- pub const RLIMIT_SIGPENDING: ::__rlimit_resource_t = 11;
- pub const RLIMIT_MSGQUEUE: ::__rlimit_resource_t = 12;
- pub const RLIMIT_NICE: ::__rlimit_resource_t = 13;
- pub const RLIMIT_RTPRIO: ::__rlimit_resource_t = 14;
- pub const RLIMIT_RTTIME: ::__rlimit_resource_t = 15;
- #[allow(deprecated)]
- #[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
- pub const RLIMIT_NLIMITS: ::__rlimit_resource_t = RLIM_NLIMITS;
-
- } else if #[cfg(any(target_env = "musl", target_env = "ohos"))] {
-
- pub const RLIMIT_CPU: ::c_int = 0;
- pub const RLIMIT_FSIZE: ::c_int = 1;
- pub const RLIMIT_DATA: ::c_int = 2;
- pub const RLIMIT_STACK: ::c_int = 3;
- pub const RLIMIT_CORE: ::c_int = 4;
- pub const RLIMIT_RSS: ::c_int = 5;
- pub const RLIMIT_NPROC: ::c_int = 6;
- pub const RLIMIT_NOFILE: ::c_int = 7;
- pub const RLIMIT_MEMLOCK: ::c_int = 8;
- pub const RLIMIT_AS: ::c_int = 9;
- pub const RLIMIT_LOCKS: ::c_int = 10;
- pub const RLIMIT_SIGPENDING: ::c_int = 11;
- pub const RLIMIT_MSGQUEUE: ::c_int = 12;
- pub const RLIMIT_NICE: ::c_int = 13;
- pub const RLIMIT_RTPRIO: ::c_int = 14;
- pub const RLIMIT_RTTIME: ::c_int = 15;
- #[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
- pub const RLIM_NLIMITS: ::c_int = 15;
- #[allow(deprecated)]
- #[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
- pub const RLIMIT_NLIMITS: ::c_int = RLIM_NLIMITS;
- }
-}
-
-cfg_if! {
- if #[cfg(target_env = "gnu")] {
- #[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
- pub const RLIM_NLIMITS: ::__rlimit_resource_t = 16;
- }
- else if #[cfg(target_env = "uclibc")] {
- #[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
- pub const RLIM_NLIMITS: ::__rlimit_resource_t = 15;
- }
-}
-
-pub const RLIM_INFINITY: ::rlim_t = !0;
diff --git a/vendor/libc/src/unix/linux_like/linux/arch/mips/mod.rs b/vendor/libc/src/unix/linux_like/linux/arch/mips/mod.rs
deleted file mode 100644
index 7699677..0000000
--- a/vendor/libc/src/unix/linux_like/linux/arch/mips/mod.rs
+++ /dev/null
@@ -1,323 +0,0 @@
-s! {
- pub struct termios2 {
- pub c_iflag: ::tcflag_t,
- pub c_oflag: ::tcflag_t,
- pub c_cflag: ::tcflag_t,
- pub c_lflag: ::tcflag_t,
- pub c_line: ::cc_t,
- pub c_cc: [::cc_t; 23],
- pub c_ispeed: ::speed_t,
- pub c_ospeed: ::speed_t,
- }
-}
-
-// arch/mips/include/uapi/asm/socket.h
-pub const SOL_SOCKET: ::c_int = 0xffff;
-
-// Defined in unix/linux_like/mod.rs
-// pub const SO_DEBUG: ::c_int = 0x0001;
-pub const SO_REUSEADDR: ::c_int = 0x0004;
-pub const SO_KEEPALIVE: ::c_int = 0x0008;
-pub const SO_DONTROUTE: ::c_int = 0x0010;
-pub const SO_BROADCAST: ::c_int = 0x0020;
-pub const SO_LINGER: ::c_int = 0x0080;
-pub const SO_OOBINLINE: ::c_int = 0x0100;
-pub const SO_REUSEPORT: ::c_int = 0x0200;
-pub const SO_TYPE: ::c_int = 0x1008;
-// pub const SO_STYLE: ::c_int = SO_TYPE;
-pub const SO_ERROR: ::c_int = 0x1007;
-pub const SO_SNDBUF: ::c_int = 0x1001;
-pub const SO_RCVBUF: ::c_int = 0x1002;
-pub const SO_SNDLOWAT: ::c_int = 0x1003;
-pub const SO_RCVLOWAT: ::c_int = 0x1004;
-// NOTE: These definitions are now being renamed with _OLD postfix,
-// but CI haven't support them yet.
-// Some related consts could be found in b32.rs and b64.rs
-pub const SO_SNDTIMEO: ::c_int = 0x1005;
-pub const SO_RCVTIMEO: ::c_int = 0x1006;
-// pub const SO_SNDTIMEO_OLD: ::c_int = 0x1005;
-// pub const SO_RCVTIMEO_OLD: ::c_int = 0x1006;
-pub const SO_ACCEPTCONN: ::c_int = 0x1009;
-pub const SO_PROTOCOL: ::c_int = 0x1028;
-pub const SO_DOMAIN: ::c_int = 0x1029;
-
-pub const SO_NO_CHECK: ::c_int = 11;
-pub const SO_PRIORITY: ::c_int = 12;
-pub const SO_BSDCOMPAT: ::c_int = 14;
-pub const SO_PASSCRED: ::c_int = 17;
-pub const SO_PEERCRED: ::c_int = 18;
-pub const SO_SECURITY_AUTHENTICATION: ::c_int = 22;
-pub const SO_SECURITY_ENCRYPTION_TRANSPORT: ::c_int = 23;
-pub const SO_SECURITY_ENCRYPTION_NETWORK: ::c_int = 24;
-pub const SO_BINDTODEVICE: ::c_int = 25;
-pub const SO_ATTACH_FILTER: ::c_int = 26;
-pub const SO_DETACH_FILTER: ::c_int = 27;
-pub const SO_GET_FILTER: ::c_int = SO_ATTACH_FILTER;
-pub const SO_PEERNAME: ::c_int = 28;
-pub const SO_PEERSEC: ::c_int = 30;
-pub const SO_SNDBUFFORCE: ::c_int = 31;
-pub const SO_RCVBUFFORCE: ::c_int = 33;
-pub const SO_PASSSEC: ::c_int = 34;
-pub const SO_MARK: ::c_int = 36;
-pub const SO_RXQ_OVFL: ::c_int = 40;
-pub const SO_WIFI_STATUS: ::c_int = 41;
-pub const SCM_WIFI_STATUS: ::c_int = SO_WIFI_STATUS;
-pub const SO_PEEK_OFF: ::c_int = 42;
-pub const SO_NOFCS: ::c_int = 43;
-pub const SO_LOCK_FILTER: ::c_int = 44;
-pub const SO_SELECT_ERR_QUEUE: ::c_int = 45;
-pub const SO_BUSY_POLL: ::c_int = 46;
-pub const SO_MAX_PACING_RATE: ::c_int = 47;
-pub const SO_BPF_EXTENSIONS: ::c_int = 48;
-pub const SO_INCOMING_CPU: ::c_int = 49;
-pub const SO_ATTACH_BPF: ::c_int = 50;
-pub const SO_DETACH_BPF: ::c_int = SO_DETACH_FILTER;
-pub const SO_ATTACH_REUSEPORT_CBPF: ::c_int = 51;
-pub const SO_ATTACH_REUSEPORT_EBPF: ::c_int = 52;
-pub const SO_CNX_ADVICE: ::c_int = 53;
-pub const SCM_TIMESTAMPING_OPT_STATS: ::c_int = 54;
-pub const SO_MEMINFO: ::c_int = 55;
-pub const SO_INCOMING_NAPI_ID: ::c_int = 56;
-pub const SO_COOKIE: ::c_int = 57;
-pub const SCM_TIMESTAMPING_PKTINFO: ::c_int = 58;
-pub const SO_PEERGROUPS: ::c_int = 59;
-pub const SO_ZEROCOPY: ::c_int = 60;
-pub const SO_TXTIME: ::c_int = 61;
-pub const SCM_TXTIME: ::c_int = SO_TXTIME;
-pub const SO_BINDTOIFINDEX: ::c_int = 62;
-// NOTE: These definitions are now being renamed with _OLD postfix,
-// but CI haven't support them yet.
-// Some related consts could be found in b32.rs and b64.rs
-pub const SO_TIMESTAMP: ::c_int = 29;
-pub const SO_TIMESTAMPNS: ::c_int = 35;
-pub const SO_TIMESTAMPING: ::c_int = 37;
-// pub const SO_TIMESTAMP_OLD: ::c_int = 29;
-// pub const SO_TIMESTAMPNS_OLD: ::c_int = 35;
-// pub const SO_TIMESTAMPING_OLD: ::c_int = 37;
-// pub const SO_TIMESTAMP_NEW: ::c_int = 63;
-// pub const SO_TIMESTAMPNS_NEW: ::c_int = 64;
-// pub const SO_TIMESTAMPING_NEW: ::c_int = 65;
-// pub const SO_RCVTIMEO_NEW: ::c_int = 66;
-// pub const SO_SNDTIMEO_NEW: ::c_int = 67;
-// pub const SO_DETACH_REUSEPORT_BPF: ::c_int = 68;
-// pub const SO_PREFER_BUSY_POLL: ::c_int = 69;
-// pub const SO_BUSY_POLL_BUDGET: ::c_int = 70;
-
-pub const FICLONE: ::c_ulong = 0x80049409;
-pub const FICLONERANGE: ::c_ulong = 0x8020940D;
-
-// Defined in unix/linux_like/mod.rs
-// pub const SCM_TIMESTAMP: ::c_int = SO_TIMESTAMP;
-pub const SCM_TIMESTAMPNS: ::c_int = SO_TIMESTAMPNS;
-pub const SCM_TIMESTAMPING: ::c_int = SO_TIMESTAMPING;
-
-// Ioctl Constants
-
-pub const TCGETS: ::Ioctl = 0x540d;
-pub const TCSETS: ::Ioctl = 0x540e;
-pub const TCSETSW: ::Ioctl = 0x540f;
-pub const TCSETSF: ::Ioctl = 0x5410;
-pub const TCGETA: ::Ioctl = 0x5401;
-pub const TCSETA: ::Ioctl = 0x5402;
-pub const TCSETAW: ::Ioctl = 0x5403;
-pub const TCSETAF: ::Ioctl = 0x5404;
-pub const TCSBRK: ::Ioctl = 0x5405;
-pub const TCXONC: ::Ioctl = 0x5406;
-pub const TCFLSH: ::Ioctl = 0x5407;
-pub const TIOCEXCL: ::Ioctl = 0x740d;
-pub const TIOCNXCL: ::Ioctl = 0x740e;
-pub const TIOCSCTTY: ::Ioctl = 0x5480;
-pub const TIOCGPGRP: ::Ioctl = 0x40047477;
-pub const TIOCSPGRP: ::Ioctl = 0x80047476;
-pub const TIOCOUTQ: ::Ioctl = 0x7472;
-pub const TIOCSTI: ::Ioctl = 0x5472;
-pub const TIOCGWINSZ: ::Ioctl = 0x40087468;
-pub const TIOCSWINSZ: ::Ioctl = 0x80087467;
-pub const TIOCMGET: ::Ioctl = 0x741d;
-pub const TIOCMBIS: ::Ioctl = 0x741b;
-pub const TIOCMBIC: ::Ioctl = 0x741c;
-pub const TIOCMSET: ::Ioctl = 0x741a;
-pub const TIOCGSOFTCAR: ::Ioctl = 0x5481;
-pub const TIOCSSOFTCAR: ::Ioctl = 0x5482;
-pub const FIONREAD: ::Ioctl = 0x467f;
-pub const TIOCINQ: ::Ioctl = FIONREAD;
-pub const TIOCLINUX: ::Ioctl = 0x5483;
-pub const TIOCCONS: ::Ioctl = 0x80047478;
-pub const TIOCGSERIAL: ::Ioctl = 0x5484;
-pub const TIOCSSERIAL: ::Ioctl = 0x5485;
-pub const TIOCPKT: ::Ioctl = 0x5470;
-pub const FIONBIO: ::Ioctl = 0x667e;
-pub const TIOCNOTTY: ::Ioctl = 0x5471;
-pub const TIOCSETD: ::Ioctl = 0x7401;
-pub const TIOCGETD: ::Ioctl = 0x7400;
-pub const TCSBRKP: ::Ioctl = 0x5486;
-pub const TIOCSBRK: ::Ioctl = 0x5427;
-pub const TIOCCBRK: ::Ioctl = 0x5428;
-pub const TIOCGSID: ::Ioctl = 0x7416;
-pub const TCGETS2: ::Ioctl = 0x4030542a;
-pub const TCSETS2: ::Ioctl = 0x8030542b;
-pub const TCSETSW2: ::Ioctl = 0x8030542c;
-pub const TCSETSF2: ::Ioctl = 0x8030542d;
-pub const TIOCGPTN: ::Ioctl = 0x40045430;
-pub const TIOCSPTLCK: ::Ioctl = 0x80045431;
-pub const TIOCGDEV: ::Ioctl = 0x40045432;
-pub const TIOCSIG: ::Ioctl = 0x80045436;
-pub const TIOCVHANGUP: ::Ioctl = 0x5437;
-pub const TIOCGPKT: ::Ioctl = 0x40045438;
-pub const TIOCGPTLCK: ::Ioctl = 0x40045439;
-pub const TIOCGEXCL: ::Ioctl = 0x40045440;
-pub const TIOCGPTPEER: ::Ioctl = 0x20005441;
-//pub const TIOCGISO7816: ::Ioctl = 0x40285442;
-//pub const TIOCSISO7816: ::Ioctl = 0xc0285443;
-pub const FIONCLEX: ::Ioctl = 0x6602;
-pub const FIOCLEX: ::Ioctl = 0x6601;
-pub const FIOASYNC: ::Ioctl = 0x667d;
-pub const TIOCSERCONFIG: ::Ioctl = 0x5488;
-pub const TIOCSERGWILD: ::Ioctl = 0x5489;
-pub const TIOCSERSWILD: ::Ioctl = 0x548a;
-pub const TIOCGLCKTRMIOS: ::Ioctl = 0x548b;
-pub const TIOCSLCKTRMIOS: ::Ioctl = 0x548c;
-pub const TIOCSERGSTRUCT: ::Ioctl = 0x548d;
-pub const TIOCSERGETLSR: ::Ioctl = 0x548e;
-pub const TIOCSERGETMULTI: ::Ioctl = 0x548f;
-pub const TIOCSERSETMULTI: ::Ioctl = 0x5490;
-pub const TIOCMIWAIT: ::Ioctl = 0x5491;
-pub const TIOCGICOUNT: ::Ioctl = 0x5492;
-pub const FIOQSIZE: ::Ioctl = 0x667f;
-pub const TIOCSLTC: ::Ioctl = 0x7475;
-pub const TIOCGETP: ::Ioctl = 0x7408;
-pub const TIOCSETP: ::Ioctl = 0x7409;
-pub const TIOCSETN: ::Ioctl = 0x740a;
-pub const BLKIOMIN: ::Ioctl = 0x20001278;
-pub const BLKIOOPT: ::Ioctl = 0x20001279;
-pub const BLKSSZGET: ::Ioctl = 0x20001268;
-pub const BLKPBSZGET: ::Ioctl = 0x2000127B;
-
-cfg_if! {
- // Those type are constructed using the _IOC macro
- // DD-SS_SSSS_SSSS_SSSS-TTTT_TTTT-NNNN_NNNN
- // where D stands for direction (either None (00), Read (01) or Write (11))
- // where S stands for size (int, long, struct...)
- // where T stands for type ('f','v','X'...)
- // where N stands for NR (NumbeR)
- if #[cfg(target_arch = "mips")] {
- pub const FS_IOC_GETFLAGS: ::Ioctl = 0x40046601;
- pub const FS_IOC_SETFLAGS: ::Ioctl = 0x80046602;
- pub const FS_IOC_GETVERSION: ::Ioctl = 0x40047601;
- pub const FS_IOC_SETVERSION: ::Ioctl = 0x80047602;
- pub const FS_IOC32_GETFLAGS: ::Ioctl = 0x40046601;
- pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x80046602;
- pub const FS_IOC32_GETVERSION: ::Ioctl = 0x40047601;
- pub const FS_IOC32_SETVERSION: ::Ioctl = 0x80047602;
- } else if #[cfg(target_arch = "mips64")] {
- pub const FS_IOC_GETFLAGS: ::Ioctl = 0x40086601;
- pub const FS_IOC_SETFLAGS: ::Ioctl = 0x80086602;
- pub const FS_IOC_GETVERSION: ::Ioctl = 0x40087601;
- pub const FS_IOC_SETVERSION: ::Ioctl = 0x80087602;
- pub const FS_IOC32_GETFLAGS: ::Ioctl = 0x40046601;
- pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x80046602;
- pub const FS_IOC32_GETVERSION: ::Ioctl = 0x40047601;
- pub const FS_IOC32_SETVERSION: ::Ioctl = 0x80047602;
- }
-}
-
-cfg_if! {
- if #[cfg(target_env = "musl")] {
- pub const TIOCGRS485: ::Ioctl = 0x4020542e;
- pub const TIOCSRS485: ::Ioctl = 0xc020542f;
- }
-}
-
-pub const TIOCM_LE: ::c_int = 0x001;
-pub const TIOCM_DTR: ::c_int = 0x002;
-pub const TIOCM_RTS: ::c_int = 0x004;
-pub const TIOCM_ST: ::c_int = 0x010;
-pub const TIOCM_SR: ::c_int = 0x020;
-pub const TIOCM_CTS: ::c_int = 0x040;
-pub const TIOCM_CAR: ::c_int = 0x100;
-pub const TIOCM_CD: ::c_int = TIOCM_CAR;
-pub const TIOCM_RNG: ::c_int = 0x200;
-pub const TIOCM_RI: ::c_int = TIOCM_RNG;
-pub const TIOCM_DSR: ::c_int = 0x400;
-
-pub const BOTHER: ::speed_t = 0o010000;
-pub const IBSHIFT: ::tcflag_t = 16;
-
-// RLIMIT Constants
-
-cfg_if! {
- if #[cfg(any(target_env = "gnu",
- target_env = "uclibc"))] {
-
- pub const RLIMIT_CPU: ::__rlimit_resource_t = 0;
- pub const RLIMIT_FSIZE: ::__rlimit_resource_t = 1;
- pub const RLIMIT_DATA: ::__rlimit_resource_t = 2;
- pub const RLIMIT_STACK: ::__rlimit_resource_t = 3;
- pub const RLIMIT_CORE: ::__rlimit_resource_t = 4;
- pub const RLIMIT_NOFILE: ::__rlimit_resource_t = 5;
- pub const RLIMIT_AS: ::__rlimit_resource_t = 6;
- pub const RLIMIT_RSS: ::__rlimit_resource_t = 7;
- pub const RLIMIT_NPROC: ::__rlimit_resource_t = 8;
- pub const RLIMIT_MEMLOCK: ::__rlimit_resource_t = 9;
- pub const RLIMIT_LOCKS: ::__rlimit_resource_t = 10;
- pub const RLIMIT_SIGPENDING: ::__rlimit_resource_t = 11;
- pub const RLIMIT_MSGQUEUE: ::__rlimit_resource_t = 12;
- pub const RLIMIT_NICE: ::__rlimit_resource_t = 13;
- pub const RLIMIT_RTPRIO: ::__rlimit_resource_t = 14;
- pub const RLIMIT_RTTIME: ::__rlimit_resource_t = 15;
- #[allow(deprecated)]
- #[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
- pub const RLIMIT_NLIMITS: ::__rlimit_resource_t = RLIM_NLIMITS;
-
- } else if #[cfg(target_env = "musl")] {
-
- pub const RLIMIT_CPU: ::c_int = 0;
- pub const RLIMIT_FSIZE: ::c_int = 1;
- pub const RLIMIT_DATA: ::c_int = 2;
- pub const RLIMIT_STACK: ::c_int = 3;
- pub const RLIMIT_CORE: ::c_int = 4;
- pub const RLIMIT_NOFILE: ::c_int = 5;
- pub const RLIMIT_AS: ::c_int = 6;
- pub const RLIMIT_RSS: ::c_int = 7;
- pub const RLIMIT_NPROC: ::c_int = 8;
- pub const RLIMIT_MEMLOCK: ::c_int = 9;
- pub const RLIMIT_LOCKS: ::c_int = 10;
- pub const RLIMIT_SIGPENDING: ::c_int = 11;
- pub const RLIMIT_MSGQUEUE: ::c_int = 12;
- pub const RLIMIT_NICE: ::c_int = 13;
- pub const RLIMIT_RTPRIO: ::c_int = 14;
- pub const RLIMIT_RTTIME: ::c_int = 15;
- #[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
- pub const RLIM_NLIMITS: ::c_int = 15;
- #[allow(deprecated)]
- #[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
- pub const RLIMIT_NLIMITS: ::c_int = RLIM_NLIMITS;
- pub const RLIM_INFINITY: ::rlim_t = !0;
- }
-}
-
-cfg_if! {
- if #[cfg(target_env = "gnu")] {
- #[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
- pub const RLIM_NLIMITS: ::__rlimit_resource_t = 16;
- } else if #[cfg(target_env = "uclibc")] {
- #[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
- pub const RLIM_NLIMITS: ::__rlimit_resource_t = 15;
- }
-}
-
-cfg_if! {
- if #[cfg(any(target_arch = "mips64", target_arch = "mips64r6"),
- any(target_env = "gnu",
- target_env = "uclibc"))] {
- pub const RLIM_INFINITY: ::rlim_t = !0;
- }
-}
-
-cfg_if! {
- if #[cfg(any(target_arch = "mips", target_arch = "mips32r6"),
- any(target_env = "gnu",
- target_env = "uclibc"))] {
- pub const RLIM_INFINITY: ::rlim_t = 0x7fffffff;
- }
-}
diff --git a/vendor/libc/src/unix/linux_like/linux/arch/mod.rs b/vendor/libc/src/unix/linux_like/linux/arch/mod.rs
deleted file mode 100644
index 7f6ddc5..0000000
--- a/vendor/libc/src/unix/linux_like/linux/arch/mod.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-cfg_if! {
- if #[cfg(any(target_arch = "mips",
- target_arch = "mips32r6",
- target_arch = "mips64",
- target_arch = "mips64r6"))] {
- mod mips;
- pub use self::mips::*;
- } else if #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))] {
- mod powerpc;
- pub use self::powerpc::*;
- } else if #[cfg(any(target_arch = "sparc", target_arch = "sparc64"))] {
- mod sparc;
- pub use self::sparc::*;
- } else {
- mod generic;
- pub use self::generic::*;
- }
-}
diff --git a/vendor/libc/src/unix/linux_like/linux/arch/powerpc/mod.rs b/vendor/libc/src/unix/linux_like/linux/arch/powerpc/mod.rs
deleted file mode 100644
index 27834db..0000000
--- a/vendor/libc/src/unix/linux_like/linux/arch/powerpc/mod.rs
+++ /dev/null
@@ -1,277 +0,0 @@
-// arch/powerpc/include/uapi/asm/socket.h
-
-pub const SOL_SOCKET: ::c_int = 1;
-
-// Defined in unix/linux_like/mod.rs
-// pub const SO_DEBUG: ::c_int = 1;
-pub const SO_REUSEADDR: ::c_int = 2;
-pub const SO_TYPE: ::c_int = 3;
-pub const SO_ERROR: ::c_int = 4;
-pub const SO_DONTROUTE: ::c_int = 5;
-pub const SO_BROADCAST: ::c_int = 6;
-pub const SO_SNDBUF: ::c_int = 7;
-pub const SO_RCVBUF: ::c_int = 8;
-pub const SO_KEEPALIVE: ::c_int = 9;
-pub const SO_OOBINLINE: ::c_int = 10;
-pub const SO_NO_CHECK: ::c_int = 11;
-pub const SO_PRIORITY: ::c_int = 12;
-pub const SO_LINGER: ::c_int = 13;
-pub const SO_BSDCOMPAT: ::c_int = 14;
-pub const SO_REUSEPORT: ::c_int = 15;
-// powerpc only differs in these
-pub const SO_RCVLOWAT: ::c_int = 16;
-pub const SO_SNDLOWAT: ::c_int = 17;
-pub const SO_RCVTIMEO: ::c_int = 18;
-pub const SO_SNDTIMEO: ::c_int = 19;
-// pub const SO_RCVTIMEO_OLD: ::c_int = 18;
-// pub const SO_SNDTIMEO_OLD: ::c_int = 19;
-pub const SO_PASSCRED: ::c_int = 20;
-pub const SO_PEERCRED: ::c_int = 21;
-// end
-pub const SO_SECURITY_AUTHENTICATION: ::c_int = 22;
-pub const SO_SECURITY_ENCRYPTION_TRANSPORT: ::c_int = 23;
-pub const SO_SECURITY_ENCRYPTION_NETWORK: ::c_int = 24;
-pub const SO_BINDTODEVICE: ::c_int = 25;
-pub const SO_ATTACH_FILTER: ::c_int = 26;
-pub const SO_DETACH_FILTER: ::c_int = 27;
-pub const SO_GET_FILTER: ::c_int = SO_ATTACH_FILTER;
-pub const SO_PEERNAME: ::c_int = 28;
-pub const SO_TIMESTAMP: ::c_int = 29;
-// pub const SO_TIMESTAMP_OLD: ::c_int = 29;
-pub const SO_ACCEPTCONN: ::c_int = 30;
-pub const SO_PEERSEC: ::c_int = 31;
-pub const SO_SNDBUFFORCE: ::c_int = 32;
-pub const SO_RCVBUFFORCE: ::c_int = 33;
-pub const SO_PASSSEC: ::c_int = 34;
-pub const SO_TIMESTAMPNS: ::c_int = 35;
-// pub const SO_TIMESTAMPNS_OLD: ::c_int = 35;
-pub const SO_MARK: ::c_int = 36;
-pub const SO_TIMESTAMPING: ::c_int = 37;
-// pub const SO_TIMESTAMPING_OLD: ::c_int = 37;
-pub const SO_PROTOCOL: ::c_int = 38;
-pub const SO_DOMAIN: ::c_int = 39;
-pub const SO_RXQ_OVFL: ::c_int = 40;
-pub const SO_WIFI_STATUS: ::c_int = 41;
-pub const SCM_WIFI_STATUS: ::c_int = SO_WIFI_STATUS;
-pub const SO_PEEK_OFF: ::c_int = 42;
-pub const SO_NOFCS: ::c_int = 43;
-pub const SO_LOCK_FILTER: ::c_int = 44;
-pub const SO_SELECT_ERR_QUEUE: ::c_int = 45;
-pub const SO_BUSY_POLL: ::c_int = 46;
-pub const SO_MAX_PACING_RATE: ::c_int = 47;
-pub const SO_BPF_EXTENSIONS: ::c_int = 48;
-pub const SO_INCOMING_CPU: ::c_int = 49;
-pub const SO_ATTACH_BPF: ::c_int = 50;
-pub const SO_DETACH_BPF: ::c_int = SO_DETACH_FILTER;
-pub const SO_ATTACH_REUSEPORT_CBPF: ::c_int = 51;
-pub const SO_ATTACH_REUSEPORT_EBPF: ::c_int = 52;
-pub const SO_CNX_ADVICE: ::c_int = 53;
-pub const SCM_TIMESTAMPING_OPT_STATS: ::c_int = 54;
-pub const SO_MEMINFO: ::c_int = 55;
-pub const SO_INCOMING_NAPI_ID: ::c_int = 56;
-pub const SO_COOKIE: ::c_int = 57;
-pub const SCM_TIMESTAMPING_PKTINFO: ::c_int = 58;
-pub const SO_PEERGROUPS: ::c_int = 59;
-pub const SO_ZEROCOPY: ::c_int = 60;
-pub const SO_TXTIME: ::c_int = 61;
-pub const SCM_TXTIME: ::c_int = SO_TXTIME;
-pub const SO_BINDTOIFINDEX: ::c_int = 62;
-// pub const SO_TIMESTAMP_NEW: ::c_int = 63;
-// pub const SO_TIMESTAMPNS_NEW: ::c_int = 64;
-// pub const SO_TIMESTAMPING_NEW: ::c_int = 65;
-// pub const SO_RCVTIMEO_NEW: ::c_int = 66;
-// pub const SO_SNDTIMEO_NEW: ::c_int = 67;
-// pub const SO_DETACH_REUSEPORT_BPF: ::c_int = 68;
-// pub const SO_PREFER_BUSY_POLL: ::c_int = 69;
-// pub const SO_BUSY_POLL_BUDGET: ::c_int = 70;
-
-pub const FICLONE: ::c_ulong = 0x80049409;
-pub const FICLONERANGE: ::c_ulong = 0x8020940D;
-
-// Defined in unix/linux_like/mod.rs
-// pub const SCM_TIMESTAMP: ::c_int = SO_TIMESTAMP;
-pub const SCM_TIMESTAMPNS: ::c_int = SO_TIMESTAMPNS;
-pub const SCM_TIMESTAMPING: ::c_int = SO_TIMESTAMPING;
-
-// Ioctl Constants
-
-cfg_if! {
- if #[cfg(target_env = "gnu")] {
- pub const TCGETS: ::Ioctl = 0x403c7413;
- pub const TCSETS: ::Ioctl = 0x803c7414;
- pub const TCSETSW: ::Ioctl = 0x803c7415;
- pub const TCSETSF: ::Ioctl = 0x803c7416;
- } else if #[cfg(target_env = "musl")] {
- pub const TCGETS: ::Ioctl = 0x402c7413;
- pub const TCSETS: ::Ioctl = 0x802c7414;
- pub const TCSETSW: ::Ioctl = 0x802c7415;
- pub const TCSETSF: ::Ioctl = 0x802c7416;
- }
-}
-
-pub const TCGETA: ::Ioctl = 0x40147417;
-pub const TCSETA: ::Ioctl = 0x80147418;
-pub const TCSETAW: ::Ioctl = 0x80147419;
-pub const TCSETAF: ::Ioctl = 0x8014741C;
-pub const TCSBRK: ::Ioctl = 0x2000741D;
-pub const TCXONC: ::Ioctl = 0x2000741E;
-pub const TCFLSH: ::Ioctl = 0x2000741F;
-pub const TIOCEXCL: ::Ioctl = 0x540C;
-pub const TIOCNXCL: ::Ioctl = 0x540D;
-pub const TIOCSCTTY: ::Ioctl = 0x540E;
-pub const TIOCGPGRP: ::Ioctl = 0x40047477;
-pub const TIOCSPGRP: ::Ioctl = 0x80047476;
-pub const TIOCOUTQ: ::Ioctl = 0x40047473;
-pub const TIOCSTI: ::Ioctl = 0x5412;
-pub const TIOCGWINSZ: ::Ioctl = 0x40087468;
-pub const TIOCSWINSZ: ::Ioctl = 0x80087467;
-pub const TIOCMGET: ::Ioctl = 0x5415;
-pub const TIOCMBIS: ::Ioctl = 0x5416;
-pub const TIOCMBIC: ::Ioctl = 0x5417;
-pub const TIOCMSET: ::Ioctl = 0x5418;
-pub const TIOCGSOFTCAR: ::Ioctl = 0x5419;
-pub const TIOCSSOFTCAR: ::Ioctl = 0x541A;
-pub const FIONREAD: ::Ioctl = 0x4004667F;
-pub const TIOCINQ: ::Ioctl = FIONREAD;
-pub const TIOCLINUX: ::Ioctl = 0x541C;
-pub const TIOCCONS: ::Ioctl = 0x541D;
-pub const TIOCGSERIAL: ::Ioctl = 0x541E;
-pub const TIOCSSERIAL: ::Ioctl = 0x541F;
-pub const TIOCPKT: ::Ioctl = 0x5420;
-pub const FIONBIO: ::Ioctl = 0x8004667e;
-pub const TIOCNOTTY: ::Ioctl = 0x5422;
-pub const TIOCSETD: ::Ioctl = 0x5423;
-pub const TIOCGETD: ::Ioctl = 0x5424;
-pub const TCSBRKP: ::Ioctl = 0x5425;
-pub const TIOCSBRK: ::Ioctl = 0x5427;
-pub const TIOCCBRK: ::Ioctl = 0x5428;
-pub const TIOCGSID: ::Ioctl = 0x5429;
-pub const TIOCGRS485: ::Ioctl = 0x542e;
-pub const TIOCSRS485: ::Ioctl = 0x542f;
-pub const TIOCGPTN: ::Ioctl = 0x40045430;
-pub const TIOCSPTLCK: ::Ioctl = 0x80045431;
-pub const TIOCGDEV: ::Ioctl = 0x40045432;
-pub const TIOCSIG: ::Ioctl = 0x80045436;
-pub const TIOCVHANGUP: ::Ioctl = 0x5437;
-pub const TIOCGPKT: ::Ioctl = 0x40045438;
-pub const TIOCGPTLCK: ::Ioctl = 0x40045439;
-pub const TIOCGEXCL: ::Ioctl = 0x40045440;
-pub const TIOCGPTPEER: ::Ioctl = 0x20005441;
-//pub const TIOCGISO7816: ::Ioctl = 0x40285442;
-//pub const TIOCSISO7816: ::Ioctl = 0xc0285443;
-pub const FIONCLEX: ::Ioctl = 0x20006602;
-pub const FIOCLEX: ::Ioctl = 0x20006601;
-pub const FIOASYNC: ::Ioctl = 0x8004667d;
-pub const TIOCSERCONFIG: ::Ioctl = 0x5453;
-pub const TIOCSERGWILD: ::Ioctl = 0x5454;
-pub const TIOCSERSWILD: ::Ioctl = 0x5455;
-pub const TIOCGLCKTRMIOS: ::Ioctl = 0x5456;
-pub const TIOCSLCKTRMIOS: ::Ioctl = 0x5457;
-pub const TIOCSERGSTRUCT: ::Ioctl = 0x5458;
-pub const TIOCSERGETLSR: ::Ioctl = 0x5459;
-pub const TIOCSERGETMULTI: ::Ioctl = 0x545A;
-pub const TIOCSERSETMULTI: ::Ioctl = 0x545B;
-pub const TIOCMIWAIT: ::Ioctl = 0x545C;
-pub const TIOCGICOUNT: ::Ioctl = 0x545D;
-pub const BLKIOMIN: ::Ioctl = 0x20001278;
-pub const BLKIOOPT: ::Ioctl = 0x20001279;
-pub const BLKSSZGET: ::Ioctl = 0x20001268;
-pub const BLKPBSZGET: ::Ioctl = 0x2000127B;
-//pub const FIOQSIZE: ::Ioctl = 0x40086680;
-
-cfg_if! {
- // Those type are constructed using the _IOC macro
- // DD-SS_SSSS_SSSS_SSSS-TTTT_TTTT-NNNN_NNNN
- // where D stands for direction (either None (00), Read (01) or Write (11))
- // where S stands for size (int, long, struct...)
- // where T stands for type ('f','v','X'...)
- // where N stands for NR (NumbeR)
- if #[cfg(target_arch = "powerpc")] {
- pub const FS_IOC_GETFLAGS: ::Ioctl = 0x40046601;
- pub const FS_IOC_SETFLAGS: ::Ioctl = 0x80046602;
- pub const FS_IOC_GETVERSION: ::Ioctl = 0x40047601;
- pub const FS_IOC_SETVERSION: ::Ioctl = 0x80047602;
- pub const FS_IOC32_GETFLAGS: ::Ioctl = 0x40046601;
- pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x80046602;
- pub const FS_IOC32_GETVERSION: ::Ioctl = 0x40047601;
- pub const FS_IOC32_SETVERSION: ::Ioctl = 0x80047602;
- } else if #[cfg(target_arch = "powerpc64")] {
- pub const FS_IOC_GETFLAGS: ::Ioctl = 0x40086601;
- pub const FS_IOC_SETFLAGS: ::Ioctl = 0x80086602;
- pub const FS_IOC_GETVERSION: ::Ioctl = 0x40087601;
- pub const FS_IOC_SETVERSION: ::Ioctl = 0x80087602;
- pub const FS_IOC32_GETFLAGS: ::Ioctl = 0x40046601;
- pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x80046602;
- pub const FS_IOC32_GETVERSION: ::Ioctl = 0x40047601;
- pub const FS_IOC32_SETVERSION: ::Ioctl = 0x80047602;
- }
-}
-
-pub const TIOCM_LE: ::c_int = 0x001;
-pub const TIOCM_DTR: ::c_int = 0x002;
-pub const TIOCM_RTS: ::c_int = 0x004;
-pub const TIOCM_ST: ::c_int = 0x008;
-pub const TIOCM_SR: ::c_int = 0x010;
-pub const TIOCM_CTS: ::c_int = 0x020;
-pub const TIOCM_CAR: ::c_int = 0x040;
-pub const TIOCM_CD: ::c_int = TIOCM_CAR;
-pub const TIOCM_RNG: ::c_int = 0x080;
-pub const TIOCM_RI: ::c_int = TIOCM_RNG;
-pub const TIOCM_DSR: ::c_int = 0x100;
-
-pub const BOTHER: ::speed_t = 0o0037;
-pub const IBSHIFT: ::tcflag_t = 16;
-
-// RLIMIT Constants
-
-cfg_if! {
- if #[cfg(target_env = "gnu")] {
-
- pub const RLIMIT_CPU: ::__rlimit_resource_t = 0;
- pub const RLIMIT_FSIZE: ::__rlimit_resource_t = 1;
- pub const RLIMIT_DATA: ::__rlimit_resource_t = 2;
- pub const RLIMIT_STACK: ::__rlimit_resource_t = 3;
- pub const RLIMIT_CORE: ::__rlimit_resource_t = 4;
- pub const RLIMIT_RSS: ::__rlimit_resource_t = 5;
- pub const RLIMIT_NPROC: ::__rlimit_resource_t = 6;
- pub const RLIMIT_NOFILE: ::__rlimit_resource_t = 7;
- pub const RLIMIT_MEMLOCK: ::__rlimit_resource_t = 8;
- pub const RLIMIT_AS: ::__rlimit_resource_t = 9;
- pub const RLIMIT_LOCKS: ::__rlimit_resource_t = 10;
- pub const RLIMIT_SIGPENDING: ::__rlimit_resource_t = 11;
- pub const RLIMIT_MSGQUEUE: ::__rlimit_resource_t = 12;
- pub const RLIMIT_NICE: ::__rlimit_resource_t = 13;
- pub const RLIMIT_RTPRIO: ::__rlimit_resource_t = 14;
- pub const RLIMIT_RTTIME: ::__rlimit_resource_t = 15;
- #[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
- pub const RLIM_NLIMITS: ::__rlimit_resource_t = 16;
- #[allow(deprecated)]
- #[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
- pub const RLIMIT_NLIMITS: ::__rlimit_resource_t = RLIM_NLIMITS;
-
- } else if #[cfg(target_env = "musl")] {
-
- pub const RLIMIT_CPU: ::c_int = 0;
- pub const RLIMIT_FSIZE: ::c_int = 1;
- pub const RLIMIT_DATA: ::c_int = 2;
- pub const RLIMIT_STACK: ::c_int = 3;
- pub const RLIMIT_CORE: ::c_int = 4;
- pub const RLIMIT_RSS: ::c_int = 5;
- pub const RLIMIT_NPROC: ::c_int = 6;
- pub const RLIMIT_NOFILE: ::c_int = 7;
- pub const RLIMIT_MEMLOCK: ::c_int = 8;
- pub const RLIMIT_AS: ::c_int = 9;
- pub const RLIMIT_LOCKS: ::c_int = 10;
- pub const RLIMIT_SIGPENDING: ::c_int = 11;
- pub const RLIMIT_MSGQUEUE: ::c_int = 12;
- pub const RLIMIT_NICE: ::c_int = 13;
- pub const RLIMIT_RTPRIO: ::c_int = 14;
- pub const RLIMIT_RTTIME: ::c_int = 15;
- #[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
- pub const RLIM_NLIMITS: ::c_int = 15;
- #[allow(deprecated)]
- #[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
- pub const RLIMIT_NLIMITS: ::c_int = RLIM_NLIMITS;
- }
-}
-pub const RLIM_INFINITY: ::rlim_t = !0;
diff --git a/vendor/libc/src/unix/linux_like/linux/arch/sparc/mod.rs b/vendor/libc/src/unix/linux_like/linux/arch/sparc/mod.rs
deleted file mode 100644
index fce466c..0000000
--- a/vendor/libc/src/unix/linux_like/linux/arch/sparc/mod.rs
+++ /dev/null
@@ -1,259 +0,0 @@
-s! {
- pub struct termios2 {
- pub c_iflag: ::tcflag_t,
- pub c_oflag: ::tcflag_t,
- pub c_cflag: ::tcflag_t,
- pub c_lflag: ::tcflag_t,
- pub c_line: ::cc_t,
- pub c_cc: [::cc_t; 19],
- pub c_ispeed: ::speed_t,
- pub c_ospeed: ::speed_t,
- }
-}
-
-// arch/sparc/include/uapi/asm/socket.h
-pub const SOL_SOCKET: ::c_int = 0xffff;
-
-// Defined in unix/linux_like/mod.rs
-// pub const SO_DEBUG: ::c_int = 0x0001;
-pub const SO_PASSCRED: ::c_int = 0x0002;
-pub const SO_REUSEADDR: ::c_int = 0x0004;
-pub const SO_KEEPALIVE: ::c_int = 0x0008;
-pub const SO_DONTROUTE: ::c_int = 0x0010;
-pub const SO_BROADCAST: ::c_int = 0x0020;
-pub const SO_PEERCRED: ::c_int = 0x0040;
-pub const SO_LINGER: ::c_int = 0x0080;
-pub const SO_OOBINLINE: ::c_int = 0x0100;
-pub const SO_REUSEPORT: ::c_int = 0x0200;
-pub const SO_BSDCOMPAT: ::c_int = 0x0400;
-pub const SO_RCVLOWAT: ::c_int = 0x0800;
-pub const SO_SNDLOWAT: ::c_int = 0x1000;
-pub const SO_RCVTIMEO: ::c_int = 0x2000;
-pub const SO_SNDTIMEO: ::c_int = 0x4000;
-// pub const SO_RCVTIMEO_OLD: ::c_int = 0x2000;
-// pub const SO_SNDTIMEO_OLD: ::c_int = 0x4000;
-pub const SO_ACCEPTCONN: ::c_int = 0x8000;
-pub const SO_SNDBUF: ::c_int = 0x1001;
-pub const SO_RCVBUF: ::c_int = 0x1002;
-pub const SO_SNDBUFFORCE: ::c_int = 0x100a;
-pub const SO_RCVBUFFORCE: ::c_int = 0x100b;
-pub const SO_ERROR: ::c_int = 0x1007;
-pub const SO_TYPE: ::c_int = 0x1008;
-pub const SO_PROTOCOL: ::c_int = 0x1028;
-pub const SO_DOMAIN: ::c_int = 0x1029;
-pub const SO_NO_CHECK: ::c_int = 0x000b;
-pub const SO_PRIORITY: ::c_int = 0x000c;
-pub const SO_BINDTODEVICE: ::c_int = 0x000d;
-pub const SO_ATTACH_FILTER: ::c_int = 0x001a;
-pub const SO_DETACH_FILTER: ::c_int = 0x001b;
-pub const SO_GET_FILTER: ::c_int = SO_ATTACH_FILTER;
-pub const SO_PEERNAME: ::c_int = 0x001c;
-pub const SO_PEERSEC: ::c_int = 0x001e;
-pub const SO_PASSSEC: ::c_int = 0x001f;
-pub const SO_MARK: ::c_int = 0x0022;
-pub const SO_RXQ_OVFL: ::c_int = 0x0024;
-pub const SO_WIFI_STATUS: ::c_int = 0x0025;
-pub const SCM_WIFI_STATUS: ::c_int = SO_WIFI_STATUS;
-pub const SO_PEEK_OFF: ::c_int = 0x0026;
-pub const SO_NOFCS: ::c_int = 0x0027;
-pub const SO_LOCK_FILTER: ::c_int = 0x0028;
-pub const SO_SELECT_ERR_QUEUE: ::c_int = 0x0029;
-pub const SO_BUSY_POLL: ::c_int = 0x0030;
-pub const SO_MAX_PACING_RATE: ::c_int = 0x0031;
-pub const SO_BPF_EXTENSIONS: ::c_int = 0x0032;
-pub const SO_INCOMING_CPU: ::c_int = 0x0033;
-pub const SO_ATTACH_BPF: ::c_int = 0x0034;
-pub const SO_DETACH_BPF: ::c_int = SO_DETACH_FILTER;
-pub const SO_ATTACH_REUSEPORT_CBPF: ::c_int = 0x0035;
-pub const SO_ATTACH_REUSEPORT_EBPF: ::c_int = 0x0036;
-pub const SO_CNX_ADVICE: ::c_int = 0x0037;
-pub const SCM_TIMESTAMPING_OPT_STATS: ::c_int = 0x0038;
-pub const SO_MEMINFO: ::c_int = 0x0039;
-pub const SO_INCOMING_NAPI_ID: ::c_int = 0x003a;
-pub const SO_COOKIE: ::c_int = 0x003b;
-pub const SCM_TIMESTAMPING_PKTINFO: ::c_int = 0x003c;
-pub const SO_PEERGROUPS: ::c_int = 0x003d;
-pub const SO_ZEROCOPY: ::c_int = 0x003e;
-pub const SO_TXTIME: ::c_int = 0x003f;
-pub const SCM_TXTIME: ::c_int = SO_TXTIME;
-pub const SO_BINDTOIFINDEX: ::c_int = 0x0041;
-pub const SO_SECURITY_AUTHENTICATION: ::c_int = 0x5001;
-pub const SO_SECURITY_ENCRYPTION_TRANSPORT: ::c_int = 0x5002;
-pub const SO_SECURITY_ENCRYPTION_NETWORK: ::c_int = 0x5004;
-pub const SO_TIMESTAMP: ::c_int = 0x001d;
-pub const SO_TIMESTAMPNS: ::c_int = 0x0021;
-pub const SO_TIMESTAMPING: ::c_int = 0x0023;
-// pub const SO_TIMESTAMP_OLD: ::c_int = 0x001d;
-// pub const SO_TIMESTAMPNS_OLD: ::c_int = 0x0021;
-// pub const SO_TIMESTAMPING_OLD: ::c_int = 0x0023;
-// pub const SO_TIMESTAMP_NEW: ::c_int = 0x0046;
-// pub const SO_TIMESTAMPNS_NEW: ::c_int = 0x0042;
-// pub const SO_TIMESTAMPING_NEW: ::c_int = 0x0043;
-// pub const SO_RCVTIMEO_NEW: ::c_int = 0x0044;
-// pub const SO_SNDTIMEO_NEW: ::c_int = 0x0045;
-// pub const SO_DETACH_REUSEPORT_BPF: ::c_int = 0x0047;
-// pub const SO_PREFER_BUSY_POLL: ::c_int = 0x0048;
-// pub const SO_BUSY_POLL_BUDGET: ::c_int = 0x0049;
-
-// Defined in unix/linux_like/mod.rs
-// pub const SCM_TIMESTAMP: ::c_int = SO_TIMESTAMP;
-pub const SCM_TIMESTAMPNS: ::c_int = SO_TIMESTAMPNS;
-pub const SCM_TIMESTAMPING: ::c_int = SO_TIMESTAMPING;
-
-// Ioctl Constants
-
-pub const TCGETS: ::Ioctl = 0x40245408;
-pub const TCSETS: ::Ioctl = 0x80245409;
-pub const TCSETSW: ::Ioctl = 0x8024540a;
-pub const TCSETSF: ::Ioctl = 0x8024540b;
-pub const TCGETA: ::Ioctl = 0x40125401;
-pub const TCSETA: ::Ioctl = 0x80125402;
-pub const TCSETAW: ::Ioctl = 0x80125403;
-pub const TCSETAF: ::Ioctl = 0x80125404;
-pub const TCSBRK: ::Ioctl = 0x20005405;
-pub const TCXONC: ::Ioctl = 0x20005406;
-pub const TCFLSH: ::Ioctl = 0x20005407;
-pub const TIOCEXCL: ::Ioctl = 0x2000740d;
-pub const TIOCNXCL: ::Ioctl = 0x2000740e;
-pub const TIOCSCTTY: ::Ioctl = 0x20007484;
-pub const TIOCGPGRP: ::Ioctl = 0x40047483;
-pub const TIOCSPGRP: ::Ioctl = 0x80047482;
-pub const TIOCOUTQ: ::Ioctl = 0x40047473;
-pub const TIOCSTI: ::Ioctl = 0x80017472;
-pub const TIOCGWINSZ: ::Ioctl = 0x40087468;
-pub const TIOCSWINSZ: ::Ioctl = 0x80087467;
-pub const TIOCMGET: ::Ioctl = 0x4004746a;
-pub const TIOCMBIS: ::Ioctl = 0x8004746c;
-pub const TIOCMBIC: ::Ioctl = 0x8004746b;
-pub const TIOCMSET: ::Ioctl = 0x8004746d;
-pub const TIOCGSOFTCAR: ::Ioctl = 0x40047464;
-pub const TIOCSSOFTCAR: ::Ioctl = 0x80047465;
-pub const FIONREAD: ::Ioctl = 0x4004667f;
-pub const TIOCINQ: ::Ioctl = FIONREAD;
-pub const TIOCLINUX: ::Ioctl = 0x541C;
-pub const TIOCCONS: ::Ioctl = 0x20007424;
-pub const TIOCGSERIAL: ::Ioctl = 0x541E;
-pub const TIOCSSERIAL: ::Ioctl = 0x541F;
-pub const TIOCPKT: ::Ioctl = 0x80047470;
-pub const FIONBIO: ::Ioctl = 0x8004667e;
-pub const TIOCNOTTY: ::Ioctl = 0x20007471;
-pub const TIOCSETD: ::Ioctl = 0x80047401;
-pub const TIOCGETD: ::Ioctl = 0x40047400;
-pub const TCSBRKP: ::Ioctl = 0x5425;
-pub const TIOCSBRK: ::Ioctl = 0x2000747b;
-pub const TIOCCBRK: ::Ioctl = 0x2000747a;
-pub const TIOCGSID: ::Ioctl = 0x40047485;
-pub const TCGETS2: ::Ioctl = 0x402c540c;
-pub const TCSETS2: ::Ioctl = 0x802c540d;
-pub const TCSETSW2: ::Ioctl = 0x802c540e;
-pub const TCSETSF2: ::Ioctl = 0x802c540f;
-pub const TIOCGPTN: ::Ioctl = 0x40047486;
-pub const TIOCSPTLCK: ::Ioctl = 0x80047487;
-pub const TIOCGDEV: ::Ioctl = 0x40045432;
-pub const TIOCSIG: ::Ioctl = 0x80047488;
-pub const TIOCVHANGUP: ::Ioctl = 0x20005437;
-pub const TIOCGPKT: ::Ioctl = 0x40045438;
-pub const TIOCGPTLCK: ::Ioctl = 0x40045439;
-pub const TIOCGEXCL: ::Ioctl = 0x40045440;
-pub const TIOCGPTPEER: ::Ioctl = 0x20007489;
-pub const FIONCLEX: ::Ioctl = 0x20006602;
-pub const FIOCLEX: ::Ioctl = 0x20006601;
-pub const TIOCSERCONFIG: ::Ioctl = 0x5453;
-pub const TIOCSERGWILD: ::Ioctl = 0x5454;
-pub const TIOCSERSWILD: ::Ioctl = 0x5455;
-pub const TIOCGLCKTRMIOS: ::Ioctl = 0x5456;
-pub const TIOCSLCKTRMIOS: ::Ioctl = 0x5457;
-pub const TIOCSERGSTRUCT: ::Ioctl = 0x5458;
-pub const TIOCSERGETLSR: ::Ioctl = 0x5459;
-pub const TIOCSERGETMULTI: ::Ioctl = 0x545A;
-pub const TIOCSERSETMULTI: ::Ioctl = 0x545B;
-pub const TIOCMIWAIT: ::Ioctl = 0x545C;
-pub const TIOCGICOUNT: ::Ioctl = 0x545D;
-pub const TIOCSTART: ::Ioctl = 0x2000746e;
-pub const TIOCSTOP: ::Ioctl = 0x2000746f;
-pub const BLKIOMIN: ::Ioctl = 0x20001278;
-pub const BLKIOOPT: ::Ioctl = 0x20001279;
-pub const BLKSSZGET: ::Ioctl = 0x20001268;
-pub const BLKPBSZGET: ::Ioctl = 0x2000127B;
-
-//pub const FIOASYNC: ::Ioctl = 0x4004667d;
-//pub const FIOQSIZE: ::Ioctl = ;
-//pub const TIOCGISO7816: ::Ioctl = 0x40285443;
-//pub const TIOCSISO7816: ::Ioctl = 0xc0285444;
-//pub const TIOCGRS485: ::Ioctl = 0x40205441;
-//pub const TIOCSRS485: ::Ioctl = 0xc0205442;
-
-pub const TIOCM_LE: ::c_int = 0x001;
-pub const TIOCM_DTR: ::c_int = 0x002;
-pub const TIOCM_RTS: ::c_int = 0x004;
-pub const TIOCM_ST: ::c_int = 0x008;
-pub const TIOCM_SR: ::c_int = 0x010;
-pub const TIOCM_CTS: ::c_int = 0x020;
-pub const TIOCM_CAR: ::c_int = 0x040;
-pub const TIOCM_CD: ::c_int = TIOCM_CAR;
-pub const TIOCM_RNG: ::c_int = 0x080;
-pub const TIOCM_RI: ::c_int = TIOCM_RNG;
-pub const TIOCM_DSR: ::c_int = 0x100;
-
-pub const BOTHER: ::speed_t = 0x1000;
-pub const IBSHIFT: ::tcflag_t = 16;
-
-// RLIMIT Constants
-
-pub const RLIMIT_CPU: ::__rlimit_resource_t = 0;
-pub const RLIMIT_FSIZE: ::__rlimit_resource_t = 1;
-pub const RLIMIT_DATA: ::__rlimit_resource_t = 2;
-pub const RLIMIT_STACK: ::__rlimit_resource_t = 3;
-pub const RLIMIT_CORE: ::__rlimit_resource_t = 4;
-pub const RLIMIT_RSS: ::__rlimit_resource_t = 5;
-pub const RLIMIT_NOFILE: ::__rlimit_resource_t = 6;
-pub const RLIMIT_NPROC: ::__rlimit_resource_t = 7;
-pub const RLIMIT_MEMLOCK: ::__rlimit_resource_t = 8;
-pub const RLIMIT_AS: ::__rlimit_resource_t = 9;
-pub const RLIMIT_LOCKS: ::__rlimit_resource_t = 10;
-pub const RLIMIT_SIGPENDING: ::__rlimit_resource_t = 11;
-pub const RLIMIT_MSGQUEUE: ::__rlimit_resource_t = 12;
-pub const RLIMIT_NICE: ::__rlimit_resource_t = 13;
-pub const RLIMIT_RTPRIO: ::__rlimit_resource_t = 14;
-pub const RLIMIT_RTTIME: ::__rlimit_resource_t = 15;
-#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
-pub const RLIM_NLIMITS: ::__rlimit_resource_t = 16;
-#[allow(deprecated)]
-#[deprecated(since = "0.2.64", note = "Not stable across OS versions")]
-pub const RLIMIT_NLIMITS: ::__rlimit_resource_t = RLIM_NLIMITS;
-
-cfg_if! {
- if #[cfg(target_arch = "sparc64")] {
- pub const RLIM_INFINITY: ::rlim_t = !0;
- } else if #[cfg(target_arch = "sparc")] {
- pub const RLIM_INFINITY: ::rlim_t = 0x7fffffff;
- }
-}
-
-cfg_if! {
- // Those type are constructed using the _IOC macro
- // DD-SS_SSSS_SSSS_SSSS-TTTT_TTTT-NNNN_NNNN
- // where D stands for direction (either None (00), Read (01) or Write (11))
- // where S stands for size (int, long, struct...)
- // where T stands for type ('f','v','X'...)
- // where N stands for NR (NumbeR)
- if #[cfg(target_arch = "sparc")] {
- pub const FS_IOC_GETFLAGS: ::Ioctl = 0x40046601;
- pub const FS_IOC_SETFLAGS: ::Ioctl = 0x80046602;
- pub const FS_IOC_GETVERSION: ::Ioctl = 0x40047601;
- pub const FS_IOC_SETVERSION: ::Ioctl = 0x80047602;
- pub const FS_IOC32_GETFLAGS: ::Ioctl = 0x40046601;
- pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x80046602;
- pub const FS_IOC32_GETVERSION: ::Ioctl = 0x40047601;
- pub const FS_IOC32_SETVERSION: ::Ioctl = 0x80047602;
- } else if #[cfg(target_arch = "sparc64")] {
- pub const FS_IOC_GETFLAGS: ::Ioctl = 0x40086601;
- pub const FS_IOC_SETFLAGS: ::Ioctl = 0x80086602;
- pub const FS_IOC_GETVERSION: ::Ioctl = 0x40087601;
- pub const FS_IOC_SETVERSION: ::Ioctl = 0x80087602;
- pub const FS_IOC32_GETFLAGS: ::Ioctl = 0x40046601;
- pub const FS_IOC32_SETFLAGS: ::Ioctl = 0x80046602;
- pub const FS_IOC32_GETVERSION: ::Ioctl = 0x40047601;
- pub const FS_IOC32_SETVERSION: ::Ioctl = 0x80047602;
- }
-}