From 412dbff629308745d967718fbd91e272c91b055c Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 5 Apr 2007 21:17:27 +0000 Subject: 2007-04-05 Joel Sherrill * posix/Makefile.am, posix/include/rtems/posix/time.h, posix/src/adjtime.c, posix/src/alarm.c, posix/src/clockgetres.c, posix/src/condtimedwait.c, posix/src/mqueuetimedreceive.c, posix/src/mqueuetimedsend.c, posix/src/mutextimedlock.c, posix/src/nanosleep.c, posix/src/posixtimespecabsolutetimeout.c, posix/src/pthread.c, posix/src/pthreadcreate.c, posix/src/pthreadsetschedparam.c, posix/src/ptimer1.c, posix/src/sched.c, posix/src/semtimedwait.c, posix/src/sigtimedwait.c, posix/src/ualarm.c, rtems/src/clocktodtoseconds.c, score/Makefile.am, score/preinstall.am, score/include/rtems/score/tod.h, score/inline/rtems/score/tod.inl, score/src/coretod.c, score/src/coretodget.c, score/src/coretodgetuptime.c, score/src/coretodset.c, score/src/coretodtickle.c: Provide timespec manipulation routines in the SuperCore. Use them everywhere possible. This lead to significant cleanup in the API routines and eliminated some of the same code from the POSIX API. At this point, the SuperCore keeps time in POSIX timespec format properly from 1970. You just cannot set it before 1988 in keeping with RTEMS traditional behavior. * score/include/rtems/score/timespec.h, score/src/timespecaddto.c, score/src/timespecfromticks.c, score/src/timespecisvalid.c, score/src/timespeclessthan.c, score/src/timespecsubtract.c, score/src/timespectoticks.c: New files. * posix/src/posixintervaltotimespec.c, posix/src/posixtimespecsubtract.c, posix/src/posixtimespectointerval.c: Removed. --- cpukit/score/Makefile.am | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'cpukit/score/Makefile.am') diff --git a/cpukit/score/Makefile.am b/cpukit/score/Makefile.am index a4b217fda1..53aa6c4243 100644 --- a/cpukit/score/Makefile.am +++ b/cpukit/score/Makefile.am @@ -28,10 +28,10 @@ include_rtems_score_HEADERS = include/rtems/score/address.h \ include/rtems/score/object.h include/rtems/score/priority.h \ include/rtems/score/stack.h include/rtems/score/states.h \ include/rtems/score/sysstate.h include/rtems/score/thread.h \ - include/rtems/score/threadq.h include/rtems/score/tod.h \ - include/rtems/score/tqdata.h include/rtems/score/userext.h \ - include/rtems/score/watchdog.h include/rtems/score/wkspace.h \ - include/rtems/score/cpuopts.h + include/rtems/score/threadq.h include/rtems/score/timespec.h \ + include/rtems/score/tod.h include/rtems/score/tqdata.h \ + include/rtems/score/userext.h include/rtems/score/watchdog.h \ + include/rtems/score/wkspace.h include/rtems/score/cpuopts.h if HAS_MP # We only build multiprocessing related files if HAS_MP was defined @@ -140,7 +140,9 @@ libscore_a_SOURCES += src/threadq.c src/threadqdequeue.c \ src/threadqtimeout.c ## TIMESPEC_C_FILES -## libscore_a_SOURCES += +libscore_a_SOURCES += src/timespecaddto.c src/timespecfromticks.c \ + src/timespecisvalid.c src/timespeclessthan.c src/timespecsubtract.c \ + src/timespectoticks.c ## TOD_C_FILES libscore_a_SOURCES += src/coretod.c src/coretodset.c src/coretodget.c \ -- cgit v1.2.3