Skip to content

Commit f66774e

Browse files
committed
Add two missing pthread calls to the OpenBSD support.
1 parent 53bdffc commit f66774e

File tree

1 file changed

+9
-0
lines changed
  • src/unix/bsd/netbsdlike/openbsd

1 file changed

+9
-0
lines changed

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,6 +1431,15 @@ extern "C" {
14311431
len: ::size_t,
14321432
prot: ::c_int,
14331433
) -> ::c_int;
1434+
pub fn pthread_attr_getguardsize(
1435+
attr: *const ::pthread_attr_t,
1436+
guardsize: *mut ::size_t,
1437+
) -> ::c_int;
1438+
pub fn pthread_attr_getstack(
1439+
attr: *const ::pthread_attr_t,
1440+
stackaddr: *mut *mut ::c_void,
1441+
stacksize: *mut ::size_t,
1442+
) -> ::c_int;
14341443
pub fn pthread_main_np() -> ::c_int;
14351444
pub fn pthread_set_name_np(tid: ::pthread_t, name: *const ::c_char);
14361445
pub fn pthread_stackseg_np(

0 commit comments

Comments
 (0)