diff options
-rw-r--r-- | cpukit/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/posix/Makefile.am | 2 | ||||
-rw-r--r-- | cpukit/posix/src/time.c | 51 | ||||
-rw-r--r-- | cpukit/score/src/objectgetnoprotection.c | 4 |
4 files changed, 7 insertions, 56 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 5b95fd4ab5..044d7f164e 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,11 @@ 2007-04-02 Joel Sherrill <joel@OARcorp.com> + * posix/Makefile.am, score/src/objectgetnoprotection.c: Eliminate some + dead code. + * posix/src/time.c: Removed. + +2007-04-02 Joel Sherrill <joel@OARcorp.com> + * posix/include/rtems/posix/timer.h, posix/src/alarm.c, posix/src/posixtimespectointerval.c, posix/src/ptimer1.c, posix/src/sysconf.c, posix/src/ualarm.c, rtems/src/clockget.c, diff --git a/cpukit/posix/Makefile.am b/cpukit/posix/Makefile.am index b9ca5cbe78..271925d97a 100644 --- a/cpukit/posix/Makefile.am +++ b/cpukit/posix/Makefile.am @@ -144,7 +144,7 @@ libposix_a_SOURCES += src/pspin.c src/pspindestroy.c src/pspininit.c \ src/pspinunlock.c ## TIME_C_FILES -libposix_a_SOURCES += src/adjtime.c src/time.c src/posixtimespecsubtract.c \ +libposix_a_SOURCES += src/adjtime.c src/posixtimespecsubtract.c \ src/posixtimespectointerval.c src/posixintervaltotimespec.c \ src/posixtimespecabsolutetimeout.c src/clockgetcpuclockid.c \ src/clockgetenableattr.c src/clockgetres.c src/clockgettime.c \ diff --git a/cpukit/posix/src/time.c b/cpukit/posix/src/time.c deleted file mode 100644 index 2f5769dfd8..0000000000 --- a/cpukit/posix/src/time.c +++ /dev/null @@ -1,51 +0,0 @@ -/* - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include <time.h> -#include <errno.h> - -#include <rtems/system.h> -#include <rtems/score/isr.h> -#include <rtems/score/thread.h> -#include <rtems/score/tod.h> - -#include <rtems/seterr.h> -#include <rtems/posix/time.h> - -/*PAGE - * - * 4.5.1 Get System Time, P1003.1b-1993, p. 91 - */ - -/* Using the implementation in newlib */ -#if 0 -time_t time( - time_t *tloc -) -{ - time_t seconds_since_epoch; - - /* - * No error is the time of day is not set. For RTEMS the system time - * starts out at the rtems epoch. - */ - - /* - * Internally the RTEMS epoch is 1988. This must be taken into account. - */ - - seconds_since_epoch = _TOD_Seconds_since_epoch; - - seconds_since_epoch += POSIX_TIME_SECONDS_1970_THROUGH_1988; - - if ( tloc ) - *tloc = seconds_since_epoch; - - return seconds_since_epoch; -} -#endif diff --git a/cpukit/score/src/objectgetnoprotection.c b/cpukit/score/src/objectgetnoprotection.c index 7f3981e1e0..d8df70cd46 100644 --- a/cpukit/score/src/objectgetnoprotection.c +++ b/cpukit/score/src/objectgetnoprotection.c @@ -79,9 +79,5 @@ Objects_Control *_Objects_Get_no_protection( /* * Not supported for multiprocessing */ -#if 0 && defined(RTEMS_MULTIPROCESSING) - _Objects_MP_Is_remote( information, id, location, &the_object ); - return the_object; -#endif return NULL; } |