| ... | ... | @@ -251,7 +251,6 @@ pub const MAP_NOSYNC = 0x0800; |
| 251 | 251 | pub const MAP_ANON = 0x1000; |
| 252 | 252 | pub const MAP_ANONYMOUS = MAP_ANON; |
| 253 | 253 | pub const MAP_FILE = 0; |
| 254 | | pub const MAP_NORESERVE = 0; |
| 255 | 254 | |
| 256 | 255 | pub const MAP_GUARD = 0x00002000; |
| 257 | 256 | pub const MAP_EXCL = 0x00004000; |
| ... | ... | @@ -337,7 +336,7 @@ pub const O_NONBLOCK = 0x0004; |
| 337 | 336 | pub const O_DSYNC = 0o10000; |
| 338 | 337 | pub const O_SYNC = 0x0080; |
| 339 | 338 | pub const O_RSYNC = 0o4010000; |
| 340 | | pub const O_DIRECTORY = 0o200000; |
| 339 | pub const O_DIRECTORY = 0x20000; |
| 341 | 340 | pub const O_NOFOLLOW = 0x0100; |
| 342 | 341 | pub const O_CLOEXEC = 0x00100000; |
| 343 | 342 | |
| ... | ... | @@ -354,14 +353,12 @@ pub const F_SETFD = 2; |
| 354 | 353 | pub const F_GETFL = 3; |
| 355 | 354 | pub const F_SETFL = 4; |
| 356 | 355 | |
| 357 | | pub const F_SETOWN = 8; |
| 358 | | pub const F_GETOWN = 9; |
| 359 | | pub const F_SETSIG = 10; |
| 360 | | pub const F_GETSIG = 11; |
| 356 | pub const F_GETOWN = 5; |
| 357 | pub const F_SETOWN = 6; |
| 361 | 358 | |
| 362 | | pub const F_GETLK = 5; |
| 363 | | pub const F_SETLK = 6; |
| 364 | | pub const F_SETLKW = 7; |
| 359 | pub const F_GETLK = 11; |
| 360 | pub const F_SETLK = 12; |
| 361 | pub const F_SETLKW = 13; |
| 365 | 362 | |
| 366 | 363 | pub const F_RDLCK = 1; |
| 367 | 364 | pub const F_WRLCK = 3; |
| ... | ... | @@ -474,7 +471,7 @@ pub const PF_SLOW = AF_SLOW; |
| 474 | 471 | pub const PF_SCLUSTER = AF_SCLUSTER; |
| 475 | 472 | pub const PF_ARP = AF_ARP; |
| 476 | 473 | pub const PF_BLUETOOTH = AF_BLUETOOTH; |
| 477 | | pub const PF_IEEE80211 = AF_IEE80211; |
| 474 | pub const PF_IEEE80211 = AF_IEEE80211; |
| 478 | 475 | pub const PF_INET_SDP = AF_INET_SDP; |
| 479 | 476 | pub const PF_INET6_SDP = AF_INET6_SDP; |
| 480 | 477 | pub const PF_MAX = AF_MAX; |
| ... | ... | @@ -521,8 +518,8 @@ pub const AF_SCLUSTER = 34; |
| 521 | 518 | pub const AF_ARP = 35; |
| 522 | 519 | pub const AF_BLUETOOTH = 36; |
| 523 | 520 | pub const AF_IEEE80211 = 37; |
| 524 | | pub const AF_INET_SDP = 38; |
| 525 | | pub const AF_INET6_SDP = 39; |
| 521 | pub const AF_INET_SDP = 40; |
| 522 | pub const AF_INET6_SDP = 42; |
| 526 | 523 | pub const AF_MAX = 42; |
| 527 | 524 | |
| 528 | 525 | pub const DT_UNKNOWN = 0; |
| ... | ... | @@ -682,61 +679,31 @@ pub const NOTE_NSECONDS = 0x00000008; |
| 682 | 679 | /// timeout is absolute |
| 683 | 680 | pub const NOTE_ABSTIME = 0x00000010; |
| 684 | 681 | |
| 685 | | pub const TCGETS = 0x5401; |
| 686 | | pub const TCSETS = 0x5402; |
| 687 | | pub const TCSETSW = 0x5403; |
| 688 | | pub const TCSETSF = 0x5404; |
| 689 | | pub const TCGETA = 0x5405; |
| 690 | | pub const TCSETA = 0x5406; |
| 691 | | pub const TCSETAW = 0x5407; |
| 692 | | pub const TCSETAF = 0x5408; |
| 693 | | pub const TCSBRK = 0x5409; |
| 694 | | pub const TCXONC = 0x540A; |
| 695 | | pub const TCFLSH = 0x540B; |
| 696 | | pub const TIOCEXCL = 0x540C; |
| 697 | | pub const TIOCNXCL = 0x540D; |
| 698 | | pub const TIOCSCTTY = 0x540E; |
| 699 | | pub const TIOCGPGRP = 0x540F; |
| 700 | | pub const TIOCSPGRP = 0x5410; |
| 701 | | pub const TIOCOUTQ = 0x5411; |
| 702 | | pub const TIOCSTI = 0x5412; |
| 703 | | pub const TIOCGWINSZ = 0x5413; |
| 704 | | pub const TIOCSWINSZ = 0x5414; |
| 705 | | pub const TIOCMGET = 0x5415; |
| 706 | | pub const TIOCMBIS = 0x5416; |
| 707 | | pub const TIOCMBIC = 0x5417; |
| 708 | | pub const TIOCMSET = 0x5418; |
| 709 | | pub const TIOCGSOFTCAR = 0x5419; |
| 710 | | pub const TIOCSSOFTCAR = 0x541A; |
| 711 | | pub const FIONREAD = 0x541B; |
| 712 | | pub const TIOCINQ = FIONREAD; |
| 713 | | pub const TIOCLINUX = 0x541C; |
| 714 | | pub const TIOCCONS = 0x541D; |
| 715 | | pub const TIOCGSERIAL = 0x541E; |
| 716 | | pub const TIOCSSERIAL = 0x541F; |
| 717 | | pub const TIOCPKT = 0x5420; |
| 718 | | pub const FIONBIO = 0x5421; |
| 719 | | pub const TIOCNOTTY = 0x5422; |
| 720 | | pub const TIOCSETD = 0x5423; |
| 721 | | pub const TIOCGETD = 0x5424; |
| 722 | | pub const TCSBRKP = 0x5425; |
| 723 | | pub const TIOCSBRK = 0x5427; |
| 724 | | pub const TIOCCBRK = 0x5428; |
| 725 | | pub const TIOCGSID = 0x5429; |
| 726 | | pub const TIOCGRS485 = 0x542E; |
| 727 | | pub const TIOCSRS485 = 0x542F; |
| 728 | | pub const TIOCGPTN = 0x80045430; |
| 729 | | pub const TIOCSPTLCK = 0x40045431; |
| 730 | | pub const TIOCGDEV = 0x80045432; |
| 731 | | pub const TCGETX = 0x5432; |
| 732 | | pub const TCSETX = 0x5433; |
| 733 | | pub const TCSETXF = 0x5434; |
| 734 | | pub const TCSETXW = 0x5435; |
| 735 | | pub const TIOCSIG = 0x40045436; |
| 736 | | pub const TIOCVHANGUP = 0x5437; |
| 737 | | pub const TIOCGPKT = 0x80045438; |
| 738 | | pub const TIOCGPTLCK = 0x80045439; |
| 739 | | pub const TIOCGEXCL = 0x80045440; |
| 682 | pub const TIOCEXCL = 0x2000740d; |
| 683 | pub const TIOCNXCL = 0x2000740e; |
| 684 | pub const TIOCSCTTY = 0x20007461; |
| 685 | pub const TIOCGPGRP = 0x40047477; |
| 686 | pub const TIOCSPGRP = 0x80047476; |
| 687 | pub const TIOCOUTQ = 0x40047473; |
| 688 | pub const TIOCSTI = 0x80017472; |
| 689 | pub const TIOCGWINSZ = 0x40087468; |
| 690 | pub const TIOCSWINSZ = 0x80087467; |
| 691 | pub const TIOCMGET = 0x4004746a; |
| 692 | pub const TIOCMBIS = 0x8004746c; |
| 693 | pub const TIOCMBIC = 0x8004746b; |
| 694 | pub const TIOCMSET = 0x8004746d; |
| 695 | pub const FIONREAD = 0x4004667f; |
| 696 | pub const TIOCCONS = 0x80047462; |
| 697 | pub const TIOCPKT = 0x80047470; |
| 698 | pub const FIONBIO = 0x8004667e; |
| 699 | pub const TIOCNOTTY = 0x20007471; |
| 700 | pub const TIOCSETD = 0x8004741b; |
| 701 | pub const TIOCGETD = 0x4004741a; |
| 702 | pub const TIOCSBRK = 0x2000747b; |
| 703 | pub const TIOCCBRK = 0x2000747a; |
| 704 | pub const TIOCGSID = 0x40047463; |
| 705 | pub const TIOCGPTN = 0x4004740f; |
| 706 | pub const TIOCSIG = 0x2004745f; |
| 740 | 707 | |
| 741 | 708 | pub fn WEXITSTATUS(s: u32) u32 { |
| 742 | 709 | return (s & 0xff00) >> 8; |