RTEMS  5.1
Macros | Functions
adjtime.c File Reference

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)
 

Detailed Description

Adjust the Time to Synchronize the System Clock.

Function Documentation

◆ adjtime()

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.