diff options
Diffstat (limited to 'lib/Autom4te')
-rw-r--r-- | lib/Autom4te/ChannelDefs.pm | 2 | ||||
-rw-r--r-- | lib/Autom4te/Channels.pm | 2 | ||||
-rw-r--r-- | lib/Autom4te/Configure_ac.pm | 2 | ||||
-rw-r--r-- | lib/Autom4te/FileUtils.pm | 14 | ||||
-rw-r--r-- | lib/Autom4te/Getopt.pm | 2 | ||||
-rw-r--r-- | lib/Autom4te/XFile.pm | 2 |
6 files changed, 9 insertions, 15 deletions
diff --git a/lib/Autom4te/ChannelDefs.pm b/lib/Autom4te/ChannelDefs.pm index 7800e546..bf6bf617 100644 --- a/lib/Autom4te/ChannelDefs.pm +++ b/lib/Autom4te/ChannelDefs.pm @@ -1,4 +1,4 @@ -# Copyright (C) 2002-2022 Free Software Foundation, Inc. +# Copyright (C) 2002-2023 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/lib/Autom4te/Channels.pm b/lib/Autom4te/Channels.pm index 0f2296f8..89f5f71f 100644 --- a/lib/Autom4te/Channels.pm +++ b/lib/Autom4te/Channels.pm @@ -1,4 +1,4 @@ -# Copyright (C) 2002-2022 Free Software Foundation, Inc. +# Copyright (C) 2002-2023 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/lib/Autom4te/Configure_ac.pm b/lib/Autom4te/Configure_ac.pm index d93171d6..fb00682b 100644 --- a/lib/Autom4te/Configure_ac.pm +++ b/lib/Autom4te/Configure_ac.pm @@ -1,4 +1,4 @@ -# Copyright (C) 2003-2022 Free Software Foundation, Inc. +# Copyright (C) 2003-2023 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/lib/Autom4te/FileUtils.pm b/lib/Autom4te/FileUtils.pm index 902efcb0..5d0deff9 100644 --- a/lib/Autom4te/FileUtils.pm +++ b/lib/Autom4te/FileUtils.pm @@ -1,4 +1,4 @@ -# Copyright (C) 2003-2022 Free Software Foundation, Inc. +# Copyright (C) 2003-2023 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -39,7 +39,7 @@ use strict; use warnings FATAL => 'all'; use Exporter; -use Time::HiRes qw(stat); +use File::stat; use IO::File; use Autom4te::Channels; @@ -115,16 +115,10 @@ sub mtime ($) return 0 if $file eq '-' || ! -f $file; - my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, - $atime,$mtime,$ctime,$blksize,$blocks) = stat ($file) + my $stat = stat ($file) or fatal "cannot stat $file: $!"; - # Unfortunately Time::HiRes converts timestamps to floating-point, and the - # rounding error can be several nanoseconds for circa-2021 timestamps. - # Perhaps some day Perl will support accurate file timestamps. For now, do - # the best we can without going outside Perl. - - return $mtime; + return $stat->mtime; } diff --git a/lib/Autom4te/Getopt.pm b/lib/Autom4te/Getopt.pm index c898f77a..fac5e36f 100644 --- a/lib/Autom4te/Getopt.pm +++ b/lib/Autom4te/Getopt.pm @@ -1,4 +1,4 @@ -# Copyright (C) 2012-2022 Free Software Foundation, Inc. +# Copyright (C) 2012-2023 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/lib/Autom4te/XFile.pm b/lib/Autom4te/XFile.pm index 30d3780c..d6a8602d 100644 --- a/lib/Autom4te/XFile.pm +++ b/lib/Autom4te/XFile.pm @@ -1,4 +1,4 @@ -# Copyright (C) 2001-2022 Free Software Foundation, Inc. +# Copyright (C) 2001-2023 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by |