Deleted Added
full compact
linux_signal.c (40203) linux_signal.c (41986)
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

--- 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 *
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

--- 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 * $Id: linux_signal.c,v 1.12 1998/08/15 22:29:43 bde Exp $
28 * $Id: linux_signal.c,v 1.13 1998/10/11 04:54:16 jdp Exp $
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/sysproto.h>
34#include <sys/proc.h>
35#include <sys/signalvar.h>
36

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

305 int pid;
306 int signum;
307 } */ tmp;
308
309#ifdef DEBUG
310 printf("Linux-emul(%d): kill(%d, %d)\n",
311 p->p_pid, args->pid, args->signum);
312#endif
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/sysproto.h>
34#include <sys/proc.h>
35#include <sys/signalvar.h>
36

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

305 int pid;
306 int signum;
307 } */ tmp;
308
309#ifdef DEBUG
310 printf("Linux-emul(%d): kill(%d, %d)\n",
311 p->p_pid, args->pid, args->signum);
312#endif
313 if (args->signum <= 0 || args->signum >= LINUX_NSIG)
313 if (args->signum < 0 || args->signum >= LINUX_NSIG)
314 return EINVAL;
315 tmp.pid = args->pid;
316 tmp.signum = linux_to_bsd_signal[args->signum];
317 return kill(p, &tmp);
318}
314 return EINVAL;
315 tmp.pid = args->pid;
316 tmp.signum = linux_to_bsd_signal[args->signum];
317 return kill(p, &tmp);
318}