Skip to content

Commit 2a80700

Browse files
committed
Auto merge of #2431 - devnexen:thr_self_solaris, r=Amanieu
solarish add thr_self fn
2 parents 3e328bd + 10a64fb commit 2a80700

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

libc-test/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,7 @@ fn test_solarish(target: &str) {
784784
"sys/wait.h",
785785
"syslog.h",
786786
"termios.h",
787+
"thread.h",
787788
"time.h",
788789
"ucontext.h",
789790
"unistd.h",

src/unix/solarish/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ pub type socklen_t = ::c_uint;
3535
pub type sa_family_t = u16;
3636
pub type pthread_t = ::c_uint;
3737
pub type pthread_key_t = ::c_uint;
38+
pub type thread_t = ::c_uint;
3839
pub type blksize_t = ::c_int;
3940
pub type nl_item = ::c_int;
4041
pub type mqd_t = *mut ::c_void;
@@ -2594,6 +2595,7 @@ extern "C" {
25942595
buflen: ::size_t,
25952596
result: *mut *mut ::group,
25962597
) -> ::c_int;
2598+
pub fn thr_self() -> ::thread_t;
25972599
pub fn pthread_sigmask(how: ::c_int, set: *const sigset_t, oldset: *mut sigset_t) -> ::c_int;
25982600
pub fn sem_open(name: *const ::c_char, oflag: ::c_int, ...) -> *mut sem_t;
25992601
pub fn getgrnam(name: *const ::c_char) -> *mut ::group;

0 commit comments

Comments
 (0)