File tree Expand file tree Collapse file tree 3 files changed +32
-0
lines changed
src/unix/linux_like/linux/gnu Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -3734,6 +3734,10 @@ fn test_linux(target: &str) {
37343734 // FIXME: the glibc version used by the Sparc64 build jobs
37353735 // which use Debian 10.0 is too old.
37363736 "statx" if sparc64 => true ,
3737+ // Needs glibc 2.34 or later.
3738+ "posix_spawn_file_actions_addclosefrom_np" if gnu && sparc64 => true ,
3739+ // Needs glibc 2.35 or later.
3740+ "posix_spawn_file_actions_addtcsetpgrp_np" if gnu && sparc64 => true ,
37373741
37383742 // FIXME: Deprecated since glibc 2.30. Remove fn once upstream does.
37393743 "sysctl" if gnu => true ,
Original file line number Diff line number Diff line change @@ -627,6 +627,10 @@ ntp_adjtime
627627ntp_gettime
628628ntptimeval
629629open_wmemstream
630+ posix_spawn_file_actions_addchdir_np
631+ posix_spawn_file_actions_addfchdir_np
632+ posix_spawn_file_actions_addclosefrom_np
633+ posix_spawn_file_actions_addtcsetpgrp_np
630634preadv2
631635preadv64
632636prlimit
Original file line number Diff line number Diff line change @@ -1379,6 +1379,30 @@ extern "C" {
13791379 pub fn gnu_get_libc_version ( ) -> * const :: c_char ;
13801380}
13811381
1382+ // posix/spawn.h
1383+ extern "C" {
1384+ // Added in `glibc` 2.29
1385+ pub fn posix_spawn_file_actions_addchdir_np (
1386+ actions : * mut :: posix_spawn_file_actions_t ,
1387+ path : * const :: c_char ,
1388+ ) -> :: c_int ;
1389+ // Added in `glibc` 2.29
1390+ pub fn posix_spawn_file_actions_addfchdir_np (
1391+ actions : * mut :: posix_spawn_file_actions_t ,
1392+ fd : :: c_int ,
1393+ ) -> :: c_int ;
1394+ // Added in `glibc` 2.34
1395+ pub fn posix_spawn_file_actions_addclosefrom_np (
1396+ actions : * mut :: posix_spawn_file_actions_t ,
1397+ from : :: c_int ,
1398+ ) -> :: c_int ;
1399+ // Added in `glibc` 2.35
1400+ pub fn posix_spawn_file_actions_addtcsetpgrp_np (
1401+ actions : * mut :: posix_spawn_file_actions_t ,
1402+ tcfd : :: c_int ,
1403+ ) -> :: c_int ;
1404+ }
1405+
13821406cfg_if ! {
13831407 if #[ cfg( any( target_arch = "x86" ,
13841408 target_arch = "arm" ,
You can’t perform that action at this time.
0 commit comments