fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git] / toolchain / gcc / newlib / libc / sys / sparc64 / utime2.c
blob5f01e3b2b4909a2730b077f2c3742e340ec78a9f
1 /* utime() system call for sunos4 */
3 #ifndef __svr4__
5 #include <time.h>
6 #include <sys/time.h>
7 #include <utime.h>
9 int
10 utime (char *path, struct utimbuf *times)
12 if (times != NULL)
14 struct timeval timevals[2];
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);
23 return utimes (path, (struct timeval *) 0);
26 #endif