4.104.114.84.95
Last change
on this file since 811fae1 was
07d880f4,
checked in by Joel Sherrill <joel.sherrill@…>, on 01/31/99 at 20:45:31
|
Split psignal.c into many more files. This reduced the amount of
object code that has to be loaded just for initializing the signal
manager.
|
-
Property mode set to
100644
|
File size:
845 bytes
|
Line | |
---|
1 | /* |
---|
2 | * 3.3.2 Send a Signal to a Process, P1003.1b-1993, p. 68 |
---|
3 | * |
---|
4 | * COPYRIGHT (c) 1989-1998. |
---|
5 | * On-Line Applications Research Corporation (OAR). |
---|
6 | * Copyright assigned to U.S. Government, 1994. |
---|
7 | * |
---|
8 | * The license and distribution terms for this file may be |
---|
9 | * found in the file LICENSE in this distribution or at |
---|
10 | * http://www.OARcorp.com/rtems/license.html. |
---|
11 | * |
---|
12 | * $Id$ |
---|
13 | */ |
---|
14 | |
---|
15 | |
---|
16 | #include <pthread.h> |
---|
17 | #include <errno.h> |
---|
18 | |
---|
19 | #include <rtems/system.h> |
---|
20 | #include <rtems/posix/pthread.h> |
---|
21 | #include <rtems/posix/psignal.h> |
---|
22 | |
---|
23 | int kill( |
---|
24 | pid_t pid, |
---|
25 | int sig |
---|
26 | ) |
---|
27 | { |
---|
28 | return killinfo( pid, sig, NULL ); |
---|
29 | } |
---|
30 | |
---|
31 | /* |
---|
32 | * _kill_r |
---|
33 | * |
---|
34 | * This is the Newlib dependent reentrant version of kill(). |
---|
35 | */ |
---|
36 | |
---|
37 | #if defined(RTEMS_NEWLIB) |
---|
38 | |
---|
39 | #include <reent.h> |
---|
40 | |
---|
41 | int _kill_r( |
---|
42 | struct _reent *ptr, |
---|
43 | pid_t pid, |
---|
44 | int sig |
---|
45 | ) |
---|
46 | { |
---|
47 | return kill( pid, sig ); |
---|
48 | } |
---|
49 | #endif |
---|
50 | |
---|
Note: See
TracBrowser
for help on using the repository browser.