1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-06 05:52:32 -08:00

* fileio.c (HAVE_FSYNC): Define, if appropriate.

(Fwrite_region): Use HAVE_FSYNC.
	* s-aix3-2.h (HAVE_FSYNC): Define.
This commit is contained in:
Jim Blandy 1993-03-20 19:45:17 +00:00
parent 59653951e7
commit 6e23c83e03
2 changed files with 11 additions and 5 deletions

View file

@ -51,6 +51,14 @@ extern int sys_nerr;
#include <sys/time.h>
#endif
#ifndef USG
#ifndef VMS
#ifndef BSD4_1
#define HAVE_FSYNC
#endif
#endif
#endif
#include "lisp.h"
#include "intervals.h"
#include "buffer.h"
@ -2658,15 +2666,11 @@ to the file, instead of any buffer contents, and END is ignored.")
immediate_quit = 0;
#ifndef USG
#ifndef VMS
#ifndef BSD4_1
#ifdef HAVE_FSYNC
/* Note fsync appears to change the modtime on BSD4.2 (both vax and sun).
Disk full in NFS may be reported here. */
if (fsync (desc) < 0)
failure = 1, save_errno = errno;
#endif
#endif
#endif
/* Spurious "file has changed on disk" warnings have been

View file

@ -10,3 +10,5 @@
#define HAVE_ALLOCA
#undef rindex
#undef index
#define HAVE_FSYNC