freebsd native api addition to deal with thread

This commit is contained in:
David Carlier 2021-10-04 18:00:10 +01:00
parent 3e328bd55e
commit 00d3a8a5b4
3 changed files with 7 additions and 0 deletions

View file

@ -1828,6 +1828,7 @@ fn test_freebsd(target: &str) {
"sys/stat.h",
"sys/statvfs.h",
"sys/sysctl.h",
"sys/thr.h",
"sys/time.h",
"sys/times.h",
"sys/timex.h",

View file

@ -1752,6 +1752,9 @@ sysctl
sysctlbyname
sysctlnametomib
telldir
thr_kill
thr_kill2
thr_self
timer_create
timer_delete
timer_getoverrun

View file

@ -1791,6 +1791,9 @@ extern "C" {
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_getaffinity_np(
td: ::pthread_t,