1/* 2 * Copyright (c) 1995 Scott Bartram 3 * Copyright (c) 1995 Steven Wallace 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/i386/ibcs2/ibcs2_signal.c 104306 2002-10-01 17:15:53Z jmallett $ |
29 */ 30 31#include <sys/param.h> 32#include <sys/systm.h> |
33#include <sys/lock.h> 34#include <sys/mutex.h> 35#include <sys/signalvar.h> 36#include <sys/sysproto.h> 37 38#include <i386/ibcs2/ibcs2_types.h> 39#include <i386/ibcs2/ibcs2_signal.h> 40#include <i386/ibcs2/ibcs2_proto.h> --- 410 unchanged lines hidden (view full) --- 451 register struct thread *td; 452 struct ibcs2_sigpending_args *uap; 453{ 454 struct proc *p = td->td_proc; 455 sigset_t bss; 456 ibcs2_sigset_t iss; 457 458 PROC_LOCK(p); |
459 bss = p->p_siglist; |
460 SIGSETAND(bss, p->p_sigmask); 461 PROC_UNLOCK(p); 462 bsd_to_ibcs2_sigset(&bss, &iss); 463 464 return copyout(&iss, SCARG(uap, mask), sizeof(iss)); 465} 466 467int --- 44 unchanged lines hidden --- |