home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
files
/
archiver
/
arc
/
utimes.c
< prev
Wrap
C/C++ Source or Header
|
1993-07-07
|
342b
|
24 lines
/* bsd utimes emulation for Sys V */
/* by Jon Zeeff */
#include <sys/types.h>
struct timeval {
long tv_sec;
long tv_usec;
};
utimes(path,tvp)
char *path;
struct timeval tvp[2];
{
time_t utimbuf[2];
utimbuf[0] = (time_t) tvp[0].tv_sec;
utimbuf[1] = (time_t) tvp[1].tv_sec;
return utime(path,utimbuf);
}