interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / vendor / libc / src / new / common / linux_like / pthread.rs

25 lines · 840 bytes Raw Blame History
1use crate::prelude::*;
2
3extern "C" {
4 #[cfg(any(target_os = "linux", target_os = "l4re"))]
5 pub fn pthread_getaffinity_np(
6 thread: crate::pthread_t,
7 cpusetsize: size_t,
8 cpuset: *mut crate::cpu_set_t,
9 ) -> c_int;
10
11 pub fn pthread_getattr_np(native: crate::pthread_t, attr: *mut crate::pthread_attr_t) -> c_int;
12
13 #[cfg(target_os = "linux")]
14 pub fn pthread_getname_np(thread: crate::pthread_t, name: *mut c_char, len: size_t) -> c_int;
15
16 #[cfg(any(target_os = "linux", target_os = "l4re"))]
17 pub fn pthread_setaffinity_np(
18 thread: crate::pthread_t,
19 cpusetsize: size_t,
20 cpuset: *const crate::cpu_set_t,
21 ) -> c_int;
22
23 #[cfg(any(target_os = "android", target_os = "linux"))]
24 pub fn pthread_setname_np(thread: crate::pthread_t, name: *const c_char) -> c_int;
25}