Back to index

glibc  2.9
adjtime.c File Reference
#include <errno.h>
#include <sys/time.h>
#include <hurd.h>

Go to the source code of this file.


int __adjtime (struct timeval *delta, struct timeval *olddelta) const

Function Documentation

int __adjtime ( struct timeval delta,
struct timeval olddelta 
) const

Definition at line 28 of file adjtime.c.

  error_t err;
  mach_port_t hostpriv;

  hostpriv = __pid2task (-1);
  if (hostpriv == MACH_PORT_NULL)
    return -1;
  err = __host_adjust_time (hostpriv, delta, olddelta);
  __mach_port_deallocate (__mach_task_self (), hostpriv);
  if (err)
    return __hurd_fail (err);
  return 0;

Here is the call graph for this function: