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;

  err = __get_privileged_ports (&hostpriv, NULL);
  if (err)
    return __hurd_fail (EPERM);

  err = __host_adjust_time (hostpriv,
                         /* `time_value_t' and `struct timeval' are in
                               fact identical with the names changed.  */
                         *(time_value_t *) delta,
                         (time_value_t *) olddelta);
  __mach_port_deallocate (__mach_task_self (), hostpriv);

  if (err)
    return __hurd_fail (err);
  return 0;

Here is the call graph for this function: