Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 9 of 9) sorted by relevance

/libuv/src/win/
H A Dgetnameinfo.c46 int ret; in uv__getnameinfo_work() local
56 ret = WSAGetLastError(); in uv__getnameinfo_work()
57 req->retcode = uv__getaddrinfo_translate_error(ret); in uv__getnameinfo_work()
62 ret = uv__copy_utf16_to_utf8(host, -1, req->host, &size); in uv__getnameinfo_work()
63 if (ret < 0) { in uv__getnameinfo_work()
64 req->retcode = ret; in uv__getnameinfo_work()
69 ret = uv__copy_utf16_to_utf8(service, -1, req->service, &size); in uv__getnameinfo_work()
70 if (ret < 0) { in uv__getnameinfo_work()
71 req->retcode = ret; in uv__getnameinfo_work()
H A Dutil.c881 int ret; in uv_getrusage() local
883 ret = GetProcessTimes(GetCurrentProcess(), &createTime, &exitTime, &kernelTime, &userTime); in uv_getrusage()
884 if (ret == 0) { in uv_getrusage()
888 ret = FileTimeToSystemTime(&kernelTime, &kernelSystemTime); in uv_getrusage()
889 if (ret == 0) { in uv_getrusage()
893 ret = FileTimeToSystemTime(&userTime, &userSystemTime); in uv_getrusage()
894 if (ret == 0) { in uv_getrusage()
898 ret = GetProcessMemoryInfo(GetCurrentProcess(), in uv_getrusage()
901 if (ret == 0) { in uv_getrusage()
905 ret = GetProcessIoCounters(GetCurrentProcess(), &ioCounters); in uv_getrusage()
[all …]
H A Dprocess.c1172 DWORD pid, ret; in uv__kill() local
1182 ret = RegOpenKeyExW( in uv__kill()
1188 if (ret == ERROR_SUCCESS) { in uv__kill()
1192 ret = RegGetValueW(registry_key, in uv__kill()
1199 if (ret != ERROR_SUCCESS) { in uv__kill()
H A Dfs.c1950 DWORD ret; in fs__stat_impl_from_path() local
1979 ret = GetLastError(); in fs__stat_impl_from_path()
1981 ret = 0; in fs__stat_impl_from_path()
1984 return ret; in fs__stat_impl_from_path()
2412 DWORD ret; in fs__utime_impl_from_path() local
2431 ret = GetLastError(); in fs__utime_impl_from_path()
2433 ret = 0; in fs__utime_impl_from_path()
2436 return ret; in fs__utime_impl_from_path()
2858 DWORD ret; in fs__statfs() local
2882 if (ret == 0) { in fs__statfs()
[all …]
/libuv/src/unix/
H A Dfs.c750 int ret; in uv__fs_readlink() local
752 if (ret != 0) in uv__fs_readlink()
1590 int ret; in uv__fs_stat() local
1594 return ret; in uv__fs_stat()
1597 if (ret == 0) in uv__fs_stat()
1600 return ret; in uv__fs_stat()
1606 int ret; in uv__fs_lstat() local
1610 return ret; in uv__fs_lstat()
1616 return ret; in uv__fs_lstat()
1622 int ret; in uv__fs_fstat() local
[all …]
H A Dsignal.c543 int ret; in uv__signal_stop() local
565 ret = uv__signal_register_handler(handle->signum, 1); in uv__signal_stop()
566 assert(ret == 0); in uv__signal_stop()
567 (void)ret; in uv__signal_stop()
H A Dsunos.c558 int ret = 0; in uv__fs_event_stop() local
564 ret = port_dissociate(handle->loop->fs_fd, in uv__fs_event_stop()
573 if (ret == 0) in uv__fs_event_stop()
576 return ret; in uv__fs_event_stop()
H A Dstream.c286 int ret; in uv__stream_try_select() local
306 ret = kevent(kq, filter, 1, events, 1, &timeout); in uv__stream_try_select()
307 while (ret == -1 && errno == EINTR); in uv__stream_try_select()
311 if (ret == -1) in uv__stream_try_select()
314 if (ret == 0 || (events[0].flags & EV_ERROR) == 0 || events[0].data != EINVAL) in uv__stream_try_select()
/libuv/test/
H A Dtest-tty-duplicate-key.c85 int ret; in make_key_event_records() local
110 ret = ToUnicode(virt_key, KEV(0).wVirtualScanCode, kb_state, buf, 2, 0); in make_key_event_records()
111 if (ret == 1) { in make_key_event_records()

Completed in 42 milliseconds