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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [sparc64/] [utime2.c] - Blame information for rev 855

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
/* utime() system call for sunos4 */
2
 
3
#ifndef __svr4__
4
 
5
#include <time.h>
6
#include <sys/time.h>
7
#include <utime.h>
8
 
9
int
10
utime (char *path, struct utimbuf *times)
11
{
12
  if (times != NULL)
13
    {
14
      struct timeval timevals[2];
15
 
16
      timevals[0].tv_sec = (long int) times->actime;
17
      timevals[0].tv_usec = 0;
18
      timevals[1].tv_sec = (long int) times->modtime;
19
      timevals[1].tv_usec = 0;
20
      return utimes (path, timevals);
21
    }
22
 
23
  return utimes (path, (struct timeval *) 0);
24
}
25
 
26
#endif

powered by: WebSVN 2.1.0

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