* Copyright (c) 1989 The Regents of the University of California.
* %sccs.include.redist.c%
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid
[] = "@(#)sigcompat.c 5.3 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
sv
->sv_flags
^= SV_INTERRUPT
; /* !SA_INTERRUPT */
ret
= sigaction(signo
, (struct sigaction
*)sv
, (struct sigaction
*)osv
);
osv
->sv_flags
^= SV_INTERRUPT
; /* !SA_INTERRUPT */
n
= sigprocmask(SIG_SETMASK
, (sigset_t
*) &mask
, (sigset_t
*) &omask
);
n
= sigprocmask(SIG_BLOCK
, (sigset_t
*) &mask
, (sigset_t
*) &omask
);
return (sigsuspend((sigset_t
*)&mask
));