Skip to content

Commit 01992c0

Browse files
committed
Add networking and futex constants for uclibc
1 parent 3a1b3a7 commit 01992c0

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

src/unix/uclibc/arm/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,6 @@ pub const F_SETLKW: ::c_int = 0x7;
408408
pub const HUPCL: ::tcflag_t = 0x400;
409409
pub const ICANON: ::tcflag_t = 0x2;
410410
pub const IEXTEN: ::tcflag_t = 0x8000;
411-
pub const IPV6_MULTICAST_HOPS: ::c_int = 0x12;
412-
pub const IPV6_MULTICAST_IF: ::c_int = 0x11;
413-
pub const IPV6_UNICAST_HOPS: ::c_int = 0x10;
414-
pub const IP_MULTICAST_IF: ::c_int = 0x20;
415411
pub const ISIG: ::tcflag_t = 0x1;
416412
pub const IUTF8: ::tcflag_t = 0x4000;
417413
pub const IXOFF: ::tcflag_t = 0x1000;

src/unix/uclibc/mod.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,22 @@ pub const TCP_INFO: ::c_int = 11;
891891
pub const TCP_QUICKACK: ::c_int = 12;
892892
pub const TCP_CONGESTION: ::c_int = 13;
893893

894+
// Source:
895+
// https://github.com/kraj/uClibc/blob/ca1c74d67dd115d059a875150e10b8560a9c35a8
896+
// /libc/sysdeps/linux/common/bits/in.h
897+
// Same for all architectures
898+
pub const IPV6_MULTICAST_HOPS: ::c_int = 18;
899+
pub const IP_MULTICAST_IF: ::c_int = 32;
900+
pub const IPV6_MULTICAST_IF: ::c_int = 17;
901+
pub const IPV6_UNICAST_HOPS: ::c_int = 16;
902+
903+
// Source:
904+
// https://github.com/kraj/uClibc/tree/ca1c74d67dd115d059a875150e10b8560a9c35a8
905+
// Same for all architectures
906+
pub const FUTEX_WAIT: ::c_int = 0;
907+
pub const FUTEX_PRIVATE_FLAG: ::c_int = 128;
908+
pub const FUTEX_WAKE: ::c_int = 1;
909+
894910
pub const IPV6_MULTICAST_LOOP: ::c_int = 19;
895911
pub const IPV6_V6ONLY: ::c_int = 26;
896912

0 commit comments

Comments
 (0)