Back to index

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

Go to the source code of this file.


int utime (char *file, const struct utimbuf *times) const

Function Documentation

int utime ( char *  file,
const struct utimbuf times 
) const

Definition at line 30 of file utime.c.

  struct timeval timevals[2];
  struct timeval *tvp;

  if (times != NULL)
      timevals[0].tv_sec = (time_t) times->actime;
      timevals[0].tv_usec = 0L;
      timevals[1].tv_sec = (time_t) times->modtime;
      timevals[1].tv_usec = 0L;
      tvp = timevals;
    tvp = NULL;

  return __utimes (file, tvp);

Here is the call graph for this function: