aboutsummaryrefslogtreecommitdiff
path: root/src/os/os.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/os.h')
-rw-r--r--src/os/os.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/os/os.h b/src/os/os.h
index 452c053868..a319b02343 100644
--- a/src/os/os.h
+++ b/src/os/os.h
@@ -1,5 +1,6 @@
#ifndef NEOVIM_OS_OS_H
#define NEOVIM_OS_OS_H
+#include <uv.h>
#include "vim.h"
@@ -81,4 +82,9 @@ int os_get_user_name(char *s, size_t len);
int os_get_uname(uid_t uid, char *s, size_t len);
char *os_get_user_directory(const char *name);
+/// Get stat information for a file.
+///
+/// @return OK on success, FAIL if an failure occured.
+int os_stat(const char_u *name, uv_stat_t *statbuf);
+
#endif // NEOVIM_OS_OS_H