5
Last change
on this file since 77fbbd6 was
3c293cc,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/12/16 at 05:58:35
|
posix: Rename killinfo()
Apparently killinfo() is not defined by POSIX, glibc or FreeBSD. Rename
killinfo() to _POSIX_signals_Send() to cleary mark it as an internal
function.
|
-
Property mode set to
100644
|
File size:
767 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Send a Signal to a Process |
---|
5 | * @ingroup POSIXAPI |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * 3.3.2 Send a Signal to a Process, P1003.1b-1993, p. 68 |
---|
10 | * |
---|
11 | * COPYRIGHT (c) 1989-2007. |
---|
12 | * On-Line Applications Research Corporation (OAR). |
---|
13 | * |
---|
14 | * The license and distribution terms for this file may be |
---|
15 | * found in the file LICENSE in this distribution or at |
---|
16 | * http://www.rtems.org/license/LICENSE. |
---|
17 | */ |
---|
18 | |
---|
19 | #if HAVE_CONFIG_H |
---|
20 | #include "config.h" |
---|
21 | #endif |
---|
22 | |
---|
23 | #include <pthread.h> |
---|
24 | #include <errno.h> |
---|
25 | |
---|
26 | #include <rtems/system.h> |
---|
27 | #include <rtems/posix/pthreadimpl.h> |
---|
28 | #include <rtems/posix/psignalimpl.h> |
---|
29 | |
---|
30 | #if defined(RTEMS_NEWLIB) |
---|
31 | |
---|
32 | #include <reent.h> |
---|
33 | |
---|
34 | int _kill_r( |
---|
35 | struct _reent *ptr, |
---|
36 | pid_t pid, |
---|
37 | int sig |
---|
38 | ) |
---|
39 | { |
---|
40 | return _POSIX_signals_Send( pid, sig, NULL ); |
---|
41 | } |
---|
42 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.