diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-02-14 12:56:36 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-02-14 12:56:36 +0100 |
commit | a787019518a540a7b4d0070f15467931b870ac89 (patch) | |
tree | 684243a253d30b00c171f25144798f80400ecc4b /src/proto/fileio.pro | |
parent | 5fd0f5052f9a312bb4cfe7b4176b1211d45127ee (diff) | |
download | vim-git-a787019518a540a7b4d0070f15467931b870ac89.tar.gz |
patch 8.1.0915: fsync() may not work properly on Macv8.1.0915
Problem: fsync() may not work properly on Mac.
Solution: Use fcntl() with F_FULLFSYNC. (suggested by Justin M. Keyes)
Diffstat (limited to 'src/proto/fileio.pro')
-rw-r--r-- | src/proto/fileio.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/fileio.pro b/src/proto/fileio.pro index 21ac55c9d..e99cbc8bf 100644 --- a/src/proto/fileio.pro +++ b/src/proto/fileio.pro @@ -7,6 +7,7 @@ void set_file_options(int set_options, exarg_T *eap); void set_forced_fenc(exarg_T *eap); int check_file_readonly(char_u *fname, int perm); int buf_write(buf_T *buf, char_u *fname, char_u *sfname, linenr_T start, linenr_T end, exarg_T *eap, int append, int forceit, int reset_changed, int filtering); +int vim_fsync(int fd); void msg_add_fname(buf_T *buf, char_u *fname); void msg_add_lines(int insert_space, long lnum, off_T nchars); char_u *shorten_fname1(char_u *full_path); |