Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/vendor/libc/src/new/qurt/semaphore.rs # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / vendor / libc / src / new / qurt / semaphore.rs` 13 lines ยท 421 bytes Raw Blame History 1 //! Header: `semaphore.h` 2 3 use super::*; 4 use crate::prelude::*; 5 6 extern "C" { 7 pub fn sem_init(sem: *mut sem_t, pshared: c_int, value: c_uint) -> c_int; 8 pub fn sem_destroy(sem: *mut sem_t) -> c_int; 9 pub fn sem_wait(sem: *mut sem_t) -> c_int; 10 pub fn sem_trywait(sem: *mut sem_t) -> c_int; 11 pub fn sem_post(sem: *mut sem_t) -> c_int; 12 pub fn sem_getvalue(sem: *mut sem_t, sval: *mut c_int) -> c_int; 13 }