|
60 | 60 | }
|
61 | 61 | }
|
62 | 62 |
|
63 |
| -pub const SYS_pivot_root: ::c_long = 203; |
64 |
| -pub const SYS_gettid: ::c_long = 207; |
65 |
| -pub const SYS_perf_event_open: ::c_long = 319; |
66 |
| -pub const SYS_memfd_create: ::c_long = 360; |
67 |
| - |
68 | 63 | pub const MAP_32BIT: ::c_int = 0x0040;
|
69 |
| -pub const O_DIRECT: ::c_int = 0x4000; |
70 |
| -pub const O_DIRECTORY: ::c_int = 0x10000; |
71 |
| -pub const O_LARGEFILE: ::c_int = 0; |
72 |
| -pub const O_NOFOLLOW: ::c_int = 0x20000; |
| 64 | +pub const O_DIRECT: ::c_int = 0x20000; |
| 65 | +pub const O_DIRECTORY: ::c_int = 0x4000; |
| 66 | +pub const O_LARGEFILE: ::c_int = 0x10000; |
| 67 | +pub const O_NOFOLLOW: ::c_int = 0x8000; |
73 | 68 |
|
74 |
| -pub const SIGSTKSZ: ::size_t = 8192; |
75 |
| -pub const MINSIGSTKSZ: ::size_t = 2048; |
| 69 | +pub const SIGSTKSZ: ::size_t = 10240; |
| 70 | +pub const MINSIGSTKSZ: ::size_t = 4096; |
76 | 71 |
|
77 | 72 | #[doc(hidden)]
|
78 |
| -pub const AF_MAX: ::c_int = 42; |
| 73 | +pub const AF_MAX: ::c_int = 43; |
79 | 74 | #[doc(hidden)]
|
80 | 75 | pub const PF_MAX: ::c_int = AF_MAX;
|
81 | 76 |
|
@@ -439,3 +434,139 @@ pub const SYS_copy_file_range: ::c_long = 379;
|
439 | 434 | pub const SYS_preadv2: ::c_long = 380;
|
440 | 435 | pub const SYS_pwritev2: ::c_long = 381;
|
441 | 436 | pub const SYS_kexec_file_load: ::c_long = 382;
|
| 437 | + |
| 438 | +pub const FIOCLEX: ::c_ulong = 0x20006601; |
| 439 | +pub const FIONBIO: ::c_ulong = 0x8004667e; |
| 440 | +pub const EDEADLK: ::c_int = 58; |
| 441 | +pub const EDEADLOCK: ::c_int = EDEADLK; |
| 442 | +pub const SO_PASSCRED: ::c_int = 20; |
| 443 | +pub const SO_PEERCRED: ::c_int = 21; |
| 444 | +pub const SO_RCVLOWAT: ::c_int = 16; |
| 445 | +pub const SO_SNDLOWAT: ::c_int = 17; |
| 446 | +pub const SO_RCVTIMEO: ::c_int = 18; |
| 447 | +pub const SO_SNDTIMEO: ::c_int = 19; |
| 448 | +pub const EXTPROC: ::tcflag_t = 0x10000000; |
| 449 | +pub const VEOL: usize = 6; |
| 450 | +pub const VEOL2: usize = 8; |
| 451 | +pub const VMIN: usize = 5; |
| 452 | +pub const IEXTEN: ::tcflag_t = 0x00000400; |
| 453 | +pub const TOSTOP: ::tcflag_t = 0x00400000; |
| 454 | +pub const FLUSHO: ::tcflag_t = 0x00800000; |
| 455 | +pub const TCGETS: ::c_ulong = 0x403c7413; |
| 456 | +pub const TCSETS: ::c_ulong = 0x803c7414; |
| 457 | +pub const TCSETSW: ::c_ulong = 0x803c7415; |
| 458 | +pub const TCSETSF: ::c_ulong = 0x803c7416; |
| 459 | +pub const TCGETA: ::c_ulong = 0x40147417; |
| 460 | +pub const TCSETA: ::c_ulong = 0x80147418; |
| 461 | +pub const TCSETAW: ::c_ulong = 0x80147419; |
| 462 | +pub const TCSETAF: ::c_ulong = 0x8014741c; |
| 463 | +pub const TCSBRK: ::c_ulong = 0x2000741d; |
| 464 | +pub const TCXONC: ::c_ulong = 0x2000741e; |
| 465 | +pub const TCFLSH: ::c_ulong = 0x2000741f; |
| 466 | +pub const TIOCGSOFTCAR: ::c_ulong = 0x5419; |
| 467 | +pub const TIOCSSOFTCAR: ::c_ulong = 0x541A; |
| 468 | +pub const TIOCLINUX: ::c_ulong = 0x541C; |
| 469 | +pub const TIOCGSERIAL: ::c_ulong = 0x541E; |
| 470 | +pub const TIOCEXCL: ::c_ulong = 0x540C; |
| 471 | +pub const TIOCNXCL: ::c_ulong = 0x540D; |
| 472 | +pub const TIOCSCTTY: ::c_ulong = 0x540E; |
| 473 | +pub const TIOCGPGRP: ::c_ulong = 0x40047477; |
| 474 | +pub const TIOCSPGRP: ::c_ulong = 0x80047476; |
| 475 | +pub const TIOCOUTQ: ::c_ulong = 0x40047473; |
| 476 | +pub const TIOCGWINSZ: ::c_ulong = 0x40087468; |
| 477 | +pub const TIOCSWINSZ: ::c_ulong = 0x80087467; |
| 478 | +pub const TIOCMGET: ::c_ulong = 0x5415; |
| 479 | +pub const TIOCMBIS: ::c_ulong = 0x5416; |
| 480 | +pub const TIOCMBIC: ::c_ulong = 0x5417; |
| 481 | +pub const TIOCMSET: ::c_ulong = 0x5418; |
| 482 | +pub const FIONREAD: ::c_ulong = 0x4004667f; |
| 483 | +pub const TIOCCONS: ::c_ulong = 0x541D; |
| 484 | +pub const TIOCM_LE: ::c_ulong = 0x001; |
| 485 | +pub const TIOCM_DTR: ::c_ulong = 0x002; |
| 486 | +pub const TIOCM_RTS: ::c_ulong = 0x004; |
| 487 | +pub const TIOCM_ST: ::c_ulong = 0x008; |
| 488 | +pub const TIOCM_SR: ::c_ulong = 0x010; |
| 489 | +pub const TIOCM_CTS: ::c_ulong = 0x020; |
| 490 | +pub const TIOCM_CAR: ::c_ulong = 0x040; |
| 491 | +pub const TIOCM_RNG: ::c_ulong = 0x080; |
| 492 | +pub const TIOCM_DSR: ::c_ulong = 0x100; |
| 493 | +pub const TIOCM_CD: ::c_ulong = TIOCM_CAR; |
| 494 | +pub const TIOCM_RI: ::c_ulong = TIOCM_RNG; |
| 495 | + |
| 496 | +pub const RLIMIT_NLIMITS: ::c_int = 15; |
| 497 | +pub const TIOCINQ: ::c_ulong = ::FIONREAD; |
| 498 | +pub const MCL_CURRENT: ::c_int = 0x2000; |
| 499 | +pub const MCL_FUTURE: ::c_int = 0x4000; |
| 500 | +pub const CBAUD: ::tcflag_t = 0xff; |
| 501 | +pub const TAB1: ::c_int = 0x400; |
| 502 | +pub const TAB2: ::c_int = 0x800; |
| 503 | +pub const TAB3: ::c_int = 0xc00; |
| 504 | +pub const CR1: ::c_int = 0x1000; |
| 505 | +pub const CR2: ::c_int = 0x2000; |
| 506 | +pub const CR3: ::c_int = 0x3000; |
| 507 | +pub const FF1: ::c_int = 0x4000; |
| 508 | +pub const BS1: ::c_int = 0x8000; |
| 509 | +pub const VT1: ::c_int = 0x10000; |
| 510 | +pub const VWERASE: usize = 10; |
| 511 | +pub const VREPRINT: usize = 11; |
| 512 | +pub const VSUSP: usize = 12; |
| 513 | +pub const VSTART: usize = 13; |
| 514 | +pub const VSTOP: usize = 14; |
| 515 | +pub const VDISCARD: usize = 16; |
| 516 | +pub const VTIME: usize = 7; |
| 517 | +pub const IXON: ::tcflag_t = 0x00000200; |
| 518 | +pub const IXOFF: ::tcflag_t = 0x00000400; |
| 519 | +pub const ONLCR: ::tcflag_t = 0x2; |
| 520 | +pub const CSIZE: ::tcflag_t = 0x00000300; |
| 521 | + |
| 522 | +pub const CS6: ::tcflag_t = 0x00000100; |
| 523 | +pub const CS7: ::tcflag_t = 0x00000200; |
| 524 | +pub const CS8: ::tcflag_t = 0x00000300; |
| 525 | +pub const CSTOPB: ::tcflag_t = 0x00000400; |
| 526 | +pub const CREAD: ::tcflag_t = 0x00000800; |
| 527 | +pub const PARENB: ::tcflag_t = 0x00001000; |
| 528 | +pub const PARODD: ::tcflag_t = 0x00002000; |
| 529 | +pub const HUPCL: ::tcflag_t = 0x00004000; |
| 530 | +pub const CLOCAL: ::tcflag_t = 0x00008000; |
| 531 | +pub const ECHOKE: ::tcflag_t = 0x00000001; |
| 532 | +pub const ECHOE: ::tcflag_t = 0x00000002; |
| 533 | +pub const ECHOK: ::tcflag_t = 0x00000004; |
| 534 | +pub const ECHONL: ::tcflag_t = 0x00000010; |
| 535 | +pub const ECHOPRT: ::tcflag_t = 0x00000020; |
| 536 | +pub const ECHOCTL: ::tcflag_t = 0x00000040; |
| 537 | +pub const ISIG: ::tcflag_t = 0x00000080; |
| 538 | +pub const ICANON: ::tcflag_t = 0x00000100; |
| 539 | +pub const PENDIN: ::tcflag_t = 0x20000000; |
| 540 | +pub const NOFLSH: ::tcflag_t = 0x80000000; |
| 541 | + |
| 542 | +pub const CIBAUD: ::tcflag_t = 0o77600000; |
| 543 | +pub const CBAUDEX: ::tcflag_t = 0o0000020; |
| 544 | +pub const VSWTC: usize = 9; |
| 545 | +pub const OLCUC: ::tcflag_t = 0o000004; |
| 546 | +pub const NLDLY: ::tcflag_t = 0o0001400; |
| 547 | +pub const CRDLY: ::tcflag_t = 0o0030000; |
| 548 | +pub const TABDLY: ::tcflag_t = 0o0006000; |
| 549 | +pub const BSDLY: ::tcflag_t = 0o0100000; |
| 550 | +pub const FFDLY: ::tcflag_t = 0o0040000; |
| 551 | +pub const VTDLY: ::tcflag_t = 0o0200000; |
| 552 | +pub const XTABS: ::tcflag_t = 0o00006000; |
| 553 | + |
| 554 | +pub const B57600: ::speed_t = 0o00020; |
| 555 | +pub const B115200: ::speed_t = 0o00021; |
| 556 | +pub const B230400: ::speed_t = 0o00022; |
| 557 | +pub const B460800: ::speed_t = 0o00023; |
| 558 | +pub const B500000: ::speed_t = 0o00024; |
| 559 | +pub const B576000: ::speed_t = 0o00025; |
| 560 | +pub const B921600: ::speed_t = 0o00026; |
| 561 | +pub const B1000000: ::speed_t = 0o00027; |
| 562 | +pub const B1152000: ::speed_t = 0o00030; |
| 563 | +pub const B1500000: ::speed_t = 0o00031; |
| 564 | +pub const B2000000: ::speed_t = 0o00032; |
| 565 | +pub const B2500000: ::speed_t = 0o00033; |
| 566 | +pub const B3000000: ::speed_t = 0o00034; |
| 567 | +pub const B3500000: ::speed_t = 0o00035; |
| 568 | +pub const B4000000: ::speed_t = 0o00036; |
| 569 | + |
| 570 | +extern { |
| 571 | + pub fn ioctl(fd: ::c_int, request: ::c_ulong, ...) -> ::c_int; |
| 572 | +} |
0 commit comments