diff options
| author | Paul Eggert | 2013-03-13 11:42:22 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-03-13 11:42:22 -0700 |
| commit | 47d7532e093db8a5068a40c587915121ffaaad18 (patch) | |
| tree | a99ea6eca34ea0e9c8d6e8a8d6291833ce27dca5 /admin/CPP-DEFINES | |
| parent | c7ffccaf17d63cefd34bef0a9becc4e68df3b115 (diff) | |
| download | emacs-47d7532e093db8a5068a40c587915121ffaaad18.tar.gz emacs-47d7532e093db8a5068a40c587915121ffaaad18.zip | |
File synchronization fixes.
* admin/CPP-DEFINES (BSD_SYSTEM, HAVE_FSYNC): Remove.
* admin/merge-gnulib (GNULIB_MODULES): Add fsync, fdatasync.
* configure.ac (BSD_SYSTEM, BSD_SYSTEM_AHB): Remove; no longer needed.
(fsync): Remove check; now done by gnulib.
* lib/fdatasync.c, lib/fsync.c, m4/fdatasync.m4, m4/fsync.m4:
New files, from gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib-src/Makefile.in (LIB_FDATASYNC): New macro.
(emacsclient${EXEEXT}): Use it.
* lib-src/emacsclient.c (main): Use fdatasync, not fsync, since we don't
care about metadata. Keep trying if interrupted.
* lib-src/movemail.c (main, popmail): Don't worry about BSD_SYSTEM, since
fsync is available everywhere (or there is a substitute). Don't
report an error if fsync returns EINVAL.
* nt/inc/ms-w32.h (fdatasync): New macro, suggested by Eli Zaretskii.
* src/Makefile.in (LIB_FDATASYNC): New macro.
(LIBES): Use it.
* src/conf_post.h (BSD_SYSTEM, BSD_SYSTEM_AHB): Remove; no longer needed.
* src/fileio.c (Fwrite_region, write_region_inhibit_fsync):
Don't worry about HAVE_FSYNC, since a substitute fsync is
available if the system lacks one.
(Fwrite_regin): Retry fsync if interrupted.
Fixes: debbugs:13944
Diffstat (limited to 'admin/CPP-DEFINES')
| -rw-r--r-- | admin/CPP-DEFINES | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/admin/CPP-DEFINES b/admin/CPP-DEFINES index da8dec5a0f6..c11c3c3b489 100644 --- a/admin/CPP-DEFINES +++ b/admin/CPP-DEFINES | |||
| @@ -9,7 +9,6 @@ documented in config.in, and this file would not be necessary. | |||
| 9 | 9 | ||
| 10 | AIX | 10 | AIX |
| 11 | _AIX | 11 | _AIX |
| 12 | BSD_SYSTEM | ||
| 13 | CYGWIN Compiling the Cygwin port. | 12 | CYGWIN Compiling the Cygwin port. |
| 14 | __CYGWIN__ Ditto | 13 | __CYGWIN__ Ditto |
| 15 | GNU_LINUX | 14 | GNU_LINUX |
| @@ -149,7 +148,6 @@ HAVE_FORK | |||
| 149 | HAVE_FREEIFADDRS | 148 | HAVE_FREEIFADDRS |
| 150 | HAVE_FREETYPE | 149 | HAVE_FREETYPE |
| 151 | HAVE_FSEEKO | 150 | HAVE_FSEEKO |
| 152 | HAVE_FSYNC | ||
| 153 | HAVE_FUTIMENS | 151 | HAVE_FUTIMENS |
| 154 | HAVE_FUTIMES | 152 | HAVE_FUTIMES |
| 155 | HAVE_FUTIMESAT | 153 | HAVE_FUTIMESAT |