Deleted Added
sdiff udiff text old ( 158415 ) new ( 161310 )
full compact
1/*-
2 * Copyright (c) 1994-1995 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 13 unchanged lines hidden (view full) ---

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
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/compat/linux/linux_signal.c 158415 2006-05-10 20:38:16Z netchild $");
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/lock.h>
35#include <sys/mutex.h>
36#include <sys/proc.h>
37#include <sys/signalvar.h>
38#include <sys/syscallsubr.h>

--- 5 unchanged lines hidden (view full) ---

44#include <machine/../linux32/linux.h>
45#include <machine/../linux32/linux32_proto.h>
46#else
47#include <machine/../linux/linux.h>
48#include <machine/../linux/linux_proto.h>
49#endif
50#include <compat/linux/linux_signal.h>
51#include <compat/linux/linux_util.h>
52
53void
54linux_to_bsd_sigset(l_sigset_t *lss, sigset_t *bss)
55{
56 int b, l;
57
58 SIGEMPTYSET(*bss);
59 bss->__bits[0] = lss->__bits[0] & ~((1U << LINUX_SIGTBLSZ) - 1);
60 bss->__bits[1] = lss->__bits[1];

--- 381 unchanged lines hidden (view full) ---

442 if (args->signum > 0 && args->signum <= LINUX_SIGTBLSZ)
443 tmp.signum = linux_to_bsd_signal[_SIG_IDX(args->signum)];
444 else
445 tmp.signum = args->signum;
446
447 tmp.pid = args->pid;
448 return (kill(td, &tmp));
449}