@@ -1611,6 +1611,10 @@ pub mod consts {
16111611 pub static SO_KEEPALIVE : c_int = 8 ;
16121612 pub static SO_BROADCAST : c_int = 32 ;
16131613 pub static SO_REUSEADDR : c_int = 4 ;
1614+
1615+ pub static SHUT_RD : c_int = 0 ;
1616+ pub static SHUT_WR : c_int = 1 ;
1617+ pub static SHUT_RDWR : c_int = 2 ;
16141618 }
16151619 pub mod extra {
16161620 use libc:: types:: os:: arch:: c95:: c_int;
@@ -2391,6 +2395,10 @@ pub mod consts {
23912395 pub static SO_KEEPALIVE : c_int = 9 ;
23922396 pub static SO_BROADCAST : c_int = 6 ;
23932397 pub static SO_REUSEADDR : c_int = 2 ;
2398+
2399+ pub static SHUT_RD : c_int = 0 ;
2400+ pub static SHUT_WR : c_int = 1 ;
2401+ pub static SHUT_RDWR : c_int = 2 ;
23942402 }
23952403 #[ cfg( target_arch = "x86" ) ]
23962404 #[ cfg( target_arch = "x86_64" ) ]
@@ -2842,6 +2850,10 @@ pub mod consts {
28422850 pub static SO_KEEPALIVE : c_int = 0x0008 ;
28432851 pub static SO_BROADCAST : c_int = 0x0020 ;
28442852 pub static SO_REUSEADDR : c_int = 0x0004 ;
2853+
2854+ pub static SHUT_RD : c_int = 0 ;
2855+ pub static SHUT_WR : c_int = 1 ;
2856+ pub static SHUT_RDWR : c_int = 2 ;
28452857 }
28462858 pub mod extra {
28472859 use libc:: types:: os:: arch:: c95:: c_int;
@@ -3221,6 +3233,10 @@ pub mod consts {
32213233 pub static SO_KEEPALIVE : c_int = 0x0008 ;
32223234 pub static SO_BROADCAST : c_int = 0x0020 ;
32233235 pub static SO_REUSEADDR : c_int = 0x0004 ;
3236+
3237+ pub static SHUT_RD : c_int = 0 ;
3238+ pub static SHUT_WR : c_int = 1 ;
3239+ pub static SHUT_RDWR : c_int = 2 ;
32243240 }
32253241 pub mod extra {
32263242 use libc:: types:: os:: arch:: c95:: c_int;
@@ -3939,6 +3955,7 @@ pub mod funcs {
39393955 pub fn sendto ( socket : c_int , buf : * c_void , len : size_t ,
39403956 flags : c_int , addr : * sockaddr ,
39413957 addrlen : socklen_t ) -> ssize_t ;
3958+ pub fn shutdown ( socket : c_int , how : c_int ) -> c_int ;
39423959 }
39433960 }
39443961
@@ -3975,6 +3992,7 @@ pub mod funcs {
39753992 pub fn sendto ( socket : SOCKET , buf : * c_void , len : c_int ,
39763993 flags : c_int , addr : * sockaddr ,
39773994 addrlen : c_int ) -> c_int ;
3995+ pub fn shutdown ( socket : SOCKET , how : c_int ) -> c_int ;
39783996 }
39793997 }
39803998
0 commit comments