Skip to content

Commit 17c585a

Browse files
terohuttunentgross35
authored andcommitted
linux: add missing pthread_attr_setstack
Adds missing pthread_attr_setstack. The getter function pthread_attr_getstack is already defined. (backport <#4349>) (cherry picked from commit 087ede1)
1 parent f05f950 commit 17c585a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

libc-test/semver/linux.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4032,6 +4032,7 @@ pthread_attr_setguardsize
40324032
pthread_attr_setinheritsched
40334033
pthread_attr_setschedparam
40344034
pthread_attr_setschedpolicy
4035+
pthread_attr_setstack
40354036
pthread_barrier_destroy
40364037
pthread_barrier_init
40374038
pthread_barrier_t

src/unix/linux_like/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1784,6 +1784,11 @@ extern "C" {
17841784
stackaddr: *mut *mut c_void,
17851785
stacksize: *mut size_t,
17861786
) -> c_int;
1787+
pub fn pthread_attr_setstack(
1788+
attr: *mut crate::pthread_attr_t,
1789+
stackaddr: *mut c_void,
1790+
stacksize: size_t,
1791+
) -> c_int;
17871792
pub fn memalign(align: size_t, size: size_t) -> *mut c_void;
17881793
pub fn setgroups(ngroups: size_t, ptr: *const crate::gid_t) -> c_int;
17891794
pub fn pipe2(fds: *mut c_int, flags: c_int) -> c_int;

0 commit comments

Comments
 (0)