diff options
author | cjihrig <cjihrig@gmail.com> | 2018-02-21 15:42:26 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-02-23 09:51:30 -0500 |
commit | 3a191229418dcc0e21956847993b1702c88a923b (patch) | |
tree | 23def7030d5bb38b47880a827d3e85576cac2008 /deps/uv/src/unix/linux-inotify.c | |
parent | 3cef3e61d647d3dd2107087d876a3a02e0c3961e (diff) | |
download | android-node-v8-3a191229418dcc0e21956847993b1702c88a923b.tar.gz android-node-v8-3a191229418dcc0e21956847993b1702c88a923b.tar.bz2 android-node-v8-3a191229418dcc0e21956847993b1702c88a923b.zip |
deps: upgrade libuv to 1.19.2
PR-URL: https://github.com/nodejs/node/pull/18918
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'deps/uv/src/unix/linux-inotify.c')
-rw-r--r-- | deps/uv/src/unix/linux-inotify.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/deps/uv/src/unix/linux-inotify.c b/deps/uv/src/unix/linux-inotify.c index 5934c5d8cb..bcad630fab 100644 --- a/deps/uv/src/unix/linux-inotify.c +++ b/deps/uv/src/unix/linux-inotify.c @@ -73,11 +73,11 @@ static int new_inotify_fd(void) { return fd; if (errno != ENOSYS) - return -errno; + return UV__ERR(errno); fd = uv__inotify_init(); if (fd == -1) - return -errno; + return UV__ERR(errno); err = uv__cloexec(fd, 1); if (err == 0) @@ -283,7 +283,7 @@ int uv_fs_event_start(uv_fs_event_t* handle, int wd; if (uv__is_active(handle)) - return -EINVAL; + return UV_EINVAL; err = init_inotify(handle->loop); if (err) @@ -300,7 +300,7 @@ int uv_fs_event_start(uv_fs_event_t* handle, wd = uv__inotify_add_watch(handle->loop->inotify_fd, path, events); if (wd == -1) - return -errno; + return UV__ERR(errno); w = find_watcher(handle->loop, wd); if (w) @@ -308,7 +308,7 @@ int uv_fs_event_start(uv_fs_event_t* handle, w = uv__malloc(sizeof(*w) + strlen(path) + 1); if (w == NULL) - return -ENOMEM; + return UV_ENOMEM; w->wd = wd; w->path = strcpy((char*)(w + 1), path); |