File tree 3 files changed +32
-0
lines changed
src/unix/linux_like/linux/gnu
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) {
3734
3734
// FIXME: the glibc version used by the Sparc64 build jobs
3735
3735
// which use Debian 10.0 is too old.
3736
3736
"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 ,
3737
3741
3738
3742
// FIXME: Deprecated since glibc 2.30. Remove fn once upstream does.
3739
3743
"sysctl" if gnu => true ,
Original file line number Diff line number Diff line change @@ -627,6 +627,10 @@ ntp_adjtime
627
627
ntp_gettime
628
628
ntptimeval
629
629
open_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
630
634
preadv2
631
635
preadv64
632
636
prlimit
Original file line number Diff line number Diff line change @@ -1379,6 +1379,30 @@ extern "C" {
1379
1379
pub fn gnu_get_libc_version ( ) -> * const :: c_char ;
1380
1380
}
1381
1381
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
+
1382
1406
cfg_if ! {
1383
1407
if #[ cfg( any( target_arch = "x86" ,
1384
1408
target_arch = "arm" ,
You can’t perform that action at this time.
0 commit comments