diff options
author | Rich Wareham <rjw57@cam.ac.uk> | 2014-02-24 23:12:00 +0000 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-02-24 22:00:03 -0300 |
commit | 0f438e42a839d67b1c66ceb2817ae90b0a368c2a (patch) | |
tree | 305c754f282544feac6077b405fe593eb4c51d98 /src/io.c | |
parent | 65e761065583ff445a5f78a454e931fc81bfe40f (diff) | |
download | rneovim-0f438e42a839d67b1c66ceb2817ae90b0a368c2a.tar.gz rneovim-0f438e42a839d67b1c66ceb2817ae90b0a368c2a.tar.bz2 rneovim-0f438e42a839d67b1c66ceb2817ae90b0a368c2a.zip |
move libuv functions to os.c and io.c module
Despite being an io library, the functions currently implemented with
libuv include some non-I/O tasks like getting the total amount of
memory.
Diffstat (limited to 'src/io.c')
-rw-r--r-- | src/io.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/io.c b/src/io.c new file mode 100644 index 0000000000..f75f6a03ea --- /dev/null +++ b/src/io.c @@ -0,0 +1,26 @@ +/* vi:set ts=8 sts=4 sw=4: + * + * VIM - Vi IMproved by Bram Moolenaar + * + * Do ":help uganda" in Vim to read copying and usage conditions. + * Do ":help credits" in Vim to see a list of people who contributed. + * See README.txt for an overview of the Vim source code. + */ + +/* + * io.c -- filesystem access, event loop etc. + */ + +#include "vim.h" + +#include "uv.h" + +int mch_chdir(char *path) +{ + if (p_verbose >= 5) { + verbose_enter(); + smsg((char_u *)"chdir(%s)", path); + verbose_leave(); + } + return uv_chdir(path); +} |