1 pub type pthread_t = ::c_ulong; 2 3 pub const SFD_CLOEXEC: ::c_int = 0x080000; 4 5 pub const NCCS: usize = 32; 6 7 pub const O_TRUNC: ::c_int = 512; 8 9 pub const O_CLOEXEC: ::c_int = 0x80000; 10 11 pub const EBFONT: ::c_int = 59; 12 pub const ENOSTR: ::c_int = 60; 13 pub const ENODATA: ::c_int = 61; 14 pub const ETIME: ::c_int = 62; 15 pub const ENOSR: ::c_int = 63; 16 pub const ENONET: ::c_int = 64; 17 pub const ENOPKG: ::c_int = 65; 18 pub const EREMOTE: ::c_int = 66; 19 pub const ENOLINK: ::c_int = 67; 20 pub const EADV: ::c_int = 68; 21 pub const ESRMNT: ::c_int = 69; 22 pub const ECOMM: ::c_int = 70; 23 pub const EPROTO: ::c_int = 71; 24 pub const EDOTDOT: ::c_int = 73; 25 26 pub const SA_NODEFER: ::c_int = 0x40000000; 27 pub const SA_RESETHAND: ::c_int = 0x80000000; 28 pub const SA_RESTART: ::c_int = 0x10000000; 29 pub const SA_NOCLDSTOP: ::c_int = 0x00000001; 30 31 pub const EPOLL_CLOEXEC: ::c_int = 0x80000; 32 33 pub const EFD_CLOEXEC: ::c_int = 0x80000; 34 35 pub const BUFSIZ: ::c_uint = 4096; 36 pub const TMP_MAX: ::c_uint = 238328; 37 pub const FOPEN_MAX: ::c_uint = 16; 38 pub const POSIX_FADV_DONTNEED: ::c_int = 4; 39 pub const POSIX_FADV_NOREUSE: ::c_int = 5; 40 pub const POSIX_MADV_DONTNEED: ::c_int = 4; 41 pub const _SC_2_C_VERSION: ::c_int = 96; 42 pub const O_ACCMODE: ::c_int = 3; 43 pub const O_DIRECT: ::c_int = 0x8000; 44 pub const O_DIRECTORY: ::c_int = 0x10000; 45 pub const O_NOFOLLOW: ::c_int = 0x20000; 46 pub const ST_RELATIME: ::c_ulong = 4096; 47 pub const NI_MAXHOST: ::socklen_t = 1025; 48 49 pub const RLIMIT_NOFILE: ::c_int = 5; 50 pub const RLIMIT_AS: ::c_int = 6; 51 pub const RLIMIT_RSS: ::c_int = 7; 52 pub const RLIMIT_NPROC: ::c_int = 8; 53 pub const RLIMIT_MEMLOCK: ::c_int = 9; 54 pub const RLIMIT_NLIMITS: ::c_int = 15; 55 56 pub const O_APPEND: ::c_int = 8; 57 pub const O_CREAT: ::c_int = 256; 58 pub const O_EXCL: ::c_int = 1024; 59 pub const O_NOCTTY: ::c_int = 2048; 60 pub const O_NONBLOCK: ::c_int = 128; 61 pub const O_SYNC: ::c_int = 0x10; 62 pub const O_RSYNC: ::c_int = 0x10; 63 pub const O_DSYNC: ::c_int = 0x10; 64 pub const O_FSYNC: ::c_int = 0x10; 65 pub const O_ASYNC: ::c_int = 0x1000; 66 pub const O_NDELAY: ::c_int = 0x80; 67 68 pub const SOCK_NONBLOCK: ::c_int = 128; 69 70 pub const EDEADLK: ::c_int = 45; 71 pub const ENAMETOOLONG: ::c_int = 78; 72 pub const ENOLCK: ::c_int = 46; 73 pub const ENOSYS: ::c_int = 89; 74 pub const ENOTEMPTY: ::c_int = 93; 75 pub const ELOOP: ::c_int = 90; 76 pub const ENOMSG: ::c_int = 35; 77 pub const EIDRM: ::c_int = 36; 78 pub const ECHRNG: ::c_int = 37; 79 pub const EL2NSYNC: ::c_int = 38; 80 pub const EL3HLT: ::c_int = 39; 81 pub const EL3RST: ::c_int = 40; 82 pub const ELNRNG: ::c_int = 41; 83 pub const EUNATCH: ::c_int = 42; 84 pub const ENOCSI: ::c_int = 43; 85 pub const EL2HLT: ::c_int = 44; 86 pub const EBADE: ::c_int = 50; 87 pub const EBADR: ::c_int = 51; 88 pub const EXFULL: ::c_int = 52; 89 pub const ENOANO: ::c_int = 53; 90 pub const EBADRQC: ::c_int = 54; 91 pub const EBADSLT: ::c_int = 55; 92 pub const EDEADLOCK: ::c_int = 56; 93 pub const EMULTIHOP: ::c_int = 74; 94 pub const EOVERFLOW: ::c_int = 79; 95 pub const ENOTUNIQ: ::c_int = 80; 96 pub const EBADFD: ::c_int = 81; 97 pub const EBADMSG: ::c_int = 77; 98 pub const EREMCHG: ::c_int = 82; 99 pub const ELIBACC: ::c_int = 83; 100 pub const ELIBBAD: ::c_int = 84; 101 pub const ELIBSCN: ::c_int = 85; 102 pub const ELIBMAX: ::c_int = 86; 103 pub const ELIBEXEC: ::c_int = 87; 104 pub const EILSEQ: ::c_int = 88; 105 pub const ERESTART: ::c_int = 91; 106 pub const ESTRPIPE: ::c_int = 92; 107 pub const EUSERS: ::c_int = 94; 108 pub const ENOTSOCK: ::c_int = 95; 109 pub const EDESTADDRREQ: ::c_int = 96; 110 pub const EMSGSIZE: ::c_int = 97; 111 pub const EPROTOTYPE: ::c_int = 98; 112 pub const ENOPROTOOPT: ::c_int = 99; 113 pub const EPROTONOSUPPORT: ::c_int = 120; 114 pub const ESOCKTNOSUPPORT: ::c_int = 121; 115 pub const EOPNOTSUPP: ::c_int = 122; 116 pub const ENOTSUP: ::c_int = EOPNOTSUPP; 117 pub const EPFNOSUPPORT: ::c_int = 123; 118 pub const EAFNOSUPPORT: ::c_int = 124; 119 pub const EADDRINUSE: ::c_int = 125; 120 pub const EADDRNOTAVAIL: ::c_int = 126; 121 pub const ENETDOWN: ::c_int = 127; 122 pub const ENETUNREACH: ::c_int = 128; 123 pub const ENETRESET: ::c_int = 129; 124 pub const ECONNABORTED: ::c_int = 130; 125 pub const ECONNRESET: ::c_int = 131; 126 pub const ENOBUFS: ::c_int = 132; 127 pub const EISCONN: ::c_int = 133; 128 pub const ENOTCONN: ::c_int = 134; 129 pub const ESHUTDOWN: ::c_int = 143; 130 pub const ETOOMANYREFS: ::c_int = 144; 131 pub const ETIMEDOUT: ::c_int = 145; 132 pub const ECONNREFUSED: ::c_int = 146; 133 pub const EHOSTDOWN: ::c_int = 147; 134 pub const EHOSTUNREACH: ::c_int = 148; 135 pub const EALREADY: ::c_int = 149; 136 pub const EINPROGRESS: ::c_int = 150; 137 pub const ESTALE: ::c_int = 151; 138 pub const EUCLEAN: ::c_int = 135; 139 pub const ENOTNAM: ::c_int = 137; 140 pub const ENAVAIL: ::c_int = 138; 141 pub const EISNAM: ::c_int = 139; 142 pub const EREMOTEIO: ::c_int = 140; 143 pub const EDQUOT: ::c_int = 1133; 144 pub const ENOMEDIUM: ::c_int = 159; 145 pub const EMEDIUMTYPE: ::c_int = 160; 146 pub const ECANCELED: ::c_int = 158; 147 pub const ENOKEY: ::c_int = 161; 148 pub const EKEYEXPIRED: ::c_int = 162; 149 pub const EKEYREVOKED: ::c_int = 163; 150 pub const EKEYREJECTED: ::c_int = 164; 151 pub const EOWNERDEAD: ::c_int = 165; 152 pub const ENOTRECOVERABLE: ::c_int = 166; 153 pub const ERFKILL: ::c_int = 167; 154 155 pub const MAP_NORESERVE: ::c_int = 0x400; 156 pub const MAP_ANON: ::c_int = 0x800; 157 pub const MAP_ANONYMOUS: ::c_int = 0x800; 158 pub const MAP_GROWSDOWN: ::c_int = 0x1000; 159 pub const MAP_DENYWRITE: ::c_int = 0x2000; 160 pub const MAP_EXECUTABLE: ::c_int = 0x4000; 161 pub const MAP_LOCKED: ::c_int = 0x8000; 162 pub const MAP_POPULATE: ::c_int = 0x10000; 163 pub const MAP_NONBLOCK: ::c_int = 0x20000; 164 pub const MAP_STACK: ::c_int = 0x40000; 165 166 pub const SOCK_STREAM: ::c_int = 2; 167 pub const SOCK_DGRAM: ::c_int = 1; 168 pub const SOCK_SEQPACKET: ::c_int = 5; 169 170 pub const SOL_SOCKET: ::c_int = 0xffff; 171 172 pub const SO_REUSEADDR: ::c_int = 0x0004; 173 pub const SO_KEEPALIVE: ::c_int = 0x0008; 174 pub const SO_DONTROUTE: ::c_int = 0x0010; 175 pub const SO_BROADCAST: ::c_int = 0x0020; 176 pub const SO_LINGER: ::c_int = 0x0080; 177 pub const SO_OOBINLINE: ::c_int = 0x0100; 178 pub const SO_REUSEPORT: ::c_int = 0x0200; 179 pub const SO_TYPE: ::c_int = 0x1008; 180 pub const SO_STYLE: ::c_int = SO_TYPE; 181 pub const SO_ERROR: ::c_int = 0x1007; 182 pub const SO_SNDBUF: ::c_int = 0x1001; 183 pub const SO_RCVBUF: ::c_int = 0x1002; 184 pub const SO_SNDLOWAT: ::c_int = 0x1003; 185 pub const SO_RCVLOWAT: ::c_int = 0x1004; 186 pub const SO_SNDTIMEO: ::c_int = 0x1005; 187 pub const SO_RCVTIMEO: ::c_int = 0x1006; 188 pub const SO_ACCEPTCONN: ::c_int = 0x1009; 189 pub const SO_PROTOCOL: ::c_int = 0x1028; 190 pub const SO_DOMAIN: ::c_int = 0x1029; 191 pub const SO_NO_CHECK: ::c_int = 11; 192 pub const SO_PRIORITY: ::c_int = 12; 193 pub const SO_BSDCOMPAT: ::c_int = 14; 194 pub const SO_PASSCRED: ::c_int = 17; 195 pub const SO_PEERCRED: ::c_int = 18; 196 pub const SO_SECURITY_AUTHENTICATION: ::c_int = 22; 197 pub const SO_SECURITY_ENCRYPTION_TRANSPORT: ::c_int = 23; 198 pub const SO_SECURITY_ENCRYPTION_NETWORK: ::c_int = 24; 199 pub const SO_BINDTODEVICE: ::c_int = 25; 200 pub const SO_ATTACH_FILTER: ::c_int = 26; 201 pub const SO_DETACH_FILTER: ::c_int = 27; 202 pub const SO_GET_FILTER: ::c_int = SO_ATTACH_FILTER; 203 pub const SO_PEERNAME: ::c_int = 28; 204 pub const SO_TIMESTAMP: ::c_int = 29; 205 pub const SCM_TIMESTAMP: ::c_int = SO_TIMESTAMP; 206 pub const SO_PEERSEC: ::c_int = 30; 207 pub const SO_SNDBUFFORCE: ::c_int = 31; 208 pub const SO_RCVBUFFORCE: ::c_int = 33; 209 pub const SO_PASSSEC: ::c_int = 34; 210 pub const SO_TIMESTAMPNS: ::c_int = 35; 211 pub const SCM_TIMESTAMPNS: ::c_int = SO_TIMESTAMPNS; 212 pub const SO_MARK: ::c_int = 36; 213 pub const SO_TIMESTAMPING: ::c_int = 37; 214 pub const SCM_TIMESTAMPING: ::c_int = SO_TIMESTAMPING; 215 pub const SO_RXQ_OVFL: ::c_int = 40; 216 pub const SO_WIFI_STATUS: ::c_int = 41; 217 pub const SCM_WIFI_STATUS: ::c_int = SO_WIFI_STATUS; 218 pub const SO_PEEK_OFF: ::c_int = 42; 219 pub const SO_NOFCS: ::c_int = 43; 220 pub const SO_LOCK_FILTER: ::c_int = 44; 221 pub const SO_SELECT_ERR_QUEUE: ::c_int = 45; 222 pub const SO_BUSY_POLL: ::c_int = 46; 223 pub const SO_MAX_PACING_RATE: ::c_int = 47; 224 pub const SO_BPF_EXTENSIONS: ::c_int = 48; 225 226 pub const FIOCLEX: ::c_ulong = 0x6601; 227 pub const FIONCLEX: ::c_ulong = 0x6602; 228 pub const FIONBIO: ::c_ulong = 0x667e; 229 230 pub const SA_ONSTACK: ::c_uint = 0x08000000; 231 pub const SA_SIGINFO: ::c_uint = 0x00000008; 232 pub const SA_NOCLDWAIT: ::c_int = 0x00010000; 233 234 pub const SIGCHLD: ::c_int = 18; 235 pub const SIGBUS: ::c_int = 10; 236 pub const SIGTTIN: ::c_int = 26; 237 pub const SIGTTOU: ::c_int = 27; 238 pub const SIGXCPU: ::c_int = 30; 239 pub const SIGXFSZ: ::c_int = 31; 240 pub const SIGVTALRM: ::c_int = 28; 241 pub const SIGPROF: ::c_int = 29; 242 pub const SIGWINCH: ::c_int = 20; 243 pub const SIGUSR1: ::c_int = 16; 244 pub const SIGUSR2: ::c_int = 17; 245 pub const SIGCONT: ::c_int = 25; 246 pub const SIGSTOP: ::c_int = 23; 247 pub const SIGTSTP: ::c_int = 24; 248 pub const SIGURG: ::c_int = 21; 249 pub const SIGIO: ::c_int = 22; 250 pub const SIGSYS: ::c_int = 12; 251 pub const SIGPOLL: ::c_int = 22; 252 pub const SIGPWR: ::c_int = 19; 253 pub const SIG_SETMASK: ::c_int = 3; 254 pub const SIG_BLOCK: ::c_int = 0x1; 255 pub const SIG_UNBLOCK: ::c_int = 0x2; 256 257 pub const POLLRDNORM: ::c_short = 0x040; 258 pub const POLLWRNORM: ::c_short = 0x004; 259 pub const POLLRDBAND: ::c_short = 0x080; 260 pub const POLLWRBAND: ::c_short = 0x100; 261 262 pub const PTHREAD_STACK_MIN: ::size_t = 16384; 263 264 pub const ADFS_SUPER_MAGIC: ::c_long = 0x0000adf5; 265 pub const AFFS_SUPER_MAGIC: ::c_long = 0x0000adff; 266 pub const CODA_SUPER_MAGIC: ::c_long = 0x73757245; 267 pub const CRAMFS_MAGIC: ::c_long = 0x28cd3d45; 268 pub const EFS_SUPER_MAGIC: ::c_long = 0x00414a53; 269 pub const EXT2_SUPER_MAGIC: ::c_long = 0x0000ef53; 270 pub const EXT3_SUPER_MAGIC: ::c_long = 0x0000ef53; 271 pub const EXT4_SUPER_MAGIC: ::c_long = 0x0000ef53; 272 pub const HPFS_SUPER_MAGIC: ::c_long = 0xf995e849; 273 pub const HUGETLBFS_MAGIC: ::c_long = 0x958458f6; 274 pub const ISOFS_SUPER_MAGIC: ::c_long = 0x00009660; 275 pub const JFFS2_SUPER_MAGIC: ::c_long = 0x000072b6; 276 pub const MINIX_SUPER_MAGIC: ::c_long = 0x0000137f; 277 pub const MINIX_SUPER_MAGIC2: ::c_long = 0x0000138f; 278 pub const MINIX2_SUPER_MAGIC: ::c_long = 0x00002468; 279 pub const MINIX2_SUPER_MAGIC2: ::c_long = 0x00002478; 280 pub const MSDOS_SUPER_MAGIC: ::c_long = 0x00004d44; 281 pub const NCP_SUPER_MAGIC: ::c_long = 0x0000564c; 282 pub const NFS_SUPER_MAGIC: ::c_long = 0x00006969; 283 pub const OPENPROM_SUPER_MAGIC: ::c_long = 0x00009fa1; 284 pub const PROC_SUPER_MAGIC: ::c_long = 0x00009fa0; 285 pub const QNX4_SUPER_MAGIC: ::c_long = 0x0000002f; 286 pub const REISERFS_SUPER_MAGIC: ::c_long = 0x52654973; 287 pub const SMB_SUPER_MAGIC: ::c_long = 0x0000517b; 288 pub const TMPFS_MAGIC: ::c_long = 0x01021994; 289 pub const USBDEVICE_SUPER_MAGIC: ::c_long = 0x00009fa2; 290 291 pub const VEOF: usize = 16; 292 pub const VEOL: usize = 17; 293 pub const VEOL2: usize = 6; 294 pub const VMIN: usize = 4; 295 pub const IEXTEN: ::tcflag_t = 0x00000100; 296 pub const TOSTOP: ::tcflag_t = 0x00008000; 297 pub const FLUSHO: ::tcflag_t = 0x00002000; 298 pub const IUTF8: ::tcflag_t = 0x00004000; 299 pub const TCSANOW: ::c_int = 0x540e; 300 pub const TCSADRAIN: ::c_int = 0x540f; 301 pub const TCSAFLUSH: ::c_int = 0x5410; 302 303 pub const CPU_SETSIZE: ::c_int = 0x400; 304 305 pub const PTRACE_TRACEME: ::c_uint = 0; 306 pub const PTRACE_PEEKTEXT: ::c_uint = 1; 307 pub const PTRACE_PEEKDATA: ::c_uint = 2; 308 pub const PTRACE_PEEKUSER: ::c_uint = 3; 309 pub const PTRACE_POKETEXT: ::c_uint = 4; 310 pub const PTRACE_POKEDATA: ::c_uint = 5; 311 pub const PTRACE_POKEUSER: ::c_uint = 6; 312 pub const PTRACE_CONT: ::c_uint = 7; 313 pub const PTRACE_KILL: ::c_uint = 8; 314 pub const PTRACE_SINGLESTEP: ::c_uint = 9; 315 pub const PTRACE_ATTACH: ::c_uint = 16; 316 pub const PTRACE_DETACH: ::c_uint = 17; 317 pub const PTRACE_SYSCALL: ::c_uint = 24; 318 pub const PTRACE_SETOPTIONS: ::c_uint = 0x4200; 319 pub const PTRACE_GETEVENTMSG: ::c_uint = 0x4201; 320 pub const PTRACE_GETSIGINFO: ::c_uint = 0x4202; 321 pub const PTRACE_SETSIGINFO: ::c_uint = 0x4203; 322 pub const PTRACE_GETFPREGS: ::c_uint = 14; 323 pub const PTRACE_SETFPREGS: ::c_uint = 15; 324 pub const PTRACE_GETFPXREGS: ::c_uint = 18; 325 pub const PTRACE_SETFPXREGS: ::c_uint = 19; 326 pub const PTRACE_GETREGS: ::c_uint = 12; 327 pub const PTRACE_SETREGS: ::c_uint = 13; 328 329 pub const EFD_NONBLOCK: ::c_int = 0x80; 330 331 pub const F_GETLK: ::c_int = 14; 332 pub const F_GETOWN: ::c_int = 23; 333 pub const F_SETOWN: ::c_int = 24; 334 pub const F_SETLK: ::c_int = 6; 335 pub const F_SETLKW: ::c_int = 7; 336 337 pub const SFD_NONBLOCK: ::c_int = 0x80; 338 339 pub const TCGETS: ::c_ulong = 0x540d; 340 pub const TCSETS: ::c_ulong = 0x540e; 341 pub const TCSETSW: ::c_ulong = 0x540f; 342 pub const TCSETSF: ::c_ulong = 0x5410; 343 pub const TCGETA: ::c_ulong = 0x5401; 344 pub const TCSETA: ::c_ulong = 0x5402; 345 pub const TCSETAW: ::c_ulong = 0x5403; 346 pub const TCSETAF: ::c_ulong = 0x5404; 347 pub const TCSBRK: ::c_ulong = 0x5405; 348 pub const TCXONC: ::c_ulong = 0x5406; 349 pub const TCFLSH: ::c_ulong = 0x5407; 350 pub const TIOCGSOFTCAR: ::c_ulong = 0x5481; 351 pub const TIOCSSOFTCAR: ::c_ulong = 0x5482; 352 pub const TIOCINQ: ::c_ulong = 0x467f; 353 pub const TIOCLINUX: ::c_ulong = 0x5483; 354 pub const TIOCGSERIAL: ::c_ulong = 0x5484; 355 pub const TIOCEXCL: ::c_ulong = 0x740d; 356 pub const TIOCNXCL: ::c_ulong = 0x740e; 357 pub const TIOCSCTTY: ::c_ulong = 0x5480; 358 pub const TIOCGPGRP: ::c_ulong = 0x40047477; 359 pub const TIOCSPGRP: ::c_ulong = 0x80047476; 360 pub const TIOCOUTQ: ::c_ulong = 0x7472; 361 pub const TIOCSTI: ::c_ulong = 0x5472; 362 pub const TIOCGWINSZ: ::c_ulong = 0x40087468; 363 pub const TIOCSWINSZ: ::c_ulong = 0x80087467; 364 pub const TIOCMGET: ::c_ulong = 0x741d; 365 pub const TIOCMBIS: ::c_ulong = 0x741b; 366 pub const TIOCMBIC: ::c_ulong = 0x741c; 367 pub const TIOCMSET: ::c_ulong = 0x741a; 368 pub const FIONREAD: ::c_ulong = 0x467f; 369 pub const TIOCCONS: ::c_ulong = 0x80047478; 370 371 pub const RTLD_DEEPBIND: ::c_int = 0x10; 372 pub const RTLD_GLOBAL: ::c_int = 0x4; 373 pub const RTLD_NOLOAD: ::c_int = 0x8; 374 375 pub const LINUX_REBOOT_MAGIC1: ::c_int = 0xfee1dead; 376 pub const LINUX_REBOOT_MAGIC2: ::c_int = 672274793; 377 pub const LINUX_REBOOT_MAGIC2A: ::c_int = 85072278; 378 pub const LINUX_REBOOT_MAGIC2B: ::c_int = 369367448; 379 pub const LINUX_REBOOT_MAGIC2C: ::c_int = 537993216; 380 381 pub const LINUX_REBOOT_CMD_RESTART: ::c_int = 0x01234567; 382 pub const LINUX_REBOOT_CMD_HALT: ::c_int = 0xCDEF0123; 383 pub const LINUX_REBOOT_CMD_CAD_ON: ::c_int = 0x89ABCDEF; 384 pub const LINUX_REBOOT_CMD_CAD_OFF: ::c_int = 0x00000000; 385 pub const LINUX_REBOOT_CMD_POWER_OFF: ::c_int = 0x4321FEDC; 386 pub const LINUX_REBOOT_CMD_RESTART2: ::c_int = 0xA1B2C3D4; 387 pub const LINUX_REBOOT_CMD_SW_SUSPEND: ::c_int = 0xD000FCE2; 388 pub const LINUX_REBOOT_CMD_KEXEC: ::c_int = 0x45584543; 389 390 pub const MCL_CURRENT: ::c_int = 0x0001; 391 pub const MCL_FUTURE: ::c_int = 0x0002; 392 393 pub const SIGSTKSZ: ::size_t = 8192; 394 pub const CBAUD: ::tcflag_t = 0o0010017; 395 pub const TAB1: ::tcflag_t = 0x00000800; 396 pub const TAB2: ::tcflag_t = 0x00001000; 397 pub const TAB3: ::tcflag_t = 0x00001800; 398 pub const CR1: ::tcflag_t = 0x00000200; 399 pub const CR2: ::tcflag_t = 0x00000400; 400 pub const CR3: ::tcflag_t = 0x00000600; 401 pub const FF1: ::tcflag_t = 0x00008000; 402 pub const BS1: ::tcflag_t = 0x00002000; 403 pub const VT1: ::tcflag_t = 0x00004000; 404 pub const VWERASE: usize = 14; 405 pub const VREPRINT: usize = 12; 406 pub const VSUSP: usize = 10; 407 pub const VSTART: usize = 8; 408 pub const VSTOP: usize = 9; 409 pub const VDISCARD: usize = 13; 410 pub const VTIME: usize = 5; 411 pub const IXON: ::tcflag_t = 0x00000400; 412 pub const IXOFF: ::tcflag_t = 0x00001000; 413 pub const ONLCR: ::tcflag_t = 0x4; 414 pub const CSIZE: ::tcflag_t = 0x00000030; 415 pub const CS6: ::tcflag_t = 0x00000010; 416 pub const CS7: ::tcflag_t = 0x00000020; 417 pub const CS8: ::tcflag_t = 0x00000030; 418 pub const CSTOPB: ::tcflag_t = 0x00000040; 419 pub const CREAD: ::tcflag_t = 0x00000080; 420 pub const PARENB: ::tcflag_t = 0x00000100; 421 pub const PARODD: ::tcflag_t = 0x00000200; 422 pub const HUPCL: ::tcflag_t = 0x00000400; 423 pub const CLOCAL: ::tcflag_t = 0x00000800; 424 pub const ECHOKE: ::tcflag_t = 0x00000800; 425 pub const ECHOE: ::tcflag_t = 0x00000010; 426 pub const ECHOK: ::tcflag_t = 0x00000020; 427 pub const ECHONL: ::tcflag_t = 0x00000040; 428 pub const ECHOPRT: ::tcflag_t = 0x00000400; 429 pub const ECHOCTL: ::tcflag_t = 0x00000200; 430 pub const ISIG: ::tcflag_t = 0x00000001; 431 pub const ICANON: ::tcflag_t = 0x00000002; 432 pub const PENDIN: ::tcflag_t = 0x00004000; 433 pub const NOFLSH: ::tcflag_t = 0x00000080; 434 435 pub const B0: ::speed_t = 0o000000; 436 pub const B50: ::speed_t = 0o000001; 437 pub const B75: ::speed_t = 0o000002; 438 pub const B110: ::speed_t = 0o000003; 439 pub const B134: ::speed_t = 0o000004; 440 pub const B150: ::speed_t = 0o000005; 441 pub const B200: ::speed_t = 0o000006; 442 pub const B300: ::speed_t = 0o000007; 443 pub const B600: ::speed_t = 0o000010; 444 pub const B1200: ::speed_t = 0o000011; 445 pub const B1800: ::speed_t = 0o000012; 446 pub const B2400: ::speed_t = 0o000013; 447 pub const B4800: ::speed_t = 0o000014; 448 pub const B9600: ::speed_t = 0o000015; 449 pub const B19200: ::speed_t = 0o000016; 450 pub const B38400: ::speed_t = 0o000017; 451 pub const EXTA: ::speed_t = B19200; 452 pub const EXTB: ::speed_t = B38400; 453 pub const B57600: ::speed_t = 0o010001; 454 pub const B115200: ::speed_t = 0o010002; 455 pub const B230400: ::speed_t = 0o010003; 456 pub const B460800: ::speed_t = 0o010004; 457 pub const B500000: ::speed_t = 0o010005; 458 pub const B576000: ::speed_t = 0o010006; 459 pub const B921600: ::speed_t = 0o010007; 460 pub const B1000000: ::speed_t = 0o010010; 461 pub const B1152000: ::speed_t = 0o010011; 462 pub const B1500000: ::speed_t = 0o010012; 463 pub const B2000000: ::speed_t = 0o010013; 464 pub const B2500000: ::speed_t = 0o010014; 465 pub const B3000000: ::speed_t = 0o010015; 466 pub const B3500000: ::speed_t = 0o010016; 467 pub const B4000000: ::speed_t = 0o010017; 468 469 cfg_if! { 470 if #[cfg(target_arch = "mips")] { 471 mod mips32; 472 pub use self::mips32::*; 473 } else if #[cfg(target_arch = "mips64")] { 474 mod mips64; 475 pub use self::mips64::*; 476 } else { 477 // Unknown target_arch 478 } 479 } 480