summaryrefslogtreecommitdiff
path: root/deps/uv/include
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2018-06-22 11:28:11 -0400
committercjihrig <cjihrig@gmail.com>2018-06-24 20:54:34 -0400
commit537a4baa443daea9850a8e324b5b4d7c21dd2717 (patch)
treef36565e62794a56adfa99a8511c6d2a90c466fbc /deps/uv/include
parent49e5f0a10fc3784b318842b06854b38475fc884b (diff)
downloadandroid-node-v8-537a4baa443daea9850a8e324b5b4d7c21dd2717.tar.gz
android-node-v8-537a4baa443daea9850a8e324b5b4d7c21dd2717.tar.bz2
android-node-v8-537a4baa443daea9850a8e324b5b4d7c21dd2717.zip
deps: upgrade to libuv 1.21.0
Notable changes: - Building via cmake is now supported. PR-URL: https://github.com/libuv/libuv/pull/1850 - Stricter checks have been added to prevent watching the same file descriptor multiple times. PR-URL: https://github.com/libuv/libuv/pull/1851 Refs: https://github.com/nodejs/node/issues/3604 - An IPC deadlock on Windows has been fixed. PR-URL: https://github.com/libuv/libuv/pull/1843 Fixes: https://github.com/nodejs/node/issues/9706 Fixes: https://github.com/nodejs/node/issues/7657 - uv_fs_lchown() has been added. PR-URL: https://github.com/libuv/libuv/pull/1826 Refs: https://github.com/nodejs/node/issues/19868 - uv_fs_copyfile() sets errno on error. PR-URL: https://github.com/libuv/libuv/pull/1881 Fixes: https://github.com/nodejs/node/issues/21329 - uv_fs_fchmod() supports -A files on Windows. PR-URL: https://github.com/libuv/libuv/pull/1819 Refs: https://github.com/nodejs/node/issues/12803 PR-URL: https://github.com/nodejs/node/pull/21466 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'deps/uv/include')
-rw-r--r--deps/uv/include/uv.h44
-rw-r--r--deps/uv/include/uv/aix.h (renamed from deps/uv/include/uv-aix.h)0
-rw-r--r--deps/uv/include/uv/android-ifaddrs.h (renamed from deps/uv/include/android-ifaddrs.h)0
-rw-r--r--deps/uv/include/uv/bsd.h (renamed from deps/uv/include/uv-bsd.h)0
-rw-r--r--deps/uv/include/uv/darwin.h (renamed from deps/uv/include/uv-darwin.h)0
-rw-r--r--deps/uv/include/uv/errno.h (renamed from deps/uv/include/uv-errno.h)6
-rw-r--r--deps/uv/include/uv/linux.h (renamed from deps/uv/include/uv-linux.h)0
-rw-r--r--deps/uv/include/uv/os390.h (renamed from deps/uv/include/uv-os390.h)0
-rw-r--r--deps/uv/include/uv/posix.h (renamed from deps/uv/include/uv-posix.h)0
-rw-r--r--deps/uv/include/uv/pthread-barrier.h (renamed from deps/uv/include/pthread-barrier.h)0
-rw-r--r--deps/uv/include/uv/stdint-msvc2008.h (renamed from deps/uv/include/stdint-msvc2008.h)0
-rw-r--r--deps/uv/include/uv/sunos.h (renamed from deps/uv/include/uv-sunos.h)0
-rw-r--r--deps/uv/include/uv/threadpool.h (renamed from deps/uv/include/uv-threadpool.h)0
-rw-r--r--deps/uv/include/uv/tree.h (renamed from deps/uv/include/tree.h)0
-rw-r--r--deps/uv/include/uv/unix.h (renamed from deps/uv/include/uv-unix.h)20
-rw-r--r--deps/uv/include/uv/version.h (renamed from deps/uv/include/uv-version.h)4
-rw-r--r--deps/uv/include/uv/win.h (renamed from deps/uv/include/uv-win.h)43
17 files changed, 70 insertions, 47 deletions
diff --git a/deps/uv/include/uv.h b/deps/uv/include/uv.h
index 41fad45108..91451ada78 100644
--- a/deps/uv/include/uv.h
+++ b/deps/uv/include/uv.h
@@ -45,21 +45,21 @@ extern "C" {
# define UV_EXTERN /* nothing */
#endif
-#include "uv-errno.h"
-#include "uv-version.h"
+#include "uv/errno.h"
+#include "uv/version.h"
#include <stddef.h>
#include <stdio.h>
#if defined(_MSC_VER) && _MSC_VER < 1600
-# include "stdint-msvc2008.h"
+# include "uv/stdint-msvc2008.h"
#else
# include <stdint.h>
#endif
#if defined(_WIN32)
-# include "uv-win.h"
+# include "uv/win.h"
#else
-# include "uv-unix.h"
+# include "uv/unix.h"
#endif
/* Expand this list if necessary. */
@@ -142,6 +142,7 @@ extern "C" {
XX(EHOSTDOWN, "host is down") \
XX(EREMOTEIO, "remote I/O error") \
XX(ENOTTY, "inappropriate ioctl for device") \
+ XX(EFTYPE, "inappropriate file type or format") \
#define UV_HANDLE_TYPE_MAP(XX) \
XX(ASYNC, async) \
@@ -503,7 +504,7 @@ UV_EXTERN int uv_try_write(uv_stream_t* handle,
struct uv_write_s {
UV_REQ_FIELDS
uv_write_cb cb;
- uv_stream_t* send_handle;
+ uv_stream_t* send_handle; /* TODO: make private and unix-only in v2.x. */
uv_stream_t* handle;
UV_WRITE_PRIVATE_FIELDS
};
@@ -865,7 +866,13 @@ typedef enum {
* flags may be specified to create a duplex data stream.
*/
UV_READABLE_PIPE = 0x10,
- UV_WRITABLE_PIPE = 0x20
+ UV_WRITABLE_PIPE = 0x20,
+
+ /*
+ * Open the child pipe handle in overlapped mode on Windows.
+ * On Unix it is silently ignored.
+ */
+ UV_OVERLAPPED_PIPE = 0x40
} uv_stdio_flags;
typedef struct uv_stdio_container_s {
@@ -997,16 +1004,18 @@ UV_EXTERN int uv_queue_work(uv_loop_t* loop,
UV_EXTERN int uv_cancel(uv_req_t* req);
+struct uv_cpu_times_s {
+ uint64_t user;
+ uint64_t nice;
+ uint64_t sys;
+ uint64_t idle;
+ uint64_t irq;
+};
+
struct uv_cpu_info_s {
char* model;
int speed;
- struct uv_cpu_times_s {
- uint64_t user;
- uint64_t nice;
- uint64_t sys;
- uint64_t idle;
- uint64_t irq;
- } cpu_times;
+ struct uv_cpu_times_s cpu_times;
};
struct uv_interface_address_s {
@@ -1132,6 +1141,7 @@ typedef enum {
UV_FS_READLINK,
UV_FS_CHOWN,
UV_FS_FCHOWN,
+ UV_FS_LCHOWN,
UV_FS_REALPATH,
UV_FS_COPYFILE
} uv_fs_type;
@@ -1336,6 +1346,12 @@ UV_EXTERN int uv_fs_fchown(uv_loop_t* loop,
uv_uid_t uid,
uv_gid_t gid,
uv_fs_cb cb);
+UV_EXTERN int uv_fs_lchown(uv_loop_t* loop,
+ uv_fs_t* req,
+ const char* path,
+ uv_uid_t uid,
+ uv_gid_t gid,
+ uv_fs_cb cb);
enum uv_fs_event {
diff --git a/deps/uv/include/uv-aix.h b/deps/uv/include/uv/aix.h
index 7dc992fa6d..7dc992fa6d 100644
--- a/deps/uv/include/uv-aix.h
+++ b/deps/uv/include/uv/aix.h
diff --git a/deps/uv/include/android-ifaddrs.h b/deps/uv/include/uv/android-ifaddrs.h
index 9cd19fec12..9cd19fec12 100644
--- a/deps/uv/include/android-ifaddrs.h
+++ b/deps/uv/include/uv/android-ifaddrs.h
diff --git a/deps/uv/include/uv-bsd.h b/deps/uv/include/uv/bsd.h
index 2d72b3d771..2d72b3d771 100644
--- a/deps/uv/include/uv-bsd.h
+++ b/deps/uv/include/uv/bsd.h
diff --git a/deps/uv/include/uv-darwin.h b/deps/uv/include/uv/darwin.h
index d226415820..d226415820 100644
--- a/deps/uv/include/uv-darwin.h
+++ b/deps/uv/include/uv/darwin.h
diff --git a/deps/uv/include/uv-errno.h b/deps/uv/include/uv/errno.h
index aa4d4509f6..8eeb95de31 100644
--- a/deps/uv/include/uv-errno.h
+++ b/deps/uv/include/uv/errno.h
@@ -433,5 +433,11 @@
# define UV__ENOTTY (-4029)
#endif
+#if defined(EFTYPE) && !defined(_WIN32)
+# define UV__EFTYPE UV__ERR(EFTYPE)
+#else
+# define UV__EFTYPE (-4028)
+#endif
+
#endif /* UV_ERRNO_H_ */
diff --git a/deps/uv/include/uv-linux.h b/deps/uv/include/uv/linux.h
index 9b38405a19..9b38405a19 100644
--- a/deps/uv/include/uv-linux.h
+++ b/deps/uv/include/uv/linux.h
diff --git a/deps/uv/include/uv-os390.h b/deps/uv/include/uv/os390.h
index 0267d74cbd..0267d74cbd 100644
--- a/deps/uv/include/uv-os390.h
+++ b/deps/uv/include/uv/os390.h
diff --git a/deps/uv/include/uv-posix.h b/deps/uv/include/uv/posix.h
index 9a96634db0..9a96634db0 100644
--- a/deps/uv/include/uv-posix.h
+++ b/deps/uv/include/uv/posix.h
diff --git a/deps/uv/include/pthread-barrier.h b/deps/uv/include/uv/pthread-barrier.h
index 07db9b8a6a..07db9b8a6a 100644
--- a/deps/uv/include/pthread-barrier.h
+++ b/deps/uv/include/uv/pthread-barrier.h
diff --git a/deps/uv/include/stdint-msvc2008.h b/deps/uv/include/uv/stdint-msvc2008.h
index d02608a597..d02608a597 100644
--- a/deps/uv/include/stdint-msvc2008.h
+++ b/deps/uv/include/uv/stdint-msvc2008.h
diff --git a/deps/uv/include/uv-sunos.h b/deps/uv/include/uv/sunos.h
index 042166424e..042166424e 100644
--- a/deps/uv/include/uv-sunos.h
+++ b/deps/uv/include/uv/sunos.h
diff --git a/deps/uv/include/uv-threadpool.h b/deps/uv/include/uv/threadpool.h
index 9708ebdd53..9708ebdd53 100644
--- a/deps/uv/include/uv-threadpool.h
+++ b/deps/uv/include/uv/threadpool.h
diff --git a/deps/uv/include/tree.h b/deps/uv/include/uv/tree.h
index f936416e3d..f936416e3d 100644
--- a/deps/uv/include/tree.h
+++ b/deps/uv/include/uv/tree.h
diff --git a/deps/uv/include/uv-unix.h b/deps/uv/include/uv/unix.h
index 480a0691ea..74a0d643ce 100644
--- a/deps/uv/include/uv-unix.h
+++ b/deps/uv/include/uv/unix.h
@@ -42,32 +42,32 @@
#include <pthread.h>
#include <signal.h>
-#include "uv-threadpool.h"
+#include "uv/threadpool.h"
#if defined(__linux__)
-# include "uv-linux.h"
+# include "uv/linux.h"
#elif defined (__MVS__)
-# include "uv-os390.h"
+# include "uv/os390.h"
#elif defined(__PASE__)
-# include "uv-posix.h"
+# include "uv/posix.h"
#elif defined(_AIX)
-# include "uv-aix.h"
+# include "uv/aix.h"
#elif defined(__sun)
-# include "uv-sunos.h"
+# include "uv/sunos.h"
#elif defined(__APPLE__)
-# include "uv-darwin.h"
+# include "uv/darwin.h"
#elif defined(__DragonFly__) || \
defined(__FreeBSD__) || \
defined(__FreeBSD_kernel__) || \
defined(__OpenBSD__) || \
defined(__NetBSD__)
-# include "uv-bsd.h"
+# include "uv/bsd.h"
#elif defined(__CYGWIN__) || defined(__MSYS__)
-# include "uv-posix.h"
+# include "uv/posix.h"
#endif
#ifndef PTHREAD_BARRIER_SERIAL_THREAD
-# include "pthread-barrier.h"
+# include "uv/pthread-barrier.h"
#endif
#ifndef NI_MAXHOST
diff --git a/deps/uv/include/uv-version.h b/deps/uv/include/uv/version.h
index 75f2940cd4..0b829717b8 100644
--- a/deps/uv/include/uv-version.h
+++ b/deps/uv/include/uv/version.h
@@ -31,8 +31,8 @@
*/
#define UV_VERSION_MAJOR 1
-#define UV_VERSION_MINOR 20
-#define UV_VERSION_PATCH 3
+#define UV_VERSION_MINOR 21
+#define UV_VERSION_PATCH 0
#define UV_VERSION_IS_RELEASE 1
#define UV_VERSION_SUFFIX ""
diff --git a/deps/uv/include/uv-win.h b/deps/uv/include/uv/win.h
index 4c6c50a29c..f01335296a 100644
--- a/deps/uv/include/uv-win.h
+++ b/deps/uv/include/uv/win.h
@@ -53,13 +53,13 @@ typedef struct pollfd {
#include <sys/stat.h>
#if defined(_MSC_VER) && _MSC_VER < 1600
-# include "stdint-msvc2008.h"
+# include "uv/stdint-msvc2008.h"
#else
# include <stdint.h>
#endif
-#include "tree.h"
-#include "uv-threadpool.h"
+#include "uv/tree.h"
+#include "uv/threadpool.h"
#define MAX_PIPENAME_LEN 256
@@ -86,8 +86,8 @@ typedef struct pollfd {
#define SIGKILL 9
#define SIGWINCH 28
-/* The CRT defines SIGABRT_COMPAT as 6, which equals SIGABRT on many */
-/* unix-like platforms. However MinGW doesn't define it, so we do. */
+/* The CRT defines SIGABRT_COMPAT as 6, which equals SIGABRT on many unix-like
+ * platforms. However MinGW doesn't define it, so we do. */
#ifndef SIGABRT_COMPAT
# define SIGABRT_COMPAT 6
#endif
@@ -244,7 +244,7 @@ typedef union {
CRITICAL_SECTION waiters_count_lock;
HANDLE signal_event;
HANDLE broadcast_event;
- } fallback;
+ } unused_; /* TODO: retained for ABI compatibility; remove me in v2.x. */
} uv_cond_t;
typedef union {
@@ -368,10 +368,10 @@ RB_HEAD(uv_timer_tree_s, uv_timer_s);
} u; \
struct uv_req_s* next_req;
-#define UV_WRITE_PRIVATE_FIELDS \
- int ipc_header; \
- uv_buf_t write_buffer; \
- HANDLE event_handle; \
+#define UV_WRITE_PRIVATE_FIELDS \
+ int coalesced; \
+ uv_buf_t write_buffer; \
+ HANDLE event_handle; \
HANDLE wait_handle;
#define UV_CONNECT_PRIVATE_FIELDS \
@@ -459,16 +459,17 @@ RB_HEAD(uv_timer_tree_s, uv_timer_s);
#define uv_pipe_connection_fields \
uv_timer_t* eof_timer; \
- uv_write_t ipc_header_write_req; \
- int ipc_pid; \
- uint64_t remaining_ipc_rawdata_bytes; \
- struct { \
- void* queue[2]; \
- int queue_len; \
- } pending_ipc_info; \
+ uv_write_t dummy; /* TODO: retained for ABI compat; remove this in v2.x. */ \
+ DWORD ipc_remote_pid; \
+ union { \
+ uint32_t payload_remaining; \
+ uint64_t dummy; /* TODO: retained for ABI compat; remove this in v2.x. */ \
+ } ipc_data_frame; \
+ void* ipc_xfer_queue[2]; \
+ int ipc_xfer_queue_length; \
uv_write_t* non_overlapped_writes_tail; \
- uv_mutex_t readfile_mutex; \
- volatile HANDLE readfile_thread;
+ CRITICAL_SECTION readfile_thread_lock; \
+ volatile HANDLE readfile_thread_handle;
#define UV_PIPE_PRIVATE_FIELDS \
HANDLE handle; \
@@ -478,8 +479,8 @@ RB_HEAD(uv_timer_tree_s, uv_timer_s);
struct { uv_pipe_connection_fields } conn; \
} pipe;
-/* TODO: put the parser states in an union - TTY handles are always */
-/* half-duplex so read-state can safely overlap write-state. */
+/* TODO: put the parser states in an union - TTY handles are always half-duplex
+ * so read-state can safely overlap write-state. */
#define UV_TTY_PRIVATE_FIELDS \
HANDLE handle; \
union { \