From: Zac Medico Date: Fri, 27 Nov 2009 22:38:41 +0000 (-0000) Subject: Add a note about lack of nanosecond precision in movefile(). (trunk r14900) X-Git-Tag: v2.1.7.8~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=31e355508a74ca42b04fc9567592dbfd3ffc5fbd;p=portage.git Add a note about lack of nanosecond precision in movefile(). (trunk r14900) svn path=/main/branches/2.1.7/; revision=14905 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index e314654f4..e0c88813a 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -7566,6 +7566,9 @@ def movefile(src, dest, newmtime=None, sstat=None, mysettings=None, if hardlinked: newmtime = long(os.stat(dest).st_mtime) else: + # Note: It is not possible to preserve nanosecond precision + # (supported in POSIX.1-2008 via utimensat) with the IEEE 754 + # double precision float which only has a 53 bit significand. if newmtime is not None: os.utime(dest, (newmtime, newmtime)) else: