Skip to content

Commit 13cdcf8

Browse files
committed
Update SO_* constants for Fuchsia
Added SO_COOKIE, SO_TIMESTAMPNS and SO_FUCHSIA_MARK.
1 parent a44a76e commit 13cdcf8

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

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)