Skip to content

cygwin: posix_spawn_file_actions_add[f]chdir[_np] #4387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions libc-test/semver/cygwin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -734,8 +734,12 @@ posix_fadvise
posix_fallocate
posix_madvise
posix_spawn
posix_spawn_file_actions_addchdir
posix_spawn_file_actions_addchdir_np
posix_spawn_file_actions_addclose
posix_spawn_file_actions_adddup2
posix_spawn_file_actions_addfchdir
posix_spawn_file_actions_addfchdir_np
posix_spawn_file_actions_addopen
posix_spawn_file_actions_destroy
posix_spawn_file_actions_init
Expand Down
16 changes: 16 additions & 0 deletions src/unix/cygwin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2479,6 +2479,22 @@ extern "C" {
fd: c_int,
newfd: c_int,
) -> c_int;
pub fn posix_spawn_file_actions_addchdir(
actions: *mut crate::posix_spawn_file_actions_t,
path: *const c_char,
) -> c_int;
pub fn posix_spawn_file_actions_addfchdir(
actions: *mut crate::posix_spawn_file_actions_t,
fd: c_int,
) -> c_int;
pub fn posix_spawn_file_actions_addchdir_np(
actions: *mut crate::posix_spawn_file_actions_t,
path: *const c_char,
) -> c_int;
pub fn posix_spawn_file_actions_addfchdir_np(
actions: *mut crate::posix_spawn_file_actions_t,
fd: c_int,
) -> c_int;

pub fn forkpty(
amaster: *mut c_int,
Expand Down
Loading