freebsd native api addition to deal with thread
This commit is contained in:
parent
3e328bd55e
commit
00d3a8a5b4
|
@ -1828,6 +1828,7 @@ fn test_freebsd(target: &str) {
|
||||||
"sys/stat.h",
|
"sys/stat.h",
|
||||||
"sys/statvfs.h",
|
"sys/statvfs.h",
|
||||||
"sys/sysctl.h",
|
"sys/sysctl.h",
|
||||||
|
"sys/thr.h",
|
||||||
"sys/time.h",
|
"sys/time.h",
|
||||||
"sys/times.h",
|
"sys/times.h",
|
||||||
"sys/timex.h",
|
"sys/timex.h",
|
||||||
|
|
|
@ -1752,6 +1752,9 @@ sysctl
|
||||||
sysctlbyname
|
sysctlbyname
|
||||||
sysctlnametomib
|
sysctlnametomib
|
||||||
telldir
|
telldir
|
||||||
|
thr_kill
|
||||||
|
thr_kill2
|
||||||
|
thr_self
|
||||||
timer_create
|
timer_create
|
||||||
timer_delete
|
timer_delete
|
||||||
timer_getoverrun
|
timer_getoverrun
|
||||||
|
|
|
@ -1791,6 +1791,9 @@ extern "C" {
|
||||||
|
|
||||||
pub fn uuidgen(store: *mut uuid, count: ::c_int) -> ::c_int;
|
pub fn uuidgen(store: *mut uuid, count: ::c_int) -> ::c_int;
|
||||||
|
|
||||||
|
pub fn thr_kill(id: ::c_long, sig: ::c_int) -> ::c_int;
|
||||||
|
pub fn thr_kill2(pid: ::pid_t, id: ::c_long, sig: ::c_int) -> ::c_int;
|
||||||
|
pub fn thr_self(tid: *mut ::c_long) -> ::c_int;
|
||||||
pub fn pthread_getthreadid_np() -> ::c_int;
|
pub fn pthread_getthreadid_np() -> ::c_int;
|
||||||
pub fn pthread_getaffinity_np(
|
pub fn pthread_getaffinity_np(
|
||||||
td: ::pthread_t,
|
td: ::pthread_t,
|
||||||
|
|
Loading…
Reference in a new issue