Lines Matching refs:err

213   int err;  in uv__pipe_server()  local
228 err = GetLastError(); in uv__pipe_server()
229 if (err != ERROR_PIPE_BUSY && err != ERROR_ACCESS_DENIED) { in uv__pipe_server()
245 return err; in uv__pipe_server()
260 int err; in uv__create_pipe_pair() local
286 err = uv__pipe_server(&server_pipe, in uv__create_pipe_pair()
291 if (err) in uv__create_pipe_pair()
307 err = GetLastError(); in uv__create_pipe_pair()
329 err = GetLastError(); in uv__create_pipe_pair()
345 return err; in uv__create_pipe_pair()
351 int err; in uv_pipe() local
360 err = uv__create_pipe_pair(&readh, in uv_pipe()
366 if (err != 0) in uv_pipe()
367 return err; in uv_pipe()
371 err = UV_EMFILE; in uv_pipe()
373 err = UV_UNKNOWN; in uv_pipe()
376 return err; in uv_pipe()
381 err = UV_EMFILE; in uv_pipe()
383 err = UV_UNKNOWN; in uv_pipe()
386 return err; in uv_pipe()
403 int err; in uv__create_stdio_pipe_pair() local
428 err = uv__create_pipe_pair(&server_pipe, &client_pipe, in uv__create_stdio_pipe_pair()
430 if (err) in uv__create_stdio_pipe_pair()
437 err = GetLastError(); in uv__create_stdio_pipe_pair()
459 return err; in uv__create_stdio_pipe_pair()
473 DWORD err = 0; in uv__set_pipe_handle() local
483 err = GetLastError(); in uv__set_pipe_handle()
484 if (err == ERROR_ACCESS_DENIED) { in uv__set_pipe_handle()
500 if (err == ERROR_INVALID_PARAMETER) { in uv__set_pipe_handle()
503 return uv_translate_sys_error(err); in uv__set_pipe_handle()
514 return uv_translate_sys_error(err); in uv__set_pipe_handle()
714 int i, err; in uv_pipe_bind2() local
754 err = UV_ENOMEM; in uv_pipe_bind2()
770 err = uv__convert_utf8_to_utf16(name_copy, &handle->name); in uv_pipe_bind2()
774 if (err) { in uv_pipe_bind2()
786 err = GetLastError(); in uv_pipe_bind2()
787 if (err == ERROR_ACCESS_DENIED) { in uv_pipe_bind2()
788 err = UV_EADDRINUSE; in uv_pipe_bind2()
789 } else if (err == ERROR_PATH_NOT_FOUND || err == ERROR_INVALID_NAME) { in uv_pipe_bind2()
790 err = UV_EACCES; in uv_pipe_bind2()
792 err = uv_translate_sys_error(err); in uv_pipe_bind2()
810 return err; in uv_pipe_bind2()
861 int err; in uv_pipe_connect() local
863 err = uv_pipe_connect2(req, handle, name, strlen(name), 0, cb); in uv_pipe_connect()
865 if (err) { in uv_pipe_connect()
868 SET_REQ_ERROR(req, err); in uv_pipe_connect()
883 int err; in uv_pipe_connect2() local
922 err = ERROR_INVALID_PARAMETER; in uv_pipe_connect2()
926 err = ERROR_PIPE_BUSY; in uv_pipe_connect2()
932 err = uv__convert_utf8_to_utf16(name_copy, &handle->name); in uv_pipe_connect2()
936 if (err) { in uv_pipe_connect2()
937 err = ERROR_NO_UNICODE_TRANSLATION; in uv_pipe_connect2()
958 err = GetLastError(); in uv_pipe_connect2()
968 err = GetLastError(); in uv_pipe_connect2()
992 SET_REQ_ERROR(req, err); in uv_pipe_connect2()
1149 int err; in uv__pipe_accept() local
1162 err = uv__tcp_xfer_import( in uv__pipe_accept()
1167 if (err != 0) in uv__pipe_accept()
1168 return err; in uv__pipe_accept()
1250 DWORD err; in uv_pipe_zero_readfile_thread_proc() local
1255 err = 0; in uv_pipe_zero_readfile_thread_proc()
1265 err = GetLastError(); in uv_pipe_zero_readfile_thread_proc()
1273 err = ERROR_OPERATION_ABORTED; in uv_pipe_zero_readfile_thread_proc()
1281 if (err) in uv_pipe_zero_readfile_thread_proc()
1287 err = GetLastError(); in uv_pipe_zero_readfile_thread_proc()
1305 if (err) in uv_pipe_zero_readfile_thread_proc()
1306 SET_REQ_ERROR(req, err); in uv_pipe_zero_readfile_thread_proc()
1585 int err; in uv__pipe_write_data() local
1620 err = uv__build_coalesced_write_req(req, bufs, nbufs, &req, &write_buf); in uv__pipe_write_data()
1621 if (err != 0) in uv__pipe_write_data()
1622 return err; in uv__pipe_write_data()
1633 err = GetLastError(); in uv__pipe_write_data()
1634 return err; in uv__pipe_write_data()
1664 err = GetLastError(); in uv__pipe_write_data()
1667 return err; in uv__pipe_write_data()
1679 err = GetLastError(); in uv__pipe_write_data()
1682 return err; in uv__pipe_write_data()
1761 int err; in uv__pipe_write_ipc() local
1779 err = uv__tcp_xfer_export(send_tcp_handle, in uv__pipe_write_ipc()
1783 if (err != 0) in uv__pipe_write_ipc()
1784 return err; in uv__pipe_write_ipc()
1837 err = uv__pipe_write_data(loop, req, handle, bufs, buf_count, cb, 1); in uv__pipe_write_ipc()
1844 return err; in uv__pipe_write_ipc()
2031 DWORD err; in uv__pipe_read_ipc() local
2051 err = uv__pipe_read_exactly( in uv__pipe_read_ipc()
2053 if (err) in uv__pipe_read_ipc()
2090 err = uv__pipe_read_exactly(handle, &xfer_info, sizeof xfer_info); in uv__pipe_read_ipc()
2091 if (err) in uv__pipe_read_ipc()
2108 err = WSAECONNABORTED; /* Maps to UV_ECONNABORTED. */ in uv__pipe_read_ipc()
2111 uv__pipe_read_error_or_eof(loop, handle, err, uv_null_buf_); in uv__pipe_read_ipc()
2119 DWORD err; in uv__process_pipe_read_req() local
2141 err = GET_REQ_ERROR(req); in uv__process_pipe_read_req()
2146 if (err != ERROR_OPERATION_ABORTED) in uv__process_pipe_read_req()
2147 uv__pipe_read_error_or_eof(loop, handle, err, uv_null_buf_); in uv__process_pipe_read_req()
2177 int err; in uv__process_pipe_write_req() local
2195 err = GET_REQ_ERROR(req); in uv__process_pipe_write_req()
2207 req->cb(req, uv_translate_sys_error(err)); in uv__process_pipe_write_req()
2265 int err; in uv__process_pipe_connect_req() local
2271 err = 0; in uv__process_pipe_connect_req()
2276 err = UV_ECANCELED; in uv__process_pipe_connect_req()
2278 err = uv__set_pipe_handle(loop, handle, pipeHandle, -1, duplex_flags); in uv__process_pipe_connect_req()
2279 if (err) in uv__process_pipe_connect_req()
2282 err = uv_translate_sys_error(GET_REQ_ERROR(req)); in uv__process_pipe_connect_req()
2286 req->cb(req, err); in uv__process_pipe_connect_req()
2295 int err; in uv__process_pipe_shutdown_req() local
2305 err = UV_ECANCELED; in uv__process_pipe_shutdown_req()
2308 err = uv_translate_sys_error(GET_REQ_ERROR(req)); in uv__process_pipe_shutdown_req()
2326 err = 0; in uv__process_pipe_shutdown_req()
2330 req->cb(req, err); in uv__process_pipe_shutdown_req()
2426 int err; in uv_pipe_open() local
2480 err = uv__set_pipe_handle(pipe->loop, in uv_pipe_open()
2485 if (err) { in uv_pipe_open()
2488 return err; in uv_pipe_open()
2511 int err; in uv__pipe_getname() local
2559 err = uv_translate_sys_error(pRtlNtStatusToDosError(nt_status)); in uv__pipe_getname()
2574 err = 0; in uv__pipe_getname()
2588 err = uv__copy_utf16_to_utf8(name_buf, name_len, buffer+pipe_prefix_len, size); in uv__pipe_getname()
2593 return err; in uv__pipe_getname()