aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authorRich Wareham <rjw57@cam.ac.uk>2014-02-24 23:12:00 +0000
committerThiago de Arruda <tpadilha84@gmail.com>2014-02-24 22:00:03 -0300
commit0f438e42a839d67b1c66ceb2817ae90b0a368c2a (patch)
tree305c754f282544feac6077b405fe593eb4c51d98 /src/os_unix.c
parent65e761065583ff445a5f78a454e931fc81bfe40f (diff)
downloadrneovim-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/os_unix.c')
-rw-r--r--src/os_unix.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 8c46dab522..f67307346e 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -32,8 +32,6 @@
#include "os_unixx.h" /* unix includes for os_unix.c only */
-#include "uv.h"
-
#ifdef HAVE_SELINUX
# include <selinux/selinux.h>
static int selinux_enabled = -1;
@@ -222,16 +220,6 @@ static struct signalinfo {
{-1, "Unknown!", FALSE}
};
-int mch_chdir(char *path)
-{
- if (p_verbose >= 5) {
- verbose_enter();
- smsg((char_u *)"chdir(%s)", path);
- verbose_leave();
- }
- return uv_chdir(path);
-}
-
/*
* Write s[len] to the screen.
*/
@@ -333,17 +321,6 @@ int mch_char_avail() {
return WaitForChar(0L);
}
-/*
- * Return total amount of memory available in Kbyte.
- * Doesn't change when memory has been allocated.
- */
-long_u mch_total_mem(int special)
-{
- /* We need to return memory in *Kbytes* but uv_get_total_memory() returns the
- * number of bytes of total memory. */
- return uv_get_total_memory() >> 10;
-}
-
void mch_delay(long msec, int ignoreinput)
{
int old_tmode;