File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
src/unix/bsd/freebsdlike/freebsd Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1547,6 +1547,7 @@ pthread_condattr_getclock
1547
1547
pthread_condattr_getpshared
1548
1548
pthread_condattr_setclock
1549
1549
pthread_condattr_setpshared
1550
+ pthread_getaffinity_np
1550
1551
pthread_getthreadid_np
1551
1552
pthread_kill
1552
1553
pthread_main_np
@@ -1555,6 +1556,7 @@ pthread_mutexattr_getpshared
1555
1556
pthread_mutexattr_setpshared
1556
1557
pthread_rwlockattr_getpshared
1557
1558
pthread_rwlockattr_setpshared
1559
+ pthread_setaffinity_np
1558
1560
pthread_set_name_np
1559
1561
ptrace
1560
1562
ptrace_io_desc
Original file line number Diff line number Diff line change @@ -1567,6 +1567,16 @@ extern "C" {
1567
1567
) -> :: c_int ;
1568
1568
1569
1569
pub fn pthread_getthreadid_np ( ) -> :: c_int ;
1570
+ pub fn pthread_getaffinity_np (
1571
+ td : :: pthread_t ,
1572
+ cpusetsize : :: size_t ,
1573
+ cpusetp : * mut cpuset_t ,
1574
+ ) -> :: c_int ;
1575
+ pub fn pthread_setaffinity_np (
1576
+ td : :: pthread_t ,
1577
+ cpusetsize : :: size_t ,
1578
+ cpusetp : * const cpuset_t ,
1579
+ ) -> :: c_int ;
1570
1580
1571
1581
#[ cfg_attr( all( target_os = "freebsd" , freebsd11) , link_name = "statfs@FBSD_1.0" ) ]
1572
1582
pub fn statfs ( path : * const :: c_char , buf : * mut statfs ) -> :: c_int ;
You can’t perform that action at this time.
0 commit comments