Skip to content

Commit

Permalink
Auto merge of #2431 - devnexen:thr_self_solaris, r=Amanieu
Browse files Browse the repository at this point in the history
solarish add thr_self fn
  • Loading branch information
bors committed Oct 6, 2021
2 parents 3e328bd + 10a64fb commit 2a80700
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,7 @@ fn test_solarish(target: &str) {
"sys/wait.h",
"syslog.h",
"termios.h",
"thread.h",
"time.h",
"ucontext.h",
"unistd.h",
Expand Down
2 changes: 2 additions & 0 deletions src/unix/solarish/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pub type socklen_t = ::c_uint;
pub type sa_family_t = u16;
pub type pthread_t = ::c_uint;
pub type pthread_key_t = ::c_uint;
pub type thread_t = ::c_uint;
pub type blksize_t = ::c_int;
pub type nl_item = ::c_int;
pub type mqd_t = *mut ::c_void;
Expand Down Expand Up @@ -2594,6 +2595,7 @@ extern "C" {
buflen: ::size_t,
result: *mut *mut ::group,
) -> ::c_int;
pub fn thr_self() -> ::thread_t;
pub fn pthread_sigmask(how: ::c_int, set: *const sigset_t, oldset: *mut sigset_t) -> ::c_int;
pub fn sem_open(name: *const ::c_char, oflag: ::c_int, ...) -> *mut sem_t;
pub fn getgrnam(name: *const ::c_char) -> *mut ::group;
Expand Down

0 comments on commit 2a80700

Please sign in to comment.