source: rtems/cpukit/libcsupport/src/kill_noposix.c @ e02d5dd9

4.115
Last change on this file since e02d5dd9 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 824 bytes
Line 
1/**
2 * @file
3 *
4 * @brief Kill No POSIX
5 * @ingroup libcsupport
6 *
7 *  Marginal implementations of some POSIX API routines
8 *  to be used when POSIX is disabled.
9 *
10 *    + kill
11 *    + _kill_r
12 *    + __kill
13 *    + sleep
14 */
15
16/*
17 *  The license and distribution terms for this file may be
18 *  found in the file LICENSE in this distribution or at
19 *  http://www.rtems.org/license/LICENSE.
20 */
21
22#if HAVE_CONFIG_H
23#include "config.h"
24#endif
25
26#include <rtems.h>
27
28#include <unistd.h>
29
30/*
31 *  These are directly supported (and completely correct) in the posix api.
32 */
33
34#if !defined(RTEMS_POSIX_API)
35int kill( pid_t pid, int sig )
36{
37  return 0;
38}
39
40#if defined(RTEMS_NEWLIB)
41#include <reent.h>
42
43int _kill_r( struct _reent *ptr, pid_t pid, int sig )
44{
45  return 0;
46}
47#endif
48
49int __kill( pid_t pid, int sig )
50{
51  return 0;
52}
53#endif
Note: See TracBrowser for help on using the repository browser.