Lines Matching refs:oact
4083 struct k_sigaction *oact)
4087 int do_sigaction(int sig, struct k_sigaction *act, struct k_sigaction *oact)
4103 if (oact)
4104 *oact = *k;
4119 if (oact)
4120 oact->sa.sa_flags &= UAPI_SA_FLAGS;
4122 sigaction_compat_abi(act, oact);
4407 * @oact: used to save the previous sigaction
4412 struct sigaction __user *, oact,
4425 ret = do_sigaction(sig, act ? &new_sa : NULL, oact ? &old_sa : NULL);
4429 if (oact && copy_to_user(oact, &old_sa.sa, sizeof(old_sa.sa)))
4437 struct compat_sigaction __user *, oact,
4464 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL);
4465 if (!ret && oact) {
4467 &oact->sa_handler);
4468 ret |= put_compat_sigset(&oact->sa_mask, &old_ka.sa.sa_mask,
4469 sizeof(oact->sa_mask));
4470 ret |= put_user(old_ka.sa.sa_flags, &oact->sa_flags);
4473 &oact->sa_restorer);
4484 struct old_sigaction __user *, oact)
4503 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL);
4505 if (!ret && oact) {
4506 if (!access_ok(oact, sizeof(*oact)) ||
4507 __put_user(old_ka.sa.sa_handler, &oact->sa_handler) ||
4508 __put_user(old_ka.sa.sa_restorer, &oact->sa_restorer) ||
4509 __put_user(old_ka.sa.sa_flags, &oact->sa_flags) ||
4510 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask))
4520 struct compat_old_sigaction __user *, oact)
4543 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL);
4545 if (!ret && oact) {
4546 if (!access_ok(oact, sizeof(*oact)) ||
4548 &oact->sa_handler) ||
4550 &oact->sa_restorer) ||
4551 __put_user(old_ka.sa.sa_flags, &oact->sa_flags) ||
4552 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask))