Add networking and futex constants for uclibc

This commit is contained in:
Stefano Probst 2019-10-15 16:33:02 +02:00
parent 3a1b3a7f4c
commit 01992c085e
2 changed files with 16 additions and 4 deletions

View File

@ -408,10 +408,6 @@ pub const F_SETLKW: ::c_int = 0x7;
pub const HUPCL: ::tcflag_t = 0x400;
pub const ICANON: ::tcflag_t = 0x2;
pub const IEXTEN: ::tcflag_t = 0x8000;
pub const IPV6_MULTICAST_HOPS: ::c_int = 0x12;
pub const IPV6_MULTICAST_IF: ::c_int = 0x11;
pub const IPV6_UNICAST_HOPS: ::c_int = 0x10;
pub const IP_MULTICAST_IF: ::c_int = 0x20;
pub const ISIG: ::tcflag_t = 0x1;
pub const IUTF8: ::tcflag_t = 0x4000;
pub const IXOFF: ::tcflag_t = 0x1000;

View File

@ -891,6 +891,22 @@ pub const TCP_INFO: ::c_int = 11;
pub const TCP_QUICKACK: ::c_int = 12;
pub const TCP_CONGESTION: ::c_int = 13;
// Source:
// https://github.com/kraj/uClibc/blob/ca1c74d67dd115d059a875150e10b8560a9c35a8
// /libc/sysdeps/linux/common/bits/in.h
// Same for all architectures
pub const IPV6_MULTICAST_HOPS: ::c_int = 18;
pub const IP_MULTICAST_IF: ::c_int = 32;
pub const IPV6_MULTICAST_IF: ::c_int = 17;
pub const IPV6_UNICAST_HOPS: ::c_int = 16;
// Source:
// https://github.com/kraj/uClibc/tree/ca1c74d67dd115d059a875150e10b8560a9c35a8
// Same for all architectures
pub const FUTEX_WAIT: ::c_int = 0;
pub const FUTEX_PRIVATE_FLAG: ::c_int = 128;
pub const FUTEX_WAKE: ::c_int = 1;
pub const IPV6_MULTICAST_LOOP: ::c_int = 19;
pub const IPV6_V6ONLY: ::c_int = 26;