diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-08-12 19:19:03 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-08-12 19:19:03 +0000 |
commit | 40cfab477e0b52ca3271a8bea6d0b66578c5b521 (patch) | |
tree | 14eba8b1d0e8bca469498c29b574708acdaf47b8 /cpukit/posix | |
parent | Wait_support: removed the calls to mutex core to posix status codes (diff) | |
download | rtems-40cfab477e0b52ca3271a8bea6d0b66578c5b521.tar.bz2 |
time: It is not an error if the TOD is not set.
Diffstat (limited to 'cpukit/posix')
-rw-r--r-- | cpukit/posix/src/time.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/posix/src/time.c b/cpukit/posix/src/time.c index 40c5332759..cc501f464b 100644 --- a/cpukit/posix/src/time.c +++ b/cpukit/posix/src/time.c @@ -64,8 +64,10 @@ time_t time( { time_t seconds_since_epoch; - if ( !_TOD_Is_set() ) - set_errno_and_return_minus_one( EINVAL ); + /* + * 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. |