all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: 13944@debbugs.gnu.org
Subject: bug#13944: file synchronization fixes
Date: Wed, 13 Mar 2013 20:02:57 +0200	[thread overview]
Message-ID: <83zjy7i3e6.fsf@gnu.org> (raw)
In-Reply-To: <51402CD8.1050005@cs.ucla.edu>

> Date: Wed, 13 Mar 2013 00:38:00 -0700
> From: Paul Eggert <eggert@cs.ucla.edu>
> CC: Eli Zaretskii <eliz@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.





  reply	other threads:[~2013-03-13 18:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-13  7:38 bug#13944: file synchronization fixes Paul Eggert
2013-03-13 18:02 ` Eli Zaretskii [this message]
2013-03-13 18:43   ` Paul Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83zjy7i3e6.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=13944@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.