aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os_unix.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-08-22 03:15:00 +0000
committerJustin M. Keyes <justinkz@gmail.com>2016-04-29 00:22:43 -0400
commit7db4a15e95337fc9afe4b8d60ae14a62bebcc2d8 (patch)
tree300039cad6d5f92237108168cbf322fab20b458c /src/nvim/os_unix.c
parent43e7c40051e9a3914ea280759982df6da2bfd526 (diff)
downloadrneovim-7db4a15e95337fc9afe4b8d60ae14a62bebcc2d8.tar.gz
rneovim-7db4a15e95337fc9afe4b8d60ae14a62bebcc2d8.tar.bz2
rneovim-7db4a15e95337fc9afe4b8d60ae14a62bebcc2d8.zip
os_nodetype: impl with libuv
Diffstat (limited to 'src/nvim/os_unix.c')
-rw-r--r--src/nvim/os_unix.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/nvim/os_unix.c b/src/nvim/os_unix.c
index 2a859a0f7a..63a3dbc054 100644
--- a/src/nvim/os_unix.c
+++ b/src/nvim/os_unix.c
@@ -136,26 +136,6 @@ void mch_free_acl(vim_acl_T aclent)
}
#endif
-/*
- * Check what "name" is:
- * NODE_NORMAL: file or directory (or doesn't exist)
- * NODE_WRITABLE: writable device, socket, fifo, etc.
- * NODE_OTHER: non-writable things
- */
-int mch_nodetype(char_u *name)
-{
- struct stat st;
-
- if (stat((char *)name, &st))
- return NODE_NORMAL;
- if (S_ISREG(st.st_mode) || S_ISDIR(st.st_mode))
- return NODE_NORMAL;
- if (S_ISBLK(st.st_mode)) /* block device isn't writable */
- return NODE_OTHER;
- /* Everything else is writable? */
- return NODE_WRITABLE;
-}
-
void mch_exit(int r)
{
exiting = true;