pub fn sys_rt_sigaction(
_locked: &mut Locked<Unlocked>,
current_task: &CurrentTask,
signum: UncheckedSignal,
user_action: MultiArchUserRef<sigaction_t, sigaction64_t>,
user_old_action: MultiArchUserRef<sigaction_t, sigaction64_t>,
sigset_size: usize,
) -> Result<(), Errno>Expand description
The rt_sigaction syscall allows the calling process to examine and change the action
associated with a specific signal.
§Args
signum: The signal number to examine or change. It can be any valid signal exceptSIGKILLandSIGSTOP.user_action: A pointer to asigactionstructure. If it is not null, the new action for signalsignumis installed from it.user_old_action: A pointer to asigactionstructure. If it is not null, the previous action is saved in it.sigset_size: The size in bytes of the signal sets inuser_actionanduser_old_action.
§Returns
Ok(()) on success. Otherwise, returns an Errno with the error code.