diff options
author | Thomas Wienecke <wienecke.t@gmail.com> | 2014-03-04 20:50:48 +0100 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-05 15:01:19 -0300 |
commit | 8bb672e6a088eb77d98d182bd46551986b52eb49 (patch) | |
tree | 8ac1a7d0ffd2839da23a1a4a01e5a8a7d301d7a3 /src/os_unix.c | |
parent | 1e5a6acebd9f4c5fec9f31a9b7863fc90167a648 (diff) | |
download | rneovim-8bb672e6a088eb77d98d182bd46551986b52eb49.tar.gz rneovim-8bb672e6a088eb77d98d182bd46551986b52eb49.tar.bz2 rneovim-8bb672e6a088eb77d98d182bd46551986b52eb49.zip |
Port mch_isdir to libuv.
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index fdbaba466a..4ba7b79611 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -1319,26 +1319,6 @@ void mch_hide(char_u *name) /* can't hide a file */ } -/* - * return TRUE if "name" is a directory - * return FALSE if "name" is not a directory - * return FALSE for error - */ -int mch_isdir(char_u *name) -{ - struct stat statb; - - if (*name == NUL) /* Some stat()s don't flag "" as an error. */ - return FALSE; - if (stat((char *)name, &statb)) - return FALSE; -#ifdef _POSIX_SOURCE - return S_ISDIR(statb.st_mode) ? TRUE : FALSE; -#else - return (statb.st_mode & S_IFMT) == S_IFDIR ? TRUE : FALSE; -#endif -} - int executable_file(char_u *name); /* |