Skip to content

Commit a940a7d

Browse files
SergeyUlanovtgross35
authored andcommitted
Update SO_* constants for Fuchsia
Added SO_COOKIE, SO_TIMESTAMPNS and SO_FUCHSIA_MARK.
1 parent a44a76e commit a940a7d

2 files changed

Lines changed: 13 additions & 8 deletions

File tree

‎libc-test/semver/fuchsia.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,9 @@ SO_BINDTODEVICE
956956
SO_BINDTOIFINDEX
957957
SO_BSDCOMPAT
958958
SO_BUSY_POLL
959+
SO_COOKIE
959960
SO_DOMAIN
961+
SO_FUCHSIA_MARK
960962
SO_MARK
961963
SO_NO_CHECK
962964
SO_ORIGINAL_DST
@@ -969,6 +971,7 @@ SO_RCVBUFFORCE
969971
SO_RXQ_OVFL
970972
SO_SNDBUFFORCE
971973
SO_TIMESTAMP
974+
SO_TIMESTAMPNS
972975
SPLICE_F_GIFT
973976
SPLICE_F_MORE
974977
SPLICE_F_MOVE

‎src/fuchsia/mod.rs‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2738,14 +2738,6 @@ pub const B3000000: crate::speed_t = 0o010015;
27382738
pub const B3500000: crate::speed_t = 0o010016;
27392739
pub const B4000000: crate::speed_t = 0o010017;
27402740

2741-
pub const SO_BINDTODEVICE: c_int = 25;
2742-
pub const SO_TIMESTAMP: c_int = 29;
2743-
pub const SO_MARK: c_int = 36;
2744-
pub const SO_RXQ_OVFL: c_int = 40;
2745-
pub const SO_PEEK_OFF: c_int = 42;
2746-
pub const SO_BUSY_POLL: c_int = 46;
2747-
pub const SO_BINDTOIFINDEX: c_int = 62;
2748-
27492741
pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56;
27502742
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;
27512743

@@ -2894,11 +2886,21 @@ pub const SO_RCVLOWAT: c_int = 18;
28942886
pub const SO_SNDLOWAT: c_int = 19;
28952887
pub const SO_RCVTIMEO: c_int = 20;
28962888
pub const SO_SNDTIMEO: c_int = 21;
2889+
pub const SO_BINDTODEVICE: c_int = 25;
2890+
pub const SO_TIMESTAMP: c_int = 29;
28972891
pub const SO_ACCEPTCONN: c_int = 30;
28982892
pub const SO_SNDBUFFORCE: c_int = 32;
28992893
pub const SO_RCVBUFFORCE: c_int = 33;
2894+
pub const SO_TIMESTAMPNS: c_int = 35;
2895+
pub const SO_MARK: c_int = 36;
29002896
pub const SO_PROTOCOL: c_int = 38;
29012897
pub const SO_DOMAIN: c_int = 39;
2898+
pub const SO_RXQ_OVFL: c_int = 40;
2899+
pub const SO_PEEK_OFF: c_int = 42;
2900+
pub const SO_BUSY_POLL: c_int = 46;
2901+
pub const SO_COOKIE: c_int = 57;
2902+
pub const SO_BINDTOIFINDEX: c_int = 62;
2903+
pub const SO_FUCHSIA_MARK: c_int = 10000;
29022904

29032905
pub const SA_ONSTACK: c_int = 0x08000000;
29042906
pub const SA_SIGINFO: c_int = 0x00000004;

0 commit comments

Comments
 (0)