home *** CD-ROM | disk | FTP | other *** search
- #include <utime.h>
- #include <sys/time.h>
-
- int __utimes(char *path, struct timeval *tvp)
- {
- struct utimbuf buf, *times;
-
- if (tvp) {
- times = &buf;
- times->actime = tvp[0].tv_sec;
- times->modtime = tvp[1].tv_sec;
- }
- else
- times = NULL;
- return utime(path, times);
- }
-
- #include <gnu-stabs.h>
- #ifdef weak_alias
- weak_alias (__utimes, utimes);
- #endif
-