Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/v0.6'
Browse files Browse the repository at this point in the history
Conflicts:
	src/unix/core.c
  • Loading branch information
piscisaureus committed Mar 8, 2012
2 parents d07f246 + 1ac71a3 commit 2ef5798
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/uv.h
Expand Up @@ -80,7 +80,7 @@ typedef intptr_t ssize_t;
XX( 7, EAFNOSUPPORT, "") \
XX( 8, EALREADY, "") \
XX( 9, EBADF, "bad file descriptor") \
XX( 10, EBUSY, "mount device busy") \
XX( 10, EBUSY, "resource busy or locked") \
XX( 11, ECONNABORTED, "software caused connection abort") \
XX( 12, ECONNREFUSED, "connection refused") \
XX( 13, ECONNRESET, "connection reset by peer") \
Expand Down Expand Up @@ -120,7 +120,8 @@ typedef intptr_t ssize_t;
XX( 49, ENAMETOOLONG, "name too long") \
XX( 50, EPERM, "operation not permitted") \
XX( 51, ELOOP, "too many symbolic links encountered") \
XX( 52, EXDEV, "cross-device link not permitted")
XX( 52, EXDEV, "cross-device link not permitted") \
XX( 53, ENOTEMPTY, "directory not empty")


#define UV_ERRNO_GEN(val, name, s) UV_##name = val,
Expand Down
2 changes: 2 additions & 0 deletions src/unix/error.c
Expand Up @@ -88,6 +88,8 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
case ESRCH: return UV_ESRCH;
case ETIMEDOUT: return UV_ETIMEDOUT;
case EXDEV: return UV_EXDEV;
case EBUSY: return UV_EBUSY;
case ENOTEMPTY: return UV_ENOTEMPTY;
default: return UV_UNKNOWN;
}
UNREACHABLE();
Expand Down
3 changes: 3 additions & 0 deletions src/win/error.c
Expand Up @@ -78,6 +78,8 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
case WSAEAFNOSUPPORT: return UV_EAFNOSUPPORT;
case WSAEWOULDBLOCK: return UV_EAGAIN;
case WSAEALREADY: return UV_EALREADY;
case ERROR_LOCK_VIOLATION: return UV_EBUSY;
case ERROR_SHARING_VIOLATION: return UV_EBUSY;
case ERROR_CONNECTION_ABORTED: return UV_ECONNABORTED;
case WSAECONNABORTED: return UV_ECONNABORTED;
case ERROR_CONNECTION_REFUSED: return UV_ECONNREFUSED;
Expand All @@ -102,6 +104,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) {
case ERROR_OUTOFMEMORY: return UV_ENOMEM;
case ERROR_NOT_CONNECTED: return UV_ENOTCONN;
case WSAENOTCONN: return UV_ENOTCONN;
case ERROR_DIR_NOT_EMPTY: return UV_ENOTEMPTY;
case ERROR_NOT_SUPPORTED: return UV_ENOTSUP;
case ERROR_INSUFFICIENT_BUFFER: return UV_EINVAL;
case ERROR_INVALID_FLAGS: return UV_EBADF;
Expand Down
1 change: 1 addition & 0 deletions src/win/util.c
Expand Up @@ -610,6 +610,7 @@ void uv_filetime_to_time_t(FILETIME* file_time, time_t* stat_time) {
time.tm_hour = system_time.wHour;
time.tm_min = system_time.wMinute;
time.tm_sec = system_time.wSecond;
time.tm_isdst = -1;

*stat_time = mktime(&time);
} else {
Expand Down

0 comments on commit 2ef5798

Please sign in to comment.