Skip to content

Commit 2c9b059

Browse files
authored
Merge pull request #4387 from Berrysoft/dev/cygwin-posix-spawn-file-actions-addchdir
cygwin: posix_spawn_file_actions_add[f]chdir[_np]
2 parents 821a7e6 + e46d0c7 commit 2c9b059

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

libc-test/semver/cygwin.txt

+4
Original file line numberDiff line numberDiff line change
@@ -734,8 +734,12 @@ posix_fadvise
734734
posix_fallocate
735735
posix_madvise
736736
posix_spawn
737+
posix_spawn_file_actions_addchdir
738+
posix_spawn_file_actions_addchdir_np
737739
posix_spawn_file_actions_addclose
738740
posix_spawn_file_actions_adddup2
741+
posix_spawn_file_actions_addfchdir
742+
posix_spawn_file_actions_addfchdir_np
739743
posix_spawn_file_actions_addopen
740744
posix_spawn_file_actions_destroy
741745
posix_spawn_file_actions_init

src/unix/cygwin/mod.rs

+16
Original file line numberDiff line numberDiff line change
@@ -2479,6 +2479,22 @@ extern "C" {
24792479
fd: c_int,
24802480
newfd: c_int,
24812481
) -> c_int;
2482+
pub fn posix_spawn_file_actions_addchdir(
2483+
actions: *mut crate::posix_spawn_file_actions_t,
2484+
path: *const c_char,
2485+
) -> c_int;
2486+
pub fn posix_spawn_file_actions_addfchdir(
2487+
actions: *mut crate::posix_spawn_file_actions_t,
2488+
fd: c_int,
2489+
) -> c_int;
2490+
pub fn posix_spawn_file_actions_addchdir_np(
2491+
actions: *mut crate::posix_spawn_file_actions_t,
2492+
path: *const c_char,
2493+
) -> c_int;
2494+
pub fn posix_spawn_file_actions_addfchdir_np(
2495+
actions: *mut crate::posix_spawn_file_actions_t,
2496+
fd: c_int,
2497+
) -> c_int;
24822498

24832499
pub fn forkpty(
24842500
amaster: *mut c_int,

0 commit comments

Comments
 (0)