aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-04-24 00:27:09 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-04-24 00:44:06 +0200
commit77cb14cc6da5dff685c6e5a4005da433c39d5ff7 (patch)
tree4c3af7879d5cbef319e7df61c4c336eb1e0acee8 /src/nvim/os
parent32f3937477e05b13e05bba4463c5cfd417a2fde8 (diff)
downloadrneovim-77cb14cc6da5dff685c6e5a4005da433c39d5ff7.tar.gz
rneovim-77cb14cc6da5dff685c6e5a4005da433c39d5ff7.tar.bz2
rneovim-77cb14cc6da5dff685c6e5a4005da433c39d5ff7.zip
API: nvim__stats()
Use it to verify fsync() behavior.
Diffstat (limited to 'src/nvim/os')
-rw-r--r--src/nvim/os/fs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c
index 0414794d01..3e1af7f1c2 100644
--- a/src/nvim/os/fs.c
+++ b/src/nvim/os/fs.c
@@ -629,6 +629,7 @@ int os_fsync(int fd)
{
int r;
RUN_UV_FS_FUNC(r, uv_fs_fsync, fd, NULL);
+ g_stats.fsync++;
return r;
}