Skip to content

Commit ae7c0ea

Browse files
authored
Merge pull request #3949 from sunshowers/posix-spawn-musl
[musl] add posix_spawn chdir functions
2 parents 94a0ccd + b68a159 commit ae7c0ea

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

libc-test/semver/linux-musl.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ getutxline
8989
lio_listio
9090
ntptimeval
9191
open_wmemstream
92+
posix_spawn_file_actions_addchdir_np
93+
posix_spawn_file_actions_addfchdir_np
9294
preadv2
9395
preadv64
9496
prlimit

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,17 @@ extern "C" {
980980
pub fn dirname(path: *mut ::c_char) -> *mut ::c_char;
981981
pub fn basename(path: *mut ::c_char) -> *mut ::c_char;
982982

983+
// Added in `musl` 1.1.24
984+
pub fn posix_spawn_file_actions_addchdir_np(
985+
actions: *mut ::posix_spawn_file_actions_t,
986+
path: *const ::c_char,
987+
) -> ::c_int;
988+
// Added in `musl` 1.1.24
989+
pub fn posix_spawn_file_actions_addfchdir_np(
990+
actions: *mut ::posix_spawn_file_actions_t,
991+
fd: ::c_int,
992+
) -> ::c_int;
993+
983994
pub fn getutxent() -> *mut utmpx;
984995
pub fn getutxid(ut: *const utmpx) -> *mut utmpx;
985996
pub fn getutxline(ut: *const utmpx) -> *mut utmpx;

0 commit comments

Comments
 (0)