Back to index

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

Go to the source code of this file.


int __futimes (int fd, const struct timeval tvp[2])

Function Documentation

int __futimes ( int  fd,
const struct timeval  tvp[2] 

Definition at line 29 of file futimes.c.

  union tv
    struct timeval tv;
    time_value_t tvt;
  const union tv *u = (const union tv *) tvp;
  union tv nulltv[2];
  error_t err;

  if (tvp == NULL)
      /* Setting the number of microseconds to `-1' tells the
         underlying filesystems to use the current time.  */
      nulltv[0].tvt.microseconds = nulltv[1].tvt.microseconds = -1;
      u = nulltv;

  err = HURD_DPORT_USE (fd, __file_utimes (port, u[0].tvt, u[1].tvt));
  return err ? __hurd_dfail (fd, err) : 0;

Here is the call graph for this function: