Permalink
Browse files

Upgrade libuv to 01f64f6

  • Loading branch information...
1 parent 5b014e0 commit a056ef1f398a03c891236f33c5a7efef0688345f @piscisaureus piscisaureus committed Nov 25, 2011
Showing with 5 additions and 6 deletions.
  1. +0 −1 deps/uv/include/uv.h
  2. +4 −4 deps/uv/src/win/fs.c
  3. +1 −1 deps/uv/src/win/getaddrinfo.c
View
@@ -111,7 +111,6 @@ typedef intptr_t ssize_t;
XX( 40, ETIMEDOUT, "connection timed out") \
XX( 41, ECHARSET, "") \
XX( 42, EAIFAMNOSUPPORT, "") \
- XX( 43, EAINONAME, "") \
XX( 44, EAISERVICE, "") \
XX( 45, EAISOCKTYPE, "") \
XX( 46, ESHUTDOWN, "") \
View
@@ -503,15 +503,15 @@ void fs__stat(uv_fs_t* req, const wchar_t* path) {
req->ptr = NULL;
} else {
- /*
+ /*
* VC CRT doesn't properly set S_IFDIR in _fstati64,
* so we set it here if path is a directory.
*/
if (GetFileAttributesW(path) & FILE_ATTRIBUTE_DIRECTORY) {
mode = req->stat.st_mode;
mode &= ~_S_IFMT;
mode |= _S_IFDIR;
-
+
req->stat.st_mode = mode;
assert((req->stat.st_mode & _S_IFMT) == _S_IFDIR);
}
@@ -709,7 +709,7 @@ void fs__symlink(uv_fs_t* req, const wchar_t* path, const wchar_t* new_path,
req->last_error = ERROR_SUCCESS;
return;
}
-
+
SET_REQ_RESULT(req, result);
}
@@ -748,7 +748,7 @@ void fs__readlink(uv_fs_t* req, const wchar_t* path) {
FSCTL_GET_REPARSE_POINT,
NULL,
0,
- buffer,
+ buffer,
MAXIMUM_REPARSE_DATA_BUFFER_SIZE,
&bytes_returned,
NULL);
@@ -66,7 +66,7 @@ static uv_err_code uv_translate_eai_error(int eai_errno) {
case EAI_FAIL: return UV_EFAULT;
case EAI_FAMILY: return UV_EAIFAMNOSUPPORT;
case EAI_MEMORY: return UV_ENOMEM;
- case EAI_NONAME: return UV_EAINONAME;
+ case EAI_NONAME: return UV_ENOENT;
case EAI_AGAIN: return UV_EAGAIN;
case EAI_SERVICE: return UV_EAISERVICE;
case EAI_SOCKTYPE: return UV_EAISOCKTYPE;

0 comments on commit a056ef1

Please sign in to comment.