port to vc6, pass compile. by liigo, 2013.
port to vc6
add _aligned_malloc() _aligned_free(), replace _BitScanReverse() with my own __builtin_clz(), fix using InterlockedCompareExchangePointer()
fix macro re-defines
add .dsw &.dsp files, fix undefined macro, update README.md.
Revert "fs: vectored IO API for filesystem read/write"

This reverts commit 7df24583e5ea77086e765a4bf0773407f0ec190d.
unix: correct error when calling uv_shutdown twice

This is a backport of a284b90 for v0.10 branch
windows: freeze in uv_tcp_endgame

The event_handle field of unused accept requests was not being
initialized properly. As a result, uv_tcp_endgame would try to close
an invalid handle and this could lead to unexpected behavior.

This fixes node.js test test-cluster-disconnect.js on Windows.
fs: vectored IO API for filesystem read/write

This improves API consistency with uv_read and uv_write and may
improve efficiency for some uses. Vectored IO is emulated when the
requisite system calls are unavailable.
pipe: allow queueing pending handles

Introduce `int uv_pipe_pending_count(uv_pipe_t*)` and
`uv_handle_type uv_pipe_pending_type(uv_pipe_t*)`. They should be
used in IPC pipe's read cb to accept incoming handles:

    int count = uv_pipe_pending_count(pipe);
    int i;
    for (i = 0; i < count; i++) {
      uv_handle_type type = uv_pipe_pending_type(pipe);
      /* ... */
      uv_accept(...);
    }
windows: Remove unused variable from uv__pipe_insert_pending_socket
errno: map EFBIG, ENOPROTOOPT and ETXTBSY

This is a backport of:
https://github.com/joyent/libuv/commit/107be2bed38afa6279aa53b13b946eb60c204969
https://github.com/joyent/libuv/commit/4a023fc0786780d254e1e4a34a983c36f59d99bf
https://github.com/joyent/libuv/commit/aaaefe32cadcfb26d07d625d17d7a2b8cafb4f2d
unix, windows: map ERANGE errno

This is a backport of 2f58bb6 from the master branch
error: add ENXIO for O_NONBLOCK FIFO open()

When opening FIFO with `O_NONBLOCK` flag, `ENXIO` could be returned if
the readable side hasn't yet opened this FIFO.
freebsd: use accept4, introduced in version 10
add _aligned_malloc() _aligned_free(), replace _BitScanReverse() with my own __builtin_clz(), fix using InterlockedCompareExchangePointer(), and other fix
Revert "fs: vectored IO API for filesystem read/write"

This reverts commit 7df24583e5ea77086e765a4bf0773407f0ec190d.
unix, windows: add uv_getrusage() function
fs: vectored IO API for filesystem read/write

This improves API consistency with uv_read and uv_write and may
improve efficiency for some uses. Vectored IO is emulated when the
requisite system calls are unavailable.
unix, windows: set required size on UV_ENOBUFS

When the supplied buffer is not big enough and UV_ENOBUFS is
returned, hint the user about the required size by setting
the len paramemeter to the required value.

Applies to:
- uv_pipe_getsockname
- uv_fs_event_getpath
- uv_fs_poll_getpath

port to vc6, pass compile. by liigo, 2013.

port to vc6

add _aligned_malloc() _aligned_free(), replace _BitScanReverse() with my own __builtin_clz(), fix using InterlockedCompareExchangePointer()

fix macro re-defines