diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-04-12 00:59:38 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-04-12 00:59:38 +0200 |
commit | e9dcfd4bd280fe3e819b2c992f33dad22bb8a967 (patch) | |
tree | 2b4748be10afd1640a271b0e7b382784d5feae5f /deps/uv/src/unix/kqueue.c | |
parent | 3ec84a11f8ce70bde3a480a80cbe0875f8ea08ae (diff) | |
download | android-node-v8-e9dcfd4bd280fe3e819b2c992f33dad22bb8a967.tar.gz android-node-v8-e9dcfd4bd280fe3e819b2c992f33dad22bb8a967.tar.bz2 android-node-v8-e9dcfd4bd280fe3e819b2c992f33dad22bb8a967.zip |
Revert "deps: upgrade libuv to 3c41597"
This reverts commit 0db4dc0024eaa538bf4913d6bf256a18126de2ba.
This commit makes a lot of tests fail due to reference counting errors. It's
not worth it to debug because the reference counting scheme is due to change
soon anyway.
Diffstat (limited to 'deps/uv/src/unix/kqueue.c')
-rw-r--r-- | deps/uv/src/unix/kqueue.c | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/deps/uv/src/unix/kqueue.c b/deps/uv/src/unix/kqueue.c index 1af2fbe34d..58988f9d1b 100644 --- a/deps/uv/src/unix/kqueue.c +++ b/deps/uv/src/unix/kqueue.c @@ -26,6 +26,8 @@ #include <string.h> #include <errno.h> +#if HAVE_KQUEUE + #include <sys/sysctl.h> #include <sys/types.h> #include <sys/event.h> @@ -119,9 +121,34 @@ int uv_fs_event_init(uv_loop_t* loop, } -void uv__fs_event_close(uv_fs_event_t* handle) { +void uv__fs_event_destroy(uv_fs_event_t* handle) { uv__fs_event_stop(handle); free(handle->filename); close(handle->fd); handle->fd = -1; } + +#else /* !HAVE_KQUEUE */ + +int uv_fs_event_init(uv_loop_t* loop, + uv_fs_event_t* handle, + const char* filename, + uv_fs_event_cb cb, + int flags) { + loop->counters.fs_event_init++; + uv__set_sys_error(loop, ENOSYS); + return -1; +} + + +void uv__fs_event_destroy(uv_fs_event_t* handle) { + UNREACHABLE(); +} + + +/* Called by libev, don't touch. */ +void uv__kqueue_hack(EV_P_ int fflags, ev_io *w) { + UNREACHABLE(); +} + +#endif /* HAVE_KQUEUE */ |