OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [sys/] [sparc64/] [utime2.c] - Diff between revs 1010 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 1010 Rev 1765
/* utime() system call for sunos4 */
/* utime() system call for sunos4 */
 
 
#ifndef __svr4__
#ifndef __svr4__
 
 
#include <time.h>
#include <time.h>
#include <sys/time.h>
#include <sys/time.h>
#include <utime.h>
#include <utime.h>
 
 
int
int
utime (char *path, struct utimbuf *times)
utime (char *path, struct utimbuf *times)
{
{
  if (times != NULL)
  if (times != NULL)
    {
    {
      struct timeval timevals[2];
      struct timeval timevals[2];
 
 
      timevals[0].tv_sec = (long int) times->actime;
      timevals[0].tv_sec = (long int) times->actime;
      timevals[0].tv_usec = 0;
      timevals[0].tv_usec = 0;
      timevals[1].tv_sec = (long int) times->modtime;
      timevals[1].tv_sec = (long int) times->modtime;
      timevals[1].tv_usec = 0;
      timevals[1].tv_usec = 0;
      return utimes (path, timevals);
      return utimes (path, timevals);
    }
    }
 
 
  return utimes (path, (struct timeval *) 0);
  return utimes (path, (struct timeval *) 0);
}
}
 
 
#endif
#endif
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.