Home
last modified time | relevance | path

Searched refs:status (Results 1 – 25 of 167) sorted by relevance

1234567

/libuv/src/unix/
H A Dhaiku.c38 status_t status; in uv_exepath() local
46 if (status != B_OK) in uv_exepath()
59 status_t status; in uv_get_free_memory() local
63 if (status != B_OK) in uv_get_free_memory()
71 status_t status; in uv_get_total_memory() local
75 if (status != B_OK) in uv_get_total_memory()
95 status_t status; in uv_resident_set_memory() local
99 if (status != B_OK) in uv_resident_set_memory()
121 status_t status; in uv_cpu_info() local
131 if (status != B_OK) in uv_cpu_info()
[all …]
/libuv/src/win/
H A Dwinsock.c138 switch (status) { in uv__ntstatus_to_winsock_error()
245 return (DWORD) (status & 0xffff); in uv__ntstatus_to_winsock_error()
273 NTSTATUS status; in uv__wsarecv_workaround() local
306 status = pNtDeviceIoControlFile((HANDLE) socket, in uv__wsarecv_workaround()
320 switch (status) { in uv__wsarecv_workaround()
368 NTSTATUS status; in uv__wsarecvfrom_workaround() local
418 switch (status) { in uv__wsarecvfrom_workaround()
467 NTSTATUS status; in uv__msafd_poll() local
508 if (status == STATUS_PENDING) { in uv__msafd_poll()
518 status = iosb.Status; in uv__msafd_poll()
[all …]
/libuv/test/
H A Dtest-tcp-write-to-half-open-connection.c29 static void connection_cb(uv_stream_t* server, int status);
30 static void connect_cb(uv_connect_t* req, int status);
31 static void write_cb(uv_write_t* req, int status);
44 static void connection_cb(uv_stream_t* server, int status) { in connection_cb() argument
49 ASSERT_OK(status); in connection_cb()
90 static void connect_cb(uv_connect_t* req, int status) { in connect_cb() argument
92 ASSERT_OK(status); in connect_cb()
99 static void write_cb(uv_write_t* req, int status) { in write_cb() argument
100 ASSERT_OK(status); in write_cb()
H A Dtest-tcp-shutdown-after-write.c25 static void write_cb(uv_write_t* req, int status);
26 static void shutdown_cb(uv_shutdown_t* req, int status);
80 static void connect_cb(uv_connect_t* req, int status) { in connect_cb() argument
83 ASSERT_OK(status); in connect_cb()
91 static void write_cb(uv_write_t* req, int status) { in write_cb() argument
92 ASSERT_OK(status); in write_cb()
97 static void shutdown_cb(uv_shutdown_t* req, int status) { in shutdown_cb() argument
98 ASSERT_OK(status); in shutdown_cb()
H A Decho-server.c42 static void after_write(uv_write_t* req, int status);
46 static void on_connection(uv_stream_t*, int status);
49 static void after_write(uv_write_t* req, int status) { in after_write() argument
57 if (status == 0) in after_write()
62 uv_err_name(status), in after_write()
63 uv_strerror(status)); in after_write()
68 ASSERT_OK(status); in after_shutdown()
75 ASSERT_OK(status); in on_shutdown()
173 if (status != 0) { in on_connection()
176 ASSERT_OK(status); in on_connection()
[all …]
H A Dtest-tcp-read-stop-start.c35 static void on_write_close_immediately(uv_write_t* req, int status) { in on_write_close_immediately() argument
36 ASSERT_OK(status); in on_write_close_immediately()
42 static void on_write(uv_write_t* req, int status) { in on_write() argument
43 ASSERT_OK(status); in on_write()
88 static void on_connection(uv_stream_t* server, int status) { in on_connection() argument
89 ASSERT_OK(status); in on_connection()
98 static void on_connect(uv_connect_t* req, int status) { in on_connect() argument
99 ASSERT_OK(status); in on_connect()
H A Dtest-pipe-connect-error.c45 static void connect_cb(uv_connect_t* connect_req, int status) { in connect_cb() argument
46 ASSERT_EQ(status, UV_ENOENT); in connect_cb()
52 static void connect_cb_file(uv_connect_t* connect_req, int status) { in connect_cb_file() argument
53 if (status != UV_ENOTSOCK) in connect_cb_file()
54 if (status != UV_EACCES) in connect_cb_file()
55 ASSERT_EQ(status, UV_ECONNREFUSED); in connect_cb_file()
H A Dtest-tcp-write-queue-order.c55 static void write_cb(uv_write_t* req, int status) { in write_cb() argument
56 if (status == 0) in write_cb()
58 else if (status == UV_ECANCELED) in write_cb()
64 static void connect_cb(uv_connect_t* req, int status) { in connect_cb() argument
70 ASSERT_OK(status); in connect_cb()
86 static void connection_cb(uv_stream_t* tcp, int status) { in connection_cb() argument
87 ASSERT_OK(status); in connection_cb()
H A Dbenchmark-tcp-write-batch.c47 static void connect_cb(uv_connect_t* req, int status);
48 static void write_cb(uv_write_t* req, int status);
49 static void shutdown_cb(uv_shutdown_t* req, int status);
53 static void connect_cb(uv_connect_t* req, int status) { in connect_cb() argument
73 static void write_cb(uv_write_t* req, int status) { in write_cb() argument
75 ASSERT_OK(status); in write_cb()
80 static void shutdown_cb(uv_shutdown_t* req, int status) { in shutdown_cb() argument
H A Dtest-pipe-connect-multiple.c44 static void connection_cb(uv_stream_t* server, int status) { in connection_cb() argument
47 ASSERT_OK(status); in connection_cb()
63 static void connect_cb(uv_connect_t* connect_req, int status) { in connect_cb() argument
64 ASSERT_OK(status); in connect_cb()
110 static void connection_cb2(uv_stream_t* server, int status) { in connection_cb2() argument
113 ASSERT_OK(status); in connection_cb2()
129 static void connect_cb2(uv_connect_t* connect_req, int status) { in connect_cb2() argument
130 ASSERT_EQ(status, UV_ECANCELED); in connect_cb2()
H A Dtest-fs-poll.c32 int status,
37 int status,
41 int status,
85 int status, in poll_cb_fail() argument
92 int status, in poll_cb_noop() argument
99 int status, in poll_cb() argument
113 ASSERT_EQ(status, UV_ENOENT); in poll_cb()
120 ASSERT_OK(status); in poll_cb()
127 ASSERT_OK(status); in poll_cb()
134 ASSERT_OK(status); in poll_cb()
[all …]
H A Dtest-tcp-alloc-cb-fail.c44 static void write_cb(uv_write_t* req, int status) { in write_cb() argument
45 ASSERT_OK(status); in write_cb()
64 static void connect_cb(uv_connect_t* req, int status) { in connect_cb() argument
68 ASSERT_OK(status); in connect_cb()
77 static void connection_cb(uv_stream_t* tcp, int status) { in connection_cb() argument
78 ASSERT_OK(status); in connection_cb()
H A Dtest-tcp-writealot.c65 static void shutdown_cb(uv_shutdown_t* req, int status) { in shutdown_cb() argument
69 ASSERT_OK(status); in shutdown_cb()
100 static void write_cb(uv_write_t* req, int status) { in write_cb() argument
103 if (status) { in write_cb()
104 fprintf(stderr, "uv_write error: %s\n", uv_strerror(status)); in write_cb()
113 static void connect_cb(uv_connect_t* req, int status) { in connect_cb() argument
119 ASSERT_OK(status); in connect_cb()
H A Drunner.c111 int status, in log_tap_result() argument
118 switch (status) { in log_tap_result()
132 if (status == TEST_SKIP && process_output_size(process) > 0) { in log_tap_result()
156 int status; in run_test() local
159 status = 255; in run_test()
262 status = process_reap(main_proc); in run_test()
263 if (status != TEST_OK) { in run_test()
267 status); in run_test()
287 log_tap_result(test_count, test, status, &processes[i]); in run_test()
290 if ((status != TEST_OK && status != TEST_SKIP) || task->show_output) { in run_test()
[all …]
H A Dtest-tcp-close.c36 static void connect_cb(uv_connect_t* req, int status);
37 static void write_cb(uv_write_t* req, int status);
41 static void connect_cb(uv_connect_t* conn_req, int status) { in connect_cb() argument
59 static void write_cb(uv_write_t* req, int status) { in write_cb() argument
74 static void connection_cb(uv_stream_t* server, int status) { in connection_cb() argument
75 ASSERT_OK(status); in connection_cb()
H A Dtest-tcp-unexpected-read.c62 static void connect_cb(uv_connect_t* req, int status) { in connect_cb() argument
64 ASSERT_OK(status); in connect_cb()
68 static void write_cb(uv_write_t* req, int status) { in write_cb() argument
70 ASSERT_OK(status); in write_cb()
74 static void connection_cb(uv_stream_t* handle, int status) { in connection_cb() argument
79 ASSERT_OK(status); in connection_cb()
H A Dtest-shutdown-close.c39 static void shutdown_cb(uv_shutdown_t* req, int status) { in shutdown_cb() argument
41 ASSERT(status == 0 || status == UV_ECANCELED); in shutdown_cb()
51 static void connect_cb(uv_connect_t* req, int status) { in connect_cb() argument
55 ASSERT_OK(status); in connect_cb()
H A Dtest-tcp-write-fail.c60 static void write_cb(uv_write_t* req, int status) { in write_cb() argument
63 ASSERT(status); in write_cb()
64 fprintf(stderr, "uv_write error: %s\n", uv_strerror(status)); in write_cb()
71 static void connect_cb(uv_connect_t* req, int status) { in connect_cb() argument
77 ASSERT_OK(status); in connect_cb()
H A Dtest-emfile.c31 static void connection_cb(uv_stream_t* server_handle, int status);
32 static void connect_cb(uv_connect_t* req, int status);
110 static void connection_cb(uv_stream_t* server_handle, int status) { in connection_cb() argument
115 static void connect_cb(uv_connect_t* req, int status) { in connect_cb() argument
119 ASSERT_OK(status); in connect_cb()
H A Dtest-tcp-write-after-connect.c34 static void write_cb(uv_write_t *req, int status) { in write_cb() argument
35 ASSERT_EQ(status, UV_ECANCELED); in write_cb()
40 static void connect_cb(uv_connect_t *req, int status) { in connect_cb() argument
41 ASSERT_EQ(status, UV_ECONNREFUSED); in connect_cb()
H A Dtest-connect-unspecified.c25 static void connect_4(uv_connect_t* req, int status) { in connect_4() argument
26 ASSERT_NE(status, UV_EADDRNOTAVAIL); in connect_4()
29 static void connect_6(uv_connect_t* req, int status) { in connect_6() argument
30 ASSERT_NE(status, UV_EADDRNOTAVAIL); in connect_6()
H A Dtest-callback-stack.c62 static void shutdown_cb(uv_shutdown_t* req, int status) { in shutdown_cb() argument
63 ASSERT_OK(status); in shutdown_cb()
125 static void write_cb(uv_write_t* req, int status) { in write_cb() argument
128 ASSERT_OK(status); in write_cb()
148 static void connect_cb(uv_connect_t* req, int status) { in connect_cb() argument
153 ASSERT_OK(status); in connect_cb()
/libuv/src/
H A Drandom.c77 req->status = uv__random(req->buf, req->buflen); in uv__random_work()
81 static void uv__random_done(struct uv__work* w, int status) { in uv__random_done() argument
87 if (status == 0) in uv__random_done()
88 status = req->status; in uv__random_done()
90 req->cb(req, status, req->buf, req->buflen); in uv__random_done()
111 req->status = 0; in uv_random()
/libuv/docs/code/tcp-echo-server/
H A Dmain.c32 void echo_write(uv_write_t *req, int status) { in echo_write() argument
33 if (status) { in echo_write()
34 fprintf(stderr, "Write error %s\n", uv_strerror(status)); in echo_write()
55 void on_new_connection(uv_stream_t *server, int status) { in on_new_connection() argument
56 if (status < 0) { in on_new_connection()
57 fprintf(stderr, "New connection error %s\n", uv_strerror(status)); in on_new_connection()
/libuv/docs/code/dns/
H A Dmain.c32 void on_connect(uv_connect_t *req, int status) { in on_connect() argument
33 if (status < 0) { in on_connect()
34 fprintf(stderr, "connect failed error %s\n", uv_err_name(status)); in on_connect()
43 void on_resolved(uv_getaddrinfo_t *resolver, int status, struct addrinfo *res) { in on_resolved() argument
44 if (status < 0) { in on_resolved()
45 fprintf(stderr, "getaddrinfo callback error %s\n", uv_err_name(status)); in on_resolved()

Completed in 39 milliseconds

1234567