Skip to content

Commit d0ebfae

Browse files
committed
Auto merge of #2434 - devnexen:obsd_sys_getthrid, r=JohnTitor
openbsd add getthrid fn.
2 parents 91fa905 + aa81e10 commit d0ebfae

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libc-test/semver/openbsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,7 @@ getrusage
968968
getservbyport
969969
getservent
970970
getsid
971+
getthrid
971972
glob
972973
glob_t
973974
globfree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,6 +1536,7 @@ extern "C" {
15361536
timeout: *const ::timespec,
15371537
) -> ::c_int;
15381538
pub fn mprotect(addr: *mut ::c_void, len: ::size_t, prot: ::c_int) -> ::c_int;
1539+
pub fn getthrid() -> ::pid_t;
15391540
pub fn pthread_attr_getguardsize(
15401541
attr: *const ::pthread_attr_t,
15411542
guardsize: *mut ::size_t,

0 commit comments

Comments
 (0)