2011-05-19 Ralf Corsépius <ralf.corsepius@rtems.org>

* posix/Makefile.am: Remove posixtime.h.
	* posix/src/clockgetres.c, posix/src/clockgettime.c,
	posix/src/clocksettime.c: Remove posixtime.h.
	Require CLOCK_PROCESS_CPUTIME_ID, CLOCK_THREAD_CPUTIME_ID.
	* posix/src/posixtime.h: Remove.
This commit is contained in:
Ralf Corsepius
2011-05-19 06:31:42 +00:00
parent 49115133ad
commit 20e3bf7a1b
6 changed files with 8 additions and 43 deletions

View File

@@ -1,3 +1,11 @@
2011-05-19 Ralf Corsépius <ralf.corsepius@rtems.org>
* posix/Makefile.am: Remove posixtime.h.
* posix/src/clockgetres.c, posix/src/clockgettime.c,
posix/src/clocksettime.c: Remove posixtime.h.
Require CLOCK_PROCESS_CPUTIME_ID, CLOCK_THREAD_CPUTIME_ID.
* posix/src/posixtime.h: Remove.
2011-05-18 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/Makefile.am: Reformat.

View File

@@ -16,7 +16,6 @@ libposix_a_SOURCES =
# Some POSIX functions that are nice to always have
libposix_a_SOURCES += src/nanosleep.c src/clockgettime.c src/clocksettime.c \
src/clockgetres.c src/sysconf.c
libposix_a_SOURCES += src/posixtime.h
include_rtems_posixdir = $(includedir)/rtems/posix

View File

@@ -28,8 +28,6 @@
#include <rtems/seterr.h>
#include "posixtime.h"
/*PAGE
*
* 14.2.1 Clocks, P1003.1b-1993, p. 263

View File

@@ -23,8 +23,6 @@
#include <rtems/seterr.h>
#include "posixtime.h"
/*PAGE
*
* 14.2.1 Clocks, P1003.1b-1993, p. 263

View File

@@ -23,8 +23,6 @@
#include <rtems/seterr.h>
#include "posixtime.h"
/*PAGE
*
* 14.2.1 Clocks, P1003.1b-1993, p. 263

View File

@@ -1,36 +0,0 @@
/*
* Copyright (c) 2011.
* Ralf Corsépius, Ulm/Germany.
*
* 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$
*/
/*
* Adapt RTEMS to newlibs with broken
* CLOCK_PROCESS_CPUTIME_ID/CLOCK_PROCESS_CPUTIME
* CLOCK_THREAD_CPUTIME_ID/CLOCK_THREAD_CPUTIME
*/
#ifndef _SRC_POSIX_POSIXTIME_H
#define _SRC_POSIX_POSIXTIME_H
#include <time.h>
#ifdef RTEMS_NEWLIB
/* Older newlibs bogusly used CLOCK_PROCESS_CPUTIME
instead of CLOCK_PROCESS_CPUTIME_ID */
#ifndef CLOCK_PROCESS_CPUTIME_ID
#define CLOCK_PROCESS_CPUTIME_ID CLOCK_PROCESS_CPUTIME
#endif
/* Older newlibs bogusly used CLOCK_THREAD_CPUTIME
instead of CLOCK_PROCESS_CPUTIME_ID */
#ifndef CLOCK_THREAD_CPUTIME_ID
#define CLOCK_THREAD_CPUTIME_ID CLOCK_THREAD_CPUTIME
#endif
#endif
#endif