RTEMS CPU Kit with SuperCore
4.11.3
|
Adjust the Time to Synchronize the System Clock. More...
#include <time.h>
#include <sys/time.h>
#include <errno.h>
#include <rtems/score/timespec.h>
#include <rtems/score/threaddispatch.h>
#include <rtems/score/todimpl.h>
#include <rtems/config.h>
#include <rtems/seterr.h>
Functions | |
int | adjtime (const struct timeval *delta, struct timeval *olddelta) |
This method was initially added as part of porting NTP to RTEMS. More... | |
Adjust the Time to Synchronize the System Clock.
int adjtime | ( | const struct timeval * | delta, |
struct timeval * | olddelta | ||
) |
This method was initially added as part of porting NTP to RTEMS.
It is a BSD compatability function and now is available on GNU/Linux.
At one point there was a static variable named adjustment used by this implementation. I don't see any reason for it to be here based upon the GNU/Linux documentation.
References _Timestamp_Set(), _TOD_Adjust(), rtems_set_errno_and_return_minus_one, and TOD_MICROSECONDS_PER_SECOND.