Skip to content

Commit

Permalink
Auto merge of #1568 - ltratt:master, r=gnzlbg
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Nov 19, 2019
2 parents fe7ccff + f66774e commit 328eff4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/unix/bsd/netbsdlike/openbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1446,6 +1446,15 @@ extern "C" {
len: ::size_t,
prot: ::c_int,
) -> ::c_int;
pub fn pthread_attr_getguardsize(
attr: *const ::pthread_attr_t,
guardsize: *mut ::size_t,
) -> ::c_int;
pub fn pthread_attr_getstack(
attr: *const ::pthread_attr_t,
stackaddr: *mut *mut ::c_void,
stacksize: *mut ::size_t,
) -> ::c_int;
pub fn pthread_main_np() -> ::c_int;
pub fn pthread_set_name_np(tid: ::pthread_t, name: *const ::c_char);
pub fn pthread_stackseg_np(
Expand Down

0 comments on commit 328eff4

Please sign in to comment.