Forked from
redox-os / relibc
822 commits behind the upstream repository.
-
David CARLIER authoredDavid CARLIER authored
signal.rs 917 B
use super::super::{types::*, Pal};
use crate::header::{
signal::{sigaction, siginfo_t, sigset_t, stack_t},
sys_time::itimerval,
time::timespec,
};
pub trait PalSignal: Pal {
fn getitimer(which: c_int, out: *mut itimerval) -> c_int;
fn kill(pid: pid_t, sig: c_int) -> c_int;
fn killpg(pgrp: pid_t, sig: c_int) -> c_int;
fn raise(sig: c_int) -> c_int;
fn setitimer(which: c_int, new: *const itimerval, old: *mut itimerval) -> c_int;
fn sigaction(sig: c_int, act: Option<&sigaction>, oact: Option<&mut sigaction>) -> c_int;
fn sigaltstack(ss: *const stack_t, old_ss: *mut stack_t) -> c_int;
fn sigpending(set: *mut sigset_t) -> c_int;
fn sigprocmask(how: c_int, set: *const sigset_t, oset: *mut sigset_t) -> c_int;
fn sigsuspend(set: *const sigset_t) -> c_int;
fn sigtimedwait(set: *const sigset_t, sig: *mut siginfo_t, tp: *const timespec) -> c_int;
}