| ... | @@ -251,7 +251,6 @@ pub const MAP_NOSYNC = 0x0800; | ... | @@ -251,7 +251,6 @@ pub const MAP_NOSYNC = 0x0800; |
| 251 | pub const MAP_ANON = 0x1000; | 251 | pub const MAP_ANON = 0x1000; |
| 252 | pub const MAP_ANONYMOUS = MAP_ANON; | 252 | pub const MAP_ANONYMOUS = MAP_ANON; |
| 253 | pub const MAP_FILE = 0; | 253 | pub const MAP_FILE = 0; |
| 254 | pub const MAP_NORESERVE = 0; | | |
| 255 | | 254 | |
| 256 | pub const MAP_GUARD = 0x00002000; | 255 | pub const MAP_GUARD = 0x00002000; |
| 257 | pub const MAP_EXCL = 0x00004000; | 256 | pub const MAP_EXCL = 0x00004000; |
| ... | @@ -337,7 +336,7 @@ pub const O_NONBLOCK = 0x0004; | ... | @@ -337,7 +336,7 @@ pub const O_NONBLOCK = 0x0004; |
| 337 | pub const O_DSYNC = 0o10000; | 336 | pub const O_DSYNC = 0o10000; |
| 338 | pub const O_SYNC = 0x0080; | 337 | pub const O_SYNC = 0x0080; |
| 339 | pub const O_RSYNC = 0o4010000; | 338 | pub const O_RSYNC = 0o4010000; |
| 340 | pub const O_DIRECTORY = 0o200000; | 339 | pub const O_DIRECTORY = 0x20000; |
| 341 | pub const O_NOFOLLOW = 0x0100; | 340 | pub const O_NOFOLLOW = 0x0100; |
| 342 | pub const O_CLOEXEC = 0x00100000; | 341 | pub const O_CLOEXEC = 0x00100000; |
| 343 | | 342 | |
| ... | @@ -354,14 +353,12 @@ pub const F_SETFD = 2; | ... | @@ -354,14 +353,12 @@ pub const F_SETFD = 2; |
| 354 | pub const F_GETFL = 3; | 353 | pub const F_GETFL = 3; |
| 355 | pub const F_SETFL = 4; | 354 | pub const F_SETFL = 4; |
| 356 | | 355 | |
| 357 | pub const F_SETOWN = 8; | 356 | pub const F_GETOWN = 5; |
| 358 | pub const F_GETOWN = 9; | 357 | pub const F_SETOWN = 6; |
| 359 | pub const F_SETSIG = 10; | | |
| 360 | pub const F_GETSIG = 11; | | |
| 361 | | 358 | |
| 362 | pub const F_GETLK = 5; | 359 | pub const F_GETLK = 11; |
| 363 | pub const F_SETLK = 6; | 360 | pub const F_SETLK = 12; |
| 364 | pub const F_SETLKW = 7; | 361 | pub const F_SETLKW = 13; |
| 365 | | 362 | |
| 366 | pub const F_RDLCK = 1; | 363 | pub const F_RDLCK = 1; |
| 367 | pub const F_WRLCK = 3; | 364 | pub const F_WRLCK = 3; |
| ... | @@ -396,6 +393,47 @@ pub const SOCK_SEQPACKET = 5; | ... | @@ -396,6 +393,47 @@ pub const SOCK_SEQPACKET = 5; |
| 396 | pub const SOCK_CLOEXEC = 0x10000000; | 393 | pub const SOCK_CLOEXEC = 0x10000000; |
| 397 | pub const SOCK_NONBLOCK = 0x20000000; | 394 | pub const SOCK_NONBLOCK = 0x20000000; |
| 398 | | 395 | |
| | 396 | pub const SO_DEBUG = 0x00000001; |
| | 397 | pub const SO_ACCEPTCONN = 0x00000002; |
| | 398 | pub const SO_REUSEADDR = 0x00000004; |
| | 399 | pub const SO_KEEPALIVE = 0x00000008; |
| | 400 | pub const SO_DONTROUTE = 0x00000010; |
| | 401 | pub const SO_BROADCAST = 0x00000020; |
| | 402 | pub const SO_USELOOPBACK = 0x00000040; |
| | 403 | pub const SO_LINGER = 0x00000080; |
| | 404 | pub const SO_OOBINLINE = 0x00000100; |
| | 405 | pub const SO_REUSEPORT = 0x00000200; |
| | 406 | pub const SO_TIMESTAMP = 0x00000400; |
| | 407 | pub const SO_NOSIGPIPE = 0x00000800; |
| | 408 | pub const SO_ACCEPTFILTER = 0x00001000; |
| | 409 | pub const SO_BINTIME = 0x00002000; |
| | 410 | pub const SO_NO_OFFLOAD = 0x00004000; |
| | 411 | pub const SO_NO_DDP = 0x00008000; |
| | 412 | pub const SO_REUSEPORT_LB = 0x00010000; |
| | 413 | |
| | 414 | pub const SO_SNDBUF = 0x1001; |
| | 415 | pub const SO_RCVBUF = 0x1002; |
| | 416 | pub const SO_SNDLOWAT = 0x1003; |
| | 417 | pub const SO_RCVLOWAT = 0x1004; |
| | 418 | pub const SO_SNDTIMEO = 0x1005; |
| | 419 | pub const SO_RCVTIMEO = 0x1006; |
| | 420 | pub const SO_ERROR = 0x1007; |
| | 421 | pub const SO_TYPE = 0x1008; |
| | 422 | pub const SO_LABEL = 0x1009; |
| | 423 | pub const SO_PEERLABEL = 0x1010; |
| | 424 | pub const SO_LISTENQLIMIT = 0x1011; |
| | 425 | pub const SO_LISTENQLEN = 0x1012; |
| | 426 | pub const SO_LISTENINCQLEN = 0x1013; |
| | 427 | pub const SO_SETFIB = 0x1014; |
| | 428 | pub const SO_USER_COOKIE = 0x1015; |
| | 429 | pub const SO_PROTOCOL = 0x1016; |
| | 430 | pub const SO_PROTOTYPE = SO_PROTOCOL; |
| | 431 | pub const SO_TS_CLOCK = 0x1017; |
| | 432 | pub const SO_MAX_PACING_RATE = 0x1018; |
| | 433 | pub const SO_DOMAIN = 0x1019; |
| | 434 | |
| | 435 | pub const SOL_SOCKET = 0xffff; |
| | 436 | |
| 399 | pub const PF_UNSPEC = AF_UNSPEC; | 437 | pub const PF_UNSPEC = AF_UNSPEC; |
| 400 | pub const PF_LOCAL = AF_LOCAL; | 438 | pub const PF_LOCAL = AF_LOCAL; |
| 401 | pub const PF_UNIX = PF_LOCAL; | 439 | pub const PF_UNIX = PF_LOCAL; |
| ... | @@ -433,7 +471,7 @@ pub const PF_SLOW = AF_SLOW; | ... | @@ -433,7 +471,7 @@ pub const PF_SLOW = AF_SLOW; |
| 433 | pub const PF_SCLUSTER = AF_SCLUSTER; | 471 | pub const PF_SCLUSTER = AF_SCLUSTER; |
| 434 | pub const PF_ARP = AF_ARP; | 472 | pub const PF_ARP = AF_ARP; |
| 435 | pub const PF_BLUETOOTH = AF_BLUETOOTH; | 473 | pub const PF_BLUETOOTH = AF_BLUETOOTH; |
| 436 | pub const PF_IEEE80211 = AF_IEE80211; | 474 | pub const PF_IEEE80211 = AF_IEEE80211; |
| 437 | pub const PF_INET_SDP = AF_INET_SDP; | 475 | pub const PF_INET_SDP = AF_INET_SDP; |
| 438 | pub const PF_INET6_SDP = AF_INET6_SDP; | 476 | pub const PF_INET6_SDP = AF_INET6_SDP; |
| 439 | pub const PF_MAX = AF_MAX; | 477 | pub const PF_MAX = AF_MAX; |
| ... | @@ -480,8 +518,8 @@ pub const AF_SCLUSTER = 34; | ... | @@ -480,8 +518,8 @@ pub const AF_SCLUSTER = 34; |
| 480 | pub const AF_ARP = 35; | 518 | pub const AF_ARP = 35; |
| 481 | pub const AF_BLUETOOTH = 36; | 519 | pub const AF_BLUETOOTH = 36; |
| 482 | pub const AF_IEEE80211 = 37; | 520 | pub const AF_IEEE80211 = 37; |
| 483 | pub const AF_INET_SDP = 38; | 521 | pub const AF_INET_SDP = 40; |
| 484 | pub const AF_INET6_SDP = 39; | 522 | pub const AF_INET6_SDP = 42; |
| 485 | pub const AF_MAX = 42; | 523 | pub const AF_MAX = 42; |
| 486 | | 524 | |
| 487 | pub const DT_UNKNOWN = 0; | 525 | pub const DT_UNKNOWN = 0; |
| ... | @@ -641,61 +679,31 @@ pub const NOTE_NSECONDS = 0x00000008; | ... | @@ -641,61 +679,31 @@ pub const NOTE_NSECONDS = 0x00000008; |
| 641 | /// timeout is absolute | 679 | /// timeout is absolute |
| 642 | pub const NOTE_ABSTIME = 0x00000010; | 680 | pub const NOTE_ABSTIME = 0x00000010; |
| 643 | | 681 | |
| 644 | pub const TCGETS = 0x5401; | 682 | pub const TIOCEXCL = 0x2000740d; |
| 645 | pub const TCSETS = 0x5402; | 683 | pub const TIOCNXCL = 0x2000740e; |
| 646 | pub const TCSETSW = 0x5403; | 684 | pub const TIOCSCTTY = 0x20007461; |
| 647 | pub const TCSETSF = 0x5404; | 685 | pub const TIOCGPGRP = 0x40047477; |
| 648 | pub const TCGETA = 0x5405; | 686 | pub const TIOCSPGRP = 0x80047476; |
| 649 | pub const TCSETA = 0x5406; | 687 | pub const TIOCOUTQ = 0x40047473; |
| 650 | pub const TCSETAW = 0x5407; | 688 | pub const TIOCSTI = 0x80017472; |
| 651 | pub const TCSETAF = 0x5408; | 689 | pub const TIOCGWINSZ = 0x40087468; |
| 652 | pub const TCSBRK = 0x5409; | 690 | pub const TIOCSWINSZ = 0x80087467; |
| 653 | pub const TCXONC = 0x540A; | 691 | pub const TIOCMGET = 0x4004746a; |
| 654 | pub const TCFLSH = 0x540B; | 692 | pub const TIOCMBIS = 0x8004746c; |
| 655 | pub const TIOCEXCL = 0x540C; | 693 | pub const TIOCMBIC = 0x8004746b; |
| 656 | pub const TIOCNXCL = 0x540D; | 694 | pub const TIOCMSET = 0x8004746d; |
| 657 | pub const TIOCSCTTY = 0x540E; | 695 | pub const FIONREAD = 0x4004667f; |
| 658 | pub const TIOCGPGRP = 0x540F; | 696 | pub const TIOCCONS = 0x80047462; |
| 659 | pub const TIOCSPGRP = 0x5410; | 697 | pub const TIOCPKT = 0x80047470; |
| 660 | pub const TIOCOUTQ = 0x5411; | 698 | pub const FIONBIO = 0x8004667e; |
| 661 | pub const TIOCSTI = 0x5412; | 699 | pub const TIOCNOTTY = 0x20007471; |
| 662 | pub const TIOCGWINSZ = 0x5413; | 700 | pub const TIOCSETD = 0x8004741b; |
| 663 | pub const TIOCSWINSZ = 0x5414; | 701 | pub const TIOCGETD = 0x4004741a; |
| 664 | pub const TIOCMGET = 0x5415; | 702 | pub const TIOCSBRK = 0x2000747b; |
| 665 | pub const TIOCMBIS = 0x5416; | 703 | pub const TIOCCBRK = 0x2000747a; |
| 666 | pub const TIOCMBIC = 0x5417; | 704 | pub const TIOCGSID = 0x40047463; |
| 667 | pub const TIOCMSET = 0x5418; | 705 | pub const TIOCGPTN = 0x4004740f; |
| 668 | pub const TIOCGSOFTCAR = 0x5419; | 706 | pub const TIOCSIG = 0x2004745f; |
| 669 | pub const TIOCSSOFTCAR = 0x541A; | | |
| 670 | pub const FIONREAD = 0x541B; | | |
| 671 | pub const TIOCINQ = FIONREAD; | | |
| 672 | pub const TIOCLINUX = 0x541C; | | |
| 673 | pub const TIOCCONS = 0x541D; | | |
| 674 | pub const TIOCGSERIAL = 0x541E; | | |
| 675 | pub const TIOCSSERIAL = 0x541F; | | |
| 676 | pub const TIOCPKT = 0x5420; | | |
| 677 | pub const FIONBIO = 0x5421; | | |
| 678 | pub const TIOCNOTTY = 0x5422; | | |
| 679 | pub const TIOCSETD = 0x5423; | | |
| 680 | pub const TIOCGETD = 0x5424; | | |
| 681 | pub const TCSBRKP = 0x5425; | | |
| 682 | pub const TIOCSBRK = 0x5427; | | |
| 683 | pub const TIOCCBRK = 0x5428; | | |
| 684 | pub const TIOCGSID = 0x5429; | | |
| 685 | pub const TIOCGRS485 = 0x542E; | | |
| 686 | pub const TIOCSRS485 = 0x542F; | | |
| 687 | pub const TIOCGPTN = 0x80045430; | | |
| 688 | pub const TIOCSPTLCK = 0x40045431; | | |
| 689 | pub const TIOCGDEV = 0x80045432; | | |
| 690 | pub const TCGETX = 0x5432; | | |
| 691 | pub const TCSETX = 0x5433; | | |
| 692 | pub const TCSETXF = 0x5434; | | |
| 693 | pub const TCSETXW = 0x5435; | | |
| 694 | pub const TIOCSIG = 0x40045436; | | |
| 695 | pub const TIOCVHANGUP = 0x5437; | | |
| 696 | pub const TIOCGPKT = 0x80045438; | | |
| 697 | pub const TIOCGPTLCK = 0x80045439; | | |
| 698 | pub const TIOCGEXCL = 0x80045440; | | |
| 699 | | 707 | |
| 700 | pub fn WEXITSTATUS(s: u32) u32 { | 708 | pub fn WEXITSTATUS(s: u32) u32 { |
| 701 | return (s & 0xff00) >> 8; | 709 | return (s & 0xff00) >> 8; |