Skip to content

Commit 328eff4

Browse files
committed
Auto merge of #1568 - ltratt:master, r=gnzlbg
Add two missing pthread calls to the OpenBSD support. These are shamelessly copied from the NetBSD support, whose prototypes in this regard are identical to OpenBSD's.
2 parents fe7ccff + f66774e commit 328eff4

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
@@ -1446,6 +1446,15 @@ extern "C" {
14461446
len: ::size_t,
14471447
prot: ::c_int,
14481448
) -> ::c_int;
1449+
pub fn pthread_attr_getguardsize(
1450+
attr: *const ::pthread_attr_t,
1451+
guardsize: *mut ::size_t,
1452+
) -> ::c_int;
1453+
pub fn pthread_attr_getstack(
1454+
attr: *const ::pthread_attr_t,
1455+
stackaddr: *mut *mut ::c_void,
1456+
stacksize: *mut ::size_t,
1457+
) -> ::c_int;
14491458
pub fn pthread_main_np() -> ::c_int;
14501459
pub fn pthread_set_name_np(tid: ::pthread_t, name: *const ::c_char);
14511460
pub fn pthread_stackseg_np(

0 commit comments

Comments
 (0)