Skip to content

Commit 821afc4

Browse files
committed
auto merge of #16932 : crabtw/rust/mips, r=alexcrichton
Add missing liblibc constants
2 parents 9b81a4e + 9753329 commit 821afc4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/liblibc/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2965,12 +2965,14 @@ pub mod consts {
29652965
pub static AF_INET6: c_int = 10;
29662966
pub static SOCK_STREAM: c_int = 2;
29672967
pub static SOCK_DGRAM: c_int = 1;
2968+
pub static SOCK_RAW: c_int = 3;
29682969
pub static IPPROTO_TCP: c_int = 6;
29692970
pub static IPPROTO_IP: c_int = 0;
29702971
pub static IPPROTO_IPV6: c_int = 41;
29712972
pub static IP_MULTICAST_TTL: c_int = 33;
29722973
pub static IP_MULTICAST_LOOP: c_int = 34;
29732974
pub static IP_TTL: c_int = 2;
2975+
pub static IP_HDRINCL: c_int = 3;
29742976
pub static IP_ADD_MEMBERSHIP: c_int = 35;
29752977
pub static IP_DROP_MEMBERSHIP: c_int = 36;
29762978
pub static IPV6_ADD_MEMBERSHIP: c_int = 20;
@@ -3021,8 +3023,12 @@ pub mod consts {
30213023
pub mod extra {
30223024
use types::os::arch::c95::c_int;
30233025

3026+
pub static AF_PACKET : c_int = 17;
3027+
pub static IPPROTO_RAW : c_int = 255;
3028+
30243029
pub static O_RSYNC : c_int = 16400;
30253030
pub static O_DSYNC : c_int = 16;
3031+
pub static O_NONBLOCK : c_int = 128;
30263032
pub static O_SYNC : c_int = 16400;
30273033

30283034
pub static PROT_GROWSDOWN : c_int = 0x01000000;

0 commit comments

Comments
 (0)