GNU bug report logs - #13944
file synchronization fixes

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Wed, 13 Mar 2013 07:40:01 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 13944 <at> debbugs.gnu.org
Subject: bug#13944: file synchronization fixes
Date: Wed, 13 Mar 2013 20:02:57 +0200
> Date: Wed, 13 Mar 2013 00:38:00 -0700
> From: Paul Eggert <eggert <at> cs.ucla.edu>
> CC: Eli Zaretskii <eliz <at> gnu.org>
> 
> Attached a patch which I'd like to install.  If MS-Windows has fdatasync
> already this should build on MS-Windows; if not, the MS-Windows port
> needs to compile lib/fdatasync.c or support an fdatasync substitute
> in some other way.

I think all that is needed for the MS-Windows build is this one line:

--- nt/inc/ms-w32.h	2013-02-25 17:36:03 +0000
+++ nt/inc/ms-w32.h	2013-03-13 17:57:30 +0000
@@ -225,6 +225,7 @@ extern int sys_unlink (const char *);
 #define fileno	  _fileno
 #endif
 #define fsync	  _commit
+#define fdatasync _commit
 #define ftruncate _chsize
 #define getpid    _getpid
 #ifdef _MSC_VER

Thanks.




This bug report was last modified 12 years and 129 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.