diff options
author | cjihrig <cjihrig@gmail.com> | 2019-04-15 11:28:16 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2019-04-22 12:04:35 -0400 |
commit | aec2ce4ee11c766d4c7fcc532f794a758404a6c7 (patch) | |
tree | 9426e0d8e92a314c6f23290a2939cd45c418cf3b /deps/uv/src/unix/core.c | |
parent | 2161690024862fbfc23c4e01d98199acb832f76b (diff) | |
download | android-node-v8-aec2ce4ee11c766d4c7fcc532f794a758404a6c7.tar.gz android-node-v8-aec2ce4ee11c766d4c7fcc532f794a758404a6c7.tar.bz2 android-node-v8-aec2ce4ee11c766d4c7fcc532f794a758404a6c7.zip |
deps: upgrade to libuv 1.28.0
Notable changes:
- uv_gettimeofday() has been added.
- Streaming readdir() via the uv_fs_{open,read,close}dir() methods.
- A macOS copyfile() permissions bug has been fixed.
- A bug in uv_interface_addresses() on machines with multiple
interfaces has been fixed.
Fixes: https://github.com/nodejs/node/issues/27273
PR-URL: https://github.com/nodejs/node/pull/27241
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'deps/uv/src/unix/core.c')
-rw-r--r-- | deps/uv/src/unix/core.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/deps/uv/src/unix/core.c b/deps/uv/src/unix/core.c index ca0e345da0..e7e9f4b8c1 100644 --- a/deps/uv/src/unix/core.c +++ b/deps/uv/src/unix/core.c @@ -41,6 +41,7 @@ #include <sys/resource.h> /* getrusage */ #include <pwd.h> #include <sys/utsname.h> +#include <sys/time.h> #ifdef __sun # include <sys/filio.h> @@ -1429,3 +1430,17 @@ int uv__getsockpeername(const uv_handle_t* handle, *namelen = (int) socklen; return 0; } + +int uv_gettimeofday(uv_timeval64_t* tv) { + struct timeval time; + + if (tv == NULL) + return UV_EINVAL; + + if (gettimeofday(&time, NULL) != 0) + return UV__ERR(errno); + + tv->tv_sec = (int64_t) time.tv_sec; + tv->tv_usec = (int32_t) time.tv_usec; + return 0; +} |