aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
authorPaul Eggert2012-06-22 14:17:42 -0700
committerPaul Eggert2012-06-22 14:17:42 -0700
commitd35af63cd671563fd188c3b0a1ef30067027c7aa (patch)
treec9e01847ccf788e23794684da9331c3e0defd0d3 /src/buffer.h
parentf143bfe38b43ad0a9d817f05c25e418982dca06f (diff)
downloademacs-d35af63cd671563fd188c3b0a1ef30067027c7aa.tar.gz
emacs-d35af63cd671563fd188c3b0a1ef30067027c7aa.zip
Support higher-resolution time stamps.
Fixes: debbugs:9000
Diffstat (limited to 'src/buffer.h')
-rw-r--r--src/buffer.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 8e0604e90c2..97b45e15387 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -19,6 +19,7 @@ You should have received a copy of the GNU General Public License
19along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ 19along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
20 20
21#include <sys/types.h> /* for off_t, time_t */ 21#include <sys/types.h> /* for off_t, time_t */
22#include "systime.h" /* for EMACS_TIME */
22 23
23/* Accessing the parameters of the current buffer. */ 24/* Accessing the parameters of the current buffer. */
24 25
@@ -529,10 +530,13 @@ struct buffer
529 char local_flags[MAX_PER_BUFFER_VARS]; 530 char local_flags[MAX_PER_BUFFER_VARS];
530 531
531 /* Set to the modtime of the visited file when read or written. 532 /* Set to the modtime of the visited file when read or written.
532 -1 means visited file was nonexistent. 533 EMACS_NSECS (modtime) == NONEXISTENT_MODTIME_NSECS means
533 0 means visited file modtime unknown; in no case complain 534 visited file was nonexistent. EMACS_NSECS (modtime) ==
534 about any mismatch on next save attempt. */ 535 UNKNOWN_MODTIME_NSECS means visited file modtime unknown;
535 time_t modtime; 536 in no case complain about any mismatch on next save attempt. */
537#define NONEXISTENT_MODTIME_NSECS (-1)
538#define UNKNOWN_MODTIME_NSECS (-2)
539 EMACS_TIME modtime;
536 /* Size of the file when modtime was set. This is used to detect the 540 /* Size of the file when modtime was set. This is used to detect the
537 case where the file grew while we were reading it, so the modtime 541 case where the file grew while we were reading it, so the modtime
538 is still the same (since it's rounded up to seconds) but we're actually 542 is still the same (since it's rounded up to seconds) but we're actually