aboutsummaryrefslogtreecommitdiff
path: root/src/os/os.h
diff options
context:
space:
mode:
authorThomas Wienecke <wienecke.t@gmail.com>2014-03-30 01:34:00 +0100
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-03 10:32:41 -0300
commit81237af70e7ac2d2277f428da87ca5fa7b16c8e1 (patch)
treebb1e0b810a5868b8fcfd064184e079400bb8065f /src/os/os.h
parentdf78edbc926051082f2cf161332b451230787d03 (diff)
downloadrneovim-81237af70e7ac2d2277f428da87ca5fa7b16c8e1.tar.gz
rneovim-81237af70e7ac2d2277f428da87ca5fa7b16c8e1.tar.bz2
rneovim-81237af70e7ac2d2277f428da87ca5fa7b16c8e1.zip
Add os_stat to os/fs module.
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