Skip to content

Commit

Permalink
Merge pull request #3949 from sunshowers/posix-spawn-musl
Browse files Browse the repository at this point in the history
[musl] add posix_spawn chdir functions
  • Loading branch information
tgross35 authored Oct 15, 2024
2 parents 94a0ccd + b68a159 commit ae7c0ea
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc-test/semver/linux-musl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ getutxline
lio_listio
ntptimeval
open_wmemstream
posix_spawn_file_actions_addchdir_np
posix_spawn_file_actions_addfchdir_np
preadv2
preadv64
prlimit
Expand Down
11 changes: 11 additions & 0 deletions src/unix/linux_like/linux/musl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,17 @@ extern "C" {
pub fn dirname(path: *mut ::c_char) -> *mut ::c_char;
pub fn basename(path: *mut ::c_char) -> *mut ::c_char;

// Added in `musl` 1.1.24
pub fn posix_spawn_file_actions_addchdir_np(
actions: *mut ::posix_spawn_file_actions_t,
path: *const ::c_char,
) -> ::c_int;
// Added in `musl` 1.1.24
pub fn posix_spawn_file_actions_addfchdir_np(
actions: *mut ::posix_spawn_file_actions_t,
fd: ::c_int,
) -> ::c_int;

pub fn getutxent() -> *mut utmpx;
pub fn getutxid(ut: *const utmpx) -> *mut utmpx;
pub fn getutxline(ut: *const utmpx) -> *mut utmpx;
Expand Down

0 comments on commit ae7c0ea

Please sign in to comment.