From 1eb97ad84063ae276330c6f4b6c4638cea1154d3 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 1 Dec 2009 14:22:58 +0000 Subject: 2009-12-01 Joel Sherrill * libcsupport/Makefile.am: Split no_posix.c so using sleep() does not pull in kill() stubs. * libcsupport/src/kill_noposix.c, libcsupport/src/sleep_noposix.c: New files. * libcsupport/src/no_posix.c: Removed. --- cpukit/libcsupport/src/kill_noposix.c | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 cpukit/libcsupport/src/kill_noposix.c (limited to 'cpukit/libcsupport/src/kill_noposix.c') diff --git a/cpukit/libcsupport/src/kill_noposix.c b/cpukit/libcsupport/src/kill_noposix.c new file mode 100644 index 0000000000..8b7898b3f8 --- /dev/null +++ b/cpukit/libcsupport/src/kill_noposix.c @@ -0,0 +1,48 @@ +/* + * Marginal implementations of some POSIX API routines + * to be used when POSIX is disabled. + * + * + kill + * + _kill_r + * + __kill + * + sleep + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + */ + +#if HAVE_CONFIG_H +#include "config.h" +#endif + +#include + +#include + +/* + * These are directly supported (and completely correct) in the posix api. + */ + +#if !defined(RTEMS_POSIX_API) +int kill( pid_t pid, int sig ) +{ + return 0; +} + +#if defined(RTEMS_NEWLIB) +#include + +int _kill_r( struct _reent *ptr, pid_t pid, int sig ) +{ + return 0; +} +#endif + +int __kill( pid_t pid, int sig ) +{ + return 0; +} +#endif -- cgit v1.2.3