os_nodetype: impl with libuv

This commit is contained in:
Justin M. Keyes
2014-08-22 03:15:00 +00:00
parent 43e7c40051
commit 7db4a15e95
5 changed files with 75 additions and 30 deletions

View File

@@ -2576,7 +2576,7 @@ buf_write (
errmsg = (char_u *)_("is a directory");
goto fail;
}
if (mch_nodetype(fname) != NODE_WRITABLE) {
if (os_nodetype((char *)fname) != NODE_WRITABLE) {
errnum = (char_u *)"E503: ";
errmsg = (char_u *)_("is not a file or writable device");
goto fail;
@@ -2588,11 +2588,11 @@ buf_write (
perm = -1;
}
}
#else /* !UNIX */
#else /* win32 */
/*
* Check for a writable device name.
*/
c = mch_nodetype(fname);
c = os_nodetype((char *)fname);
if (c == NODE_OTHER) {
errnum = (char_u *)"E503: ";
errmsg = (char_u *)_("is not a file or writable device");