1 s! { 2 pub struct termios2 { 3 pub c_iflag: ::tcflag_t, 4 pub c_oflag: ::tcflag_t, 5 pub c_cflag: ::tcflag_t, 6 pub c_lflag: ::tcflag_t, 7 pub c_line: ::cc_t, 8 pub c_cc: [::cc_t; 19], 9 pub c_ispeed: ::speed_t, 10 pub c_ospeed: ::speed_t, 11 } 12 } 13 14 // arch/sparc/include/uapi/asm/socket.h 15 pub const SOL_SOCKET: ::c_int = 0xffff; 16 17 // Defined in unix/linux_like/mod.rs 18 // pub const SO_DEBUG: ::c_int = 0x0001; 19 pub const SO_PASSCRED: ::c_int = 0x0002; 20 pub const SO_REUSEADDR: ::c_int = 0x0004; 21 pub const SO_KEEPALIVE: ::c_int = 0x0008; 22 pub const SO_DONTROUTE: ::c_int = 0x0010; 23 pub const SO_BROADCAST: ::c_int = 0x0020; 24 pub const SO_PEERCRED: ::c_int = 0x0040; 25 pub const SO_LINGER: ::c_int = 0x0080; 26 pub const SO_OOBINLINE: ::c_int = 0x0100; 27 pub const SO_REUSEPORT: ::c_int = 0x0200; 28 pub const SO_BSDCOMPAT: ::c_int = 0x0400; 29 pub const SO_RCVLOWAT: ::c_int = 0x0800; 30 pub const SO_SNDLOWAT: ::c_int = 0x1000; 31 pub const SO_RCVTIMEO: ::c_int = 0x2000; 32 pub const SO_SNDTIMEO: ::c_int = 0x4000; 33 // pub const SO_RCVTIMEO_OLD: ::c_int = 0x2000; 34 // pub const SO_SNDTIMEO_OLD: ::c_int = 0x4000; 35 pub const SO_ACCEPTCONN: ::c_int = 0x8000; 36 pub const SO_SNDBUF: ::c_int = 0x1001; 37 pub const SO_RCVBUF: ::c_int = 0x1002; 38 pub const SO_SNDBUFFORCE: ::c_int = 0x100a; 39 pub const SO_RCVBUFFORCE: ::c_int = 0x100b; 40 pub const SO_ERROR: ::c_int = 0x1007; 41 pub const SO_TYPE: ::c_int = 0x1008; 42 pub const SO_PROTOCOL: ::c_int = 0x1028; 43 pub const SO_DOMAIN: ::c_int = 0x1029; 44 pub const SO_NO_CHECK: ::c_int = 0x000b; 45 pub const SO_PRIORITY: ::c_int = 0x000c; 46 pub const SO_BINDTODEVICE: ::c_int = 0x000d; 47 pub const SO_ATTACH_FILTER: ::c_int = 0x001a; 48 pub const SO_DETACH_FILTER: ::c_int = 0x001b; 49 pub const SO_GET_FILTER: ::c_int = SO_ATTACH_FILTER; 50 pub const SO_PEERNAME: ::c_int = 0x001c; 51 pub const SO_PEERSEC: ::c_int = 0x001e; 52 pub const SO_PASSSEC: ::c_int = 0x001f; 53 pub const SO_MARK: ::c_int = 0x0022; 54 pub const SO_RXQ_OVFL: ::c_int = 0x0024; 55 pub const SO_WIFI_STATUS: ::c_int = 0x0025; 56 pub const SCM_WIFI_STATUS: ::c_int = SO_WIFI_STATUS; 57 pub const SO_PEEK_OFF: ::c_int = 0x0026; 58 pub const SO_NOFCS: ::c_int = 0x0027; 59 pub const SO_LOCK_FILTER: ::c_int = 0x0028; 60 pub const SO_SELECT_ERR_QUEUE: ::c_int = 0x0029; 61 pub const SO_BUSY_POLL: ::c_int = 0x0030; 62 pub const SO_MAX_PACING_RATE: ::c_int = 0x0031; 63 pub const SO_BPF_EXTENSIONS: ::c_int = 0x0032; 64 pub const SO_INCOMING_CPU: ::c_int = 0x0033; 65 pub const SO_ATTACH_BPF: ::c_int = 0x0034; 66 pub const SO_DETACH_BPF: ::c_int = SO_DETACH_FILTER; 67 pub const SO_ATTACH_REUSEPORT_CBPF: ::c_int = 0x0035; 68 pub const SO_ATTACH_REUSEPORT_EBPF: ::c_int = 0x0036; 69 pub const SO_CNX_ADVICE: ::c_int = 0x0037; 70 pub const SCM_TIMESTAMPING_OPT_STATS: ::c_int = 0x0038; 71 pub const SO_MEMINFO: ::c_int = 0x0039; 72 pub const SO_INCOMING_NAPI_ID: ::c_int = 0x003a; 73 pub const SO_COOKIE: ::c_int = 0x003b; 74 pub const SCM_TIMESTAMPING_PKTINFO: ::c_int = 0x003c; 75 pub const SO_PEERGROUPS: ::c_int = 0x003d; 76 pub const SO_ZEROCOPY: ::c_int = 0x003e; 77 pub const SO_TXTIME: ::c_int = 0x003f; 78 pub const SCM_TXTIME: ::c_int = SO_TXTIME; 79 pub const SO_BINDTOIFINDEX: ::c_int = 0x0041; 80 pub const SO_SECURITY_AUTHENTICATION: ::c_int = 0x5001; 81 pub const SO_SECURITY_ENCRYPTION_TRANSPORT: ::c_int = 0x5002; 82 pub const SO_SECURITY_ENCRYPTION_NETWORK: ::c_int = 0x5004; 83 pub const SO_TIMESTAMP: ::c_int = 0x001d; 84 pub const SO_TIMESTAMPNS: ::c_int = 0x0021; 85 pub const SO_TIMESTAMPING: ::c_int = 0x0023; 86 // pub const SO_TIMESTAMP_OLD: ::c_int = 0x001d; 87 // pub const SO_TIMESTAMPNS_OLD: ::c_int = 0x0021; 88 // pub const SO_TIMESTAMPING_OLD: ::c_int = 0x0023; 89 // pub const SO_TIMESTAMP_NEW: ::c_int = 0x0046; 90 // pub const SO_TIMESTAMPNS_NEW: ::c_int = 0x0042; 91 // pub const SO_TIMESTAMPING_NEW: ::c_int = 0x0043; 92 // pub const SO_RCVTIMEO_NEW: ::c_int = 0x0044; 93 // pub const SO_SNDTIMEO_NEW: ::c_int = 0x0045; 94 // pub const SO_DETACH_REUSEPORT_BPF: ::c_int = 0x0047; 95 // pub const SO_PREFER_BUSY_POLL: ::c_int = 0x0048; 96 // pub const SO_BUSY_POLL_BUDGET: ::c_int = 0x0049; 97 98 // Defined in unix/linux_like/mod.rs 99 // pub const SCM_TIMESTAMP: ::c_int = SO_TIMESTAMP; 100 pub const SCM_TIMESTAMPNS: ::c_int = SO_TIMESTAMPNS; 101 pub const SCM_TIMESTAMPING: ::c_int = SO_TIMESTAMPING; 102 103 pub const TIOCMGET: ::Ioctl = 0x4004746a; 104 pub const TIOCMBIS: ::Ioctl = 0x8004746c; 105 pub const TIOCMBIC: ::Ioctl = 0x8004746b; 106 pub const TIOCMSET: ::Ioctl = 0x8004746d; 107 pub const TCGETS2: ::Ioctl = 0x402c540c; 108 pub const TCSETS2: ::Ioctl = 0x802c540d; 109 pub const TCSETSW2: ::Ioctl = 0x802c540e; 110 pub const TCSETSF2: ::Ioctl = 0x802c540f; 111 112 pub const TIOCM_LE: ::c_int = 0x001; 113 pub const TIOCM_DTR: ::c_int = 0x002; 114 pub const TIOCM_RTS: ::c_int = 0x004; 115 pub const TIOCM_ST: ::c_int = 0x008; 116 pub const TIOCM_SR: ::c_int = 0x010; 117 pub const TIOCM_CTS: ::c_int = 0x020; 118 pub const TIOCM_CAR: ::c_int = 0x040; 119 pub const TIOCM_CD: ::c_int = TIOCM_CAR; 120 pub const TIOCM_RNG: ::c_int = 0x080; 121 pub const TIOCM_RI: ::c_int = TIOCM_RNG; 122 pub const TIOCM_DSR: ::c_int = 0x100; 123 124 pub const BOTHER: ::speed_t = 0x1000; 125 pub const IBSHIFT: ::tcflag_t = 16; 126