#include <sys/time.h>
|
|
int
adjtime (const struct timeval *delta, struct timeval *olddelta); |
This call may be used by time servers that synchronize the clock.
#include <sys/time.h>
#include <stdio.h>
int main()
{
//Fill the input struct with 100 microseconds
const struct timeval delta = {0, 100};
struct timeval olddelta;
int retval;
retval = adjtime (δ, &olddelta); //Call adjtime
printf("adjtime returned %d",retval);
return 0;
}
Output
adjtime returned 0
| [EFAULT] | |
| The *delta or *olddelta argument was an invalid address | |
|
© 2007-2009 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. |
|