From f154804273bf22bb3a7513e3ba8c134f902941aa Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 25 Feb 2011 10:20:02 +0000 Subject: =?UTF-8?q?2011-02-25=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libcsupport/src/sleep_noposix.c: Remove. * libcsupport/Makefile.am: Reflect changes above. * posix/src/sleep.c, posix/src/usleep.c: Remove. * posix/Makefile.am: Reflect changes above. * configure.ac: Error out if libc doesn't provide sleep, usleep. --- cpukit/libcsupport/Makefile.am | 2 +- cpukit/libcsupport/src/sleep_noposix.c | 55 ---------------------------------- 2 files changed, 1 insertion(+), 56 deletions(-) delete mode 100644 cpukit/libcsupport/src/sleep_noposix.c (limited to 'cpukit/libcsupport') diff --git a/cpukit/libcsupport/Makefile.am b/cpukit/libcsupport/Makefile.am index 090ca0b0f1..95eee5bd77 100644 --- a/cpukit/libcsupport/Makefile.am +++ b/cpukit/libcsupport/Makefile.am @@ -109,7 +109,7 @@ TERMINAL_IDENTIFICATION_C_FILES += src/ttyname.c LIBC_GLUE_C_FILES = src/__getpid.c src/__gettod.c src/__times.c \ src/truncate.c src/access.c src/stat.c src/lstat.c src/pathconf.c \ src/newlibc_reent.c src/newlibc_init.c src/newlibc_exit.c \ - src/kill_noposix.c src/sleep_noposix.c src/utsname.c + src/kill_noposix.c src/utsname.c BSD_LIBC_C_FILES = src/strlcpy.c src/strlcat.c src/issetugid.c diff --git a/cpukit/libcsupport/src/sleep_noposix.c b/cpukit/libcsupport/src/sleep_noposix.c deleted file mode 100644 index 2498dd9b0d..0000000000 --- a/cpukit/libcsupport/src/sleep_noposix.c +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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 - -/* - * 3.4.3 Delay Process Execution, P1003.1b-1993, p. 81 - * - * $Id$ - */ - -#include -#include - -#include - -#if !defined(RTEMS_POSIX_API) -unsigned int sleep( - unsigned int seconds -) -{ - rtems_status_code status; - rtems_interval ticks_per_second; - - ticks_per_second = rtems_clock_get_ticks_per_second() * seconds; - - status = rtems_task_wake_after( ticks_per_second ); - - /* - * Returns the "unslept" amount of time. In RTEMS signals are not - * interruptable, so tasks really sleep all of the requested time. - */ - - return 0; -} -#endif -- cgit v1.2.3