/libuv/src/unix/ |
H A D | tty.c | 340 int err; in uv_tty_get_winsize() local 343 err = ioctl(uv__stream_fd(tty), TIOCGWINSZ, &ws); in uv_tty_get_winsize() 344 while (err == -1 && errno == EINTR); in uv_tty_get_winsize() 346 if (err == -1) in uv_tty_get_winsize() 450 int err; in uv_tty_reset_mode() local 457 err = 0; in uv_tty_reset_mode() 459 err = uv__tcsetattr(orig_termios_fd, TCSANOW, &orig_termios); in uv_tty_reset_mode() 464 return err; in uv_tty_reset_mode()
|
H A D | sunos.c | 68 int err; in uv__platform_loop_init() local 79 if (err) { in uv__platform_loop_init() 81 return err; in uv__platform_loop_init() 163 int err; in uv__io_poll() local 242 if (err) { in uv__io_poll() 521 int err; in uv_fs_event_start() local 543 if (err != 0) { in uv_fs_event_start() 545 return err; in uv_fs_event_start() 626 int err; in uv_resident_set_memory() local 637 err = 0; in uv_resident_set_memory() [all …]
|
H A D | openbsd.c | 67 int err; in uv_exepath() local 74 err = UV_ENOMEM; in uv_exepath() 86 err = UV__ERR(errno); in uv_exepath() 93 err = UV_EINVAL; /* FIXME(bnoordhuis) More appropriate error. */ in uv_exepath() 104 err = 0; in uv_exepath() 109 return err; in uv_exepath()
|
H A D | ibmi.c | 333 errcode_s err; in get_ibmi_physical_address() local 351 memset(&err, 0, sizeof(err)); in get_ibmi_physical_address() 352 err.bytes_provided = sizeof(err); in get_ibmi_physical_address() 359 qdcrlind_argv[4] = &err; in get_ibmi_physical_address() 367 if (err.bytes_available > 0) { in get_ibmi_physical_address()
|
H A D | getnameinfo.c | 33 int err; in uv__getnameinfo_work() local 45 err = getnameinfo((struct sockaddr*) &req->storage, in uv__getnameinfo_work() 52 req->retcode = uv__getaddrinfo_translate_error(err); in uv__getnameinfo_work()
|
H A D | core.c | 496 int err; in uv__socket() local 512 if (err == 0) in uv__socket() 515 if (err) { in uv__socket() 517 return err; in uv__socket() 549 int err; in uv__accept() local 551 (void) &err; in uv__accept() 567 if (err == 0) in uv__accept() 572 return err; in uv__accept() 1044 int err; in uv__open_cloexec() 1052 if (err) { in uv__open_cloexec() [all …]
|
H A D | darwin.c | 149 kern_return_t err; in uv_resident_set_memory() local 152 err = task_info(mach_task_self(), in uv_resident_set_memory() 156 (void) &err; in uv_resident_set_memory() 160 assert(err == KERN_SUCCESS); in uv_resident_set_memory()
|
H A D | fs.c | 1239 int err; in uv__fs_copyfile() local 1246 err = 0; in uv__fs_copyfile() 1276 err = dstfd; in uv__fs_copyfile() 1310 err = 0; in uv__fs_copyfile() 1349 if (err != UV_EPERM) in uv__fs_copyfile() 1355 err = 0; in uv__fs_copyfile() 1377 err = UV_ENOSYS; in uv__fs_copyfile() 1402 if (err < 0) in uv__fs_copyfile() 1403 result = err; in uv__fs_copyfile() 1412 result = err; in uv__fs_copyfile() [all …]
|
H A D | getaddrinfo.c | 100 int err; in uv__getaddrinfo_work() local 103 err = getaddrinfo(req->hostname, req->service, req->hints, &req->addrinfo); in uv__getaddrinfo_work() 104 req->retcode = uv__getaddrinfo_translate_error(err); in uv__getaddrinfo_work()
|
H A D | kqueue.c | 70 int err; in uv__io_fork() local 72 err = uv__kqueue_init(loop); in uv__io_fork() 73 if (err) in uv__io_fork() 74 return err; in uv__io_fork() 95 return err; in uv__io_fork()
|
H A D | aix.c | 512 int err; in uv__makedir_p() local 522 err = mkdir(tmp, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); in uv__makedir_p() 523 if (err != 0 && errno != EEXIST) in uv__makedir_p() 524 return err; in uv__makedir_p() 1012 int err; in uv_resident_set_memory() local 1022 err = UV_EINVAL; in uv_resident_set_memory() 1025 err = 0; in uv_resident_set_memory() 1029 return err; in uv_resident_set_memory()
|
H A D | linux.c | 655 int err; in uv__io_fork() local 667 if (err) in uv__io_fork() 668 return err; in uv__io_fork() 1644 goto err; in uv_resident_set_memory() 1649 goto err; in uv_resident_set_memory() 1655 goto err; in uv_resident_set_memory() 1660 err: in uv_resident_set_memory() 2434 int err; in uv__inotify_fork() local 2490 if (err) in uv__inotify_fork() 2606 int err; in uv_fs_event_start() local [all …]
|
/libuv/src/win/ |
H A D | util.c | 100 int err; in uv_exepath() local 121 err = GetLastError(); in uv_exepath() 128 if (err == UV_ENOBUFS) { in uv_exepath() 130 err = 0; in uv_exepath() 136 return err; in uv_exepath() 351 int err; in uv_set_process_title() local 358 if (err) in uv_set_process_title() 359 return err; in uv_set_process_title() 367 err = GetLastError(); in uv_set_process_title() 376 err = 0; in uv_set_process_title() [all …]
|
H A D | core.c | 230 int err; in uv_loop_init() local 245 err = uv_mutex_init(&lfields->loop_metrics.lock); in uv_loop_init() 246 if (err) in uv_loop_init() 269 err = UV_ENOMEM; in uv_loop_init() 288 err = uv_mutex_init(&loop->wq_mutex); in uv_loop_init() 289 if (err) in uv_loop_init() 292 err = uv_async_init(loop, &loop->wq_async, uv__work_done); in uv_loop_init() 293 if (err) in uv_loop_init() 299 err = uv__loops_add(loop); in uv_loop_init() 300 if (err) in uv_loop_init() [all …]
|
H A D | fs-fd-hash-inl.h | 78 int err; in uv__fd_hash_init() local 80 err = uv_mutex_init(&uv__fd_hash_mutex); in uv__fd_hash_init() 81 if (err) { in uv__fd_hash_init() 82 uv_fatal_error(err, "uv_mutex_init"); in uv__fd_hash_init()
|
H A D | tty.c | 350 int err; in uv_tty_set_mode() local 379 if (err) { in uv_tty_set_mode() 392 return err; in uv_tty_set_mode() 403 if (err) { in uv_tty_set_mode() 1045 DWORD written, err; in uv__tty_read_stop() local 1064 if (err) in uv__tty_read_stop() 1065 return err; in uv__tty_read_stop() 1077 DWORD err = 0; in uv__cancel_read_console() local 1120 err = GetLastError(); in uv__cancel_read_console() 1125 return err; in uv__cancel_read_console() [all …]
|
H A D | thread.c | 103 int err; in uv_thread_create_ex() local 138 err = errno; in uv_thread_create_ex() 141 err = 0; in uv_thread_create_ex() 147 switch (err) { in uv_thread_create_ex()
|
H A D | getaddrinfo.c | 86 int err; in uv__getaddrinfo_work() local 91 err = GetAddrInfoW(req->node, req->service, hints, &req->addrinfow); in uv__getaddrinfo_work() 92 req->retcode = uv__getaddrinfo_translate_error(err); in uv__getaddrinfo_work()
|
H A D | poll.c | 371 int err; in uv__slow_poll_process_poll_req() local 387 err = GET_REQ_ERROR(req); in uv__slow_poll_process_poll_req() 389 handle->poll_cb(handle, uv_translate_sys_error(err), 0); in uv__slow_poll_process_poll_req()
|
/libuv/src/ |
H A D | fs-poll.c | 73 int err; in uv_fs_poll_start() local 92 err = uv_timer_init(loop, &ctx->timer_handle); in uv_fs_poll_start() 93 if (err < 0) in uv_fs_poll_start() 99 err = uv_fs_stat(loop, &ctx->fs_req, ctx->path, poll_cb); in uv_fs_poll_start() 100 if (err < 0) in uv_fs_poll_start() 112 return err; in uv_fs_poll_start()
|
H A D | inet.c | 127 int err = inet_ntop4(src+12, tp, sizeof tmp - (tp - tmp)); in inet_ntop6() local 128 if (err) in inet_ntop6() 129 return err; in inet_ntop6() 263 int err = inet_pton4(curtok, tp); in inet_pton6() local 264 if (err == 0) { in inet_pton6()
|
H A D | threadpool.c | 313 int err; in uv__work_done() local 328 err = (w->work == uv__cancelled) ? UV_ECANCELED : 0; in uv__work_done() 329 w->done(w, err); in uv__work_done() 355 static void uv__queue_done(struct uv__work* w, int err) { in uv__queue_done() argument 364 req->after_work_cb(req, err); in uv__queue_done()
|
/libuv/docs/src/ |
H A D | errors.rst | 356 .. c:function:: const char* uv_strerror(int err) 361 .. c:function:: char* uv_strerror_r(int err, char* buf, size_t buflen) 368 .. c:function:: const char* uv_err_name(int err) 373 .. c:function:: char* uv_err_name_r(int err, char* buf, size_t buflen)
|
/libuv/test/ |
H A D | test-idna.c | 127 #define F(input, err) \ argument 131 ASSERT_EQ(err, uv__idna_toascii(s, s + sizeof(s) - 1, d, d + sizeof(d))); \
|
H A D | test-spawn.c | 87 int err; in kill_cb() local 113 err = uv_kill(process->pid, 0); in kill_cb() 114 ASSERT_EQ(err, UV_ESRCH); in kill_cb() 208 int err; in TEST_IMPL() local 220 err = waitpid(process.pid, &status, 0); in TEST_IMPL() 221 while (err == -1 && errno == EINTR); in TEST_IMPL() 223 ASSERT_EQ(err, -1); in TEST_IMPL() 857 uv_pipe_t in, out, err; in TEST_IMPL() local 872 r = uv_pipe_init(uv_default_loop(), &err, 0); in TEST_IMPL() 881 options.stdio[2].data.stream = (uv_stream_t*) &err; in TEST_IMPL() [all …]
|