Back to index

glibc  2.9
utimes.c File Reference
#include <utime.h>
#include <sys/time.h>
#include <errno.h>
#include <stddef.h>

Go to the source code of this file.


int __utimes (const char *file, const struct timeval tvp[2])

Function Documentation

int __utimes ( const char *  file,
const struct timeval  tvp[2] 

Definition at line 27 of file utimes.c.

  struct utimbuf buf, *times;

  if (tvp)
      times = &buf;
      buf.actime = tvp[0].tv_sec + tvp[0].tv_usec / 1000000;
      buf.modtime = tvp[1].tv_sec + tvp[1].tv_usec / 1000000;
    times = NULL;

  return utime (file, times);

Here is the call graph for this function: