File tree 2 files changed +13
-18
lines changed
2 files changed +13
-18
lines changed Original file line number Diff line number Diff line change @@ -678,6 +678,17 @@ extern "C" {
678
678
value : * const :: c_void ,
679
679
option_len : socklen_t ,
680
680
) -> :: c_int ;
681
+ #[ cfg_attr(
682
+ all( target_os = "macos" , target_arch = "x86" ) ,
683
+ link_name = "socketpair$UNIX2003"
684
+ ) ]
685
+ #[ cfg_attr( target_os = "illumos" , link_name = "__xnet_socketpair" ) ]
686
+ pub fn socketpair (
687
+ domain : :: c_int ,
688
+ type_ : :: c_int ,
689
+ protocol : :: c_int ,
690
+ socket_vector : * mut :: c_int ,
691
+ ) -> :: c_int ;
681
692
#[ cfg( not( all(
682
693
libc_cfg_target_vendor,
683
694
target_arch = "powerpc" ,
@@ -1402,24 +1413,6 @@ extern "C" {
1402
1413
1403
1414
}
1404
1415
1405
- cfg_if ! {
1406
- if #[ cfg( not( target_os = "vita" ) ) ] {
1407
- extern "C" {
1408
- #[ cfg_attr(
1409
- all( target_os = "macos" , target_arch = "x86" ) ,
1410
- link_name = "socketpair$UNIX2003"
1411
- ) ]
1412
- #[ cfg_attr( target_os = "illumos" , link_name = "__xnet_socketpair" ) ]
1413
- pub fn socketpair(
1414
- domain: :: c_int,
1415
- type_: :: c_int,
1416
- protocol: :: c_int,
1417
- socket_vector: * mut :: c_int,
1418
- ) -> :: c_int;
1419
- }
1420
- }
1421
- }
1422
-
1423
1416
cfg_if ! {
1424
1417
if #[ cfg( not( any( target_os = "emscripten" ,
1425
1418
target_os = "android" ,
Original file line number Diff line number Diff line change @@ -229,4 +229,6 @@ extern "C" {
229
229
pub fn pthread_getprocessorid_np ( ) -> :: c_int ;
230
230
231
231
pub fn getentropy ( buf : * mut :: c_void , buflen : :: size_t ) -> :: c_int ;
232
+
233
+ pub fn pipe2 ( fds : * mut :: c_int , flags : :: c_int ) -> :: c_int ;
232
234
}
You can’t perform that action at this time.
0 commit comments