From: Jim Meyering Date: Sat, 9 Aug 2003 18:36:27 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: CPPI-1_11~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67c22b0af278f61fb2d6ec27941b1ca0b9944008;p=thirdparty%2Fcoreutils.git *** empty log message *** --- diff --git a/ChangeLog b/ChangeLog index 9e9b55e683..984380c18a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2003-08-06 Paul Eggert + + * NEWS: Add support for setting file timestamps to microsecond + resolution, on hosts that support this. + * src/copy.c, src/cp.c, src/install.c, src/touch.c: Include utimens.h. + * src/copy.c (copy_internal): + Set file timestamps with utimens, not utime. + * src/cp.c (re_protect): Likewise. + * src/install.c (change_timestamps): Likewise. + * src/touch.c (newtime, touch, main): Likewise. + 2003-08-09 Jim Meyering * Version 5.0.91. diff --git a/NEWS b/NEWS index f46845cc20..667f902fd3 100644 --- a/NEWS +++ b/NEWS @@ -7,10 +7,18 @@ GNU coreutils NEWS -*- outline -*- split accepts a new option -d or --numeric-suffixes. + cp, install, mv, and touch now preserve microsecond resolution on + file timestamps, on platforms that have the 'utimes' system call. + Unfortunately there is no system call yet to preserve file + timestamps to their full nanosecond resolution; microsecond + resolution is the best we can do right now. + ** Bug fixes `split -a0' works once again. + `df DIR' used to hang under some conditions on OSF/1 5.1. Now it doesn't. + * Major changes in release 5.0.90: diff --git a/m4/ChangeLog b/m4/ChangeLog index 3d91317cdc..d56535bdc2 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,8 @@ +2003-08-06 Paul Eggert + + * prereq.m4 (jm_PREREQ): Require gl_UTIMENS. + * utimens.m4: New file. + 2003-08-08 Paul Eggert * vasnprintf.m4 (gl_PREREQ_VASNPRINTF): diff --git a/m4/utimens.m4 b/m4/utimens.m4 new file mode 100644 index 0000000000..1549995059 --- /dev/null +++ b/m4/utimens.m4 @@ -0,0 +1,15 @@ +dnl Copyright (C) 2003 Free Software Foundation, Inc. +dnl This file is free software, distributed under the terms of the GNU +dnl General Public License. As a special exception to the GNU General +dnl Public License, this file may be distributed as part of a program +dnl that contains a configuration script generated by Autoconf, under +dnl the same distribution terms as the rest of that program. + +AC_DEFUN([gl_UTIMENS], +[ + dnl Prerequisites of lib/utimens.c. + AC_REQUIRE([gl_TIMESPEC]) + AC_REQUIRE([jm_CHECK_TYPE_STRUCT_TIMESPEC]) + AC_REQUIRE([jm_CHECK_TYPE_STRUCT_UTIMBUF]) + AC_CHECK_FUNCS_ONCE(utime) +])