mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-18 14:11:38 -08:00
* 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
|
||
|---|---|---|
| .. | ||
| alloca.in.h | ||
| allocator.c | ||
| allocator.h | ||
| at-func.c | ||
| c-ctype.c | ||
| c-ctype.h | ||
| c-strcase.h | ||
| c-strcasecmp.c | ||
| c-strncasecmp.c | ||
| careadlinkat.c | ||
| careadlinkat.h | ||
| close-stream.c | ||
| close-stream.h | ||
| COPYING | ||
| dirent.in.h | ||
| dosname.h | ||
| dtoastr.c | ||
| dtotimespec.c | ||
| dup2.c | ||
| euidaccess.c | ||
| execinfo.c | ||
| execinfo.in.h | ||
| faccessat.c | ||
| fcntl.in.h | ||
| fdatasync.c | ||
| fdopendir.c | ||
| filemode.c | ||
| filemode.h | ||
| fpending.c | ||
| fpending.h | ||
| fstatat.c | ||
| fsync.c | ||
| ftoastr.c | ||
| ftoastr.h | ||
| getgroups.c | ||
| getloadavg.c | ||
| getopt.c | ||
| getopt.in.h | ||
| getopt1.c | ||
| getopt_.h | ||
| getopt_int.h | ||
| gettext.h | ||
| gettime.c | ||
| gettimeofday.c | ||
| gnulib.mk | ||
| group-member.c | ||
| ignore-value.h | ||
| intprops.h | ||
| inttypes.in.h | ||
| lstat.c | ||
| Makefile.am | ||
| makefile.w32-in | ||
| md5.c | ||
| md5.h | ||
| memrchr.c | ||
| min-max.h | ||
| mktime-internal.h | ||
| mktime.c | ||
| openat-die.c | ||
| openat-priv.h | ||
| openat-proc.c | ||
| openat.h | ||
| pathmax.h | ||
| pselect.c | ||
| pthread_sigmask.c | ||
| putenv.c | ||
| readlink.c | ||
| readlinkat.c | ||
| root-uid.h | ||
| save-cwd.c | ||
| save-cwd.h | ||
| sha1.c | ||
| sha1.h | ||
| sha256.c | ||
| sha256.h | ||
| sha512.c | ||
| sha512.h | ||
| sig2str.c | ||
| sig2str.h | ||
| signal.in.h | ||
| stat-time.c | ||
| stat-time.h | ||
| stat.c | ||
| stdalign.in.h | ||
| stdarg.in.h | ||
| stdbool.in.h | ||
| stddef.in.h | ||
| stdint.in.h | ||
| stdio.in.h | ||
| stdlib.in.h | ||
| strftime.c | ||
| strftime.h | ||
| string.in.h | ||
| strtoimax.c | ||
| strtol.c | ||
| strtoll.c | ||
| strtoul.c | ||
| strtoull.c | ||
| strtoumax.c | ||
| symlink.c | ||
| sys_select.in.h | ||
| sys_stat.in.h | ||
| sys_time.in.h | ||
| sys_types.in.h | ||
| time.in.h | ||
| time_r.c | ||
| timespec-add.c | ||
| timespec-sub.c | ||
| timespec.c | ||
| timespec.h | ||
| u64.c | ||
| u64.h | ||
| unistd.c | ||
| unistd.in.h | ||
| unsetenv.c | ||
| utimens.c | ||
| utimens.h | ||
| verify.h | ||
| xalloc-oversized.h | ||