libuv 1.42.0.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3650 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2021-07-27 22:08:18 +00:00
parent 5197eb91f7
commit da51e87774
183 changed files with 4013 additions and 1768 deletions

View File

@ -96,7 +96,7 @@ static void alloc_cb(uv_handle_t* handle,
static void close_cb(uv_handle_t* handle) {
ASSERT(handle != NULL);
ASSERT_NOT_NULL(handle);
close_cb_called++;
}
@ -111,7 +111,7 @@ static void shutdown_cb(uv_shutdown_t* req, int status) {
static void read_cb(uv_stream_t* tcp, ssize_t nread, const uv_buf_t* buf) {
ASSERT(tcp != NULL);
ASSERT_NOT_NULL(tcp);
if (nread >= 0) {
ASSERT(nread == 4);
@ -126,7 +126,7 @@ static void read_cb(uv_stream_t* tcp, ssize_t nread, const uv_buf_t* buf) {
static void read1_cb(uv_stream_t* tcp, ssize_t nread, const uv_buf_t* buf) {
int i;
ASSERT(tcp != NULL);
ASSERT_NOT_NULL(tcp);
if (nread >= 0) {
for (i = 0; i < nread; ++i)
@ -140,7 +140,7 @@ static void read1_cb(uv_stream_t* tcp, ssize_t nread, const uv_buf_t* buf) {
static void write_cb(uv_write_t* req, int status) {
ASSERT(req != NULL);
ASSERT_NOT_NULL(req);
if (status) {
fprintf(stderr, "uv_write error: %s\n", uv_strerror(status));
@ -155,7 +155,7 @@ static void write1_cb(uv_write_t* req, int status) {
uv_buf_t buf;
int r;
ASSERT(req != NULL);
ASSERT_NOT_NULL(req);
if (status) {
ASSERT(shutdown_cb_called);
return;
@ -237,6 +237,7 @@ TEST_IMPL(tcp_open) {
struct sockaddr_in addr;
uv_os_sock_t sock;
int r;
uv_tcp_t client2;
ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &addr));
@ -257,8 +258,6 @@ TEST_IMPL(tcp_open) {
#ifndef _WIN32
{
uv_tcp_t client2;
r = uv_tcp_init(uv_default_loop(), &client2);
ASSERT(r == 0);
@ -267,7 +266,9 @@ TEST_IMPL(tcp_open) {
uv_close((uv_handle_t*) &client2, NULL);
}
#endif /* !_WIN32 */
#else /* _WIN32 */
(void)client2;
#endif
uv_run(uv_default_loop(), UV_RUN_DEFAULT);