diff options
author | Karl Heuer <kwzh@gnu.org> | 1994-09-20 04:07:48 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1994-09-20 04:07:48 +0000 |
commit | 4556c2ae8076dcfc0192939723215d01c30547ca (patch) | |
tree | 7bfb3e92571f3315c6545fcc5f7b95d1cb5001b9 /src/sysdep.c | |
parent | 48760e5495b9bf3afe25e0bf8f966e73baad5867 (diff) | |
download | emacs-4556c2ae8076dcfc0192939723215d01c30547ca.tar.gz |
(set_file_times): Move this out of the USG conditional.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r-- | src/sysdep.c | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 85076908f16..51cbb04fc4c 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -3023,35 +3023,6 @@ rename (from, to) #endif -int -set_file_times (path, atime, mtime) - char *path; - EMACS_TIME atime, mtime; -{ -#ifdef HAVE_UTIMES - struct timeval tv[2]; - tv[0] = atime; - tv[1] = mtime; - return utimes (path, tv); -#else -#ifdef HAVE_UTIME -#ifndef HAVE_STRUCT_UTIMBUF - struct utimbuf { - long actime; - long modtime; - }; -#endif - struct utimbuf utb; - utb.actime = EMACS_SECS (atime); - utb.modtime = EMACS_SECS (mtime); - return utime (path, &utb); -#else /* !HAVE_UTIMES && !HAVE_UTIME */ - /* Should we set errno here? If so, set it to what? */ - return -1; -#endif -#endif -} - #ifdef HPUX #ifndef HAVE_PERROR @@ -3391,6 +3362,35 @@ readdirver (dirp) #endif /* NONSYSTEM_DIR_LIBRARY */ +int +set_file_times (path, atime, mtime) + char *path; + EMACS_TIME atime, mtime; +{ +#ifdef HAVE_UTIMES + struct timeval tv[2]; + tv[0] = atime; + tv[1] = mtime; + return utimes (path, tv); +#else +#ifdef HAVE_UTIME +#ifndef HAVE_STRUCT_UTIMBUF + struct utimbuf { + long actime; + long modtime; + }; +#endif + struct utimbuf utb; + utb.actime = EMACS_SECS (atime); + utb.modtime = EMACS_SECS (mtime); + return utime (path, &utb); +#else /* !HAVE_UTIMES && !HAVE_UTIME */ + /* Should we set errno here? If so, set it to what? */ + return -1; +#endif +#endif +} + /* mkdir and rmdir functions, for systems which don't have them. */ #ifndef HAVE_MKDIR |