/libuv/test/ |
H A D | benchmark-udp-pummel.c | 73 struct sender_state* s; in send_cb() local 86 ASSERT_PTR_EQ(req->handle, &s->udp_handle); in send_cb() 92 uv_close((uv_handle_t*)&s->udp_handle, NULL); in send_cb() 99 ASSERT_OK(uv_udp_send(&s->send_req, in send_cb() 100 &s->udp_handle, in send_cb() 173 struct receiver_state* s = receivers + i; in pummel() local 179 uv_unref((uv_handle_t*)&s->udp_handle); in pummel() 189 struct sender_state* s = senders + i; in pummel() local 192 &s->addr)); in pummel() 194 ASSERT_OK(uv_udp_send(&s->send_req, in pummel() [all …]
|
H A D | test-idna.c | 130 static const char s[] = "" input ""; \ 131 ASSERT_EQ(err, uv__idna_toascii(s, s + sizeof(s) - 1, d, d + sizeof(d))); \ 139 static const char s[] = "" input ""; \ 140 n = uv__idna_toascii(s, s + sizeof(s) - 1, d1, d1 + sizeof(d1)); \
|
H A D | test-ip6-addr.c | 169 struct sockaddr_in6 s; in TEST_IMPL() local 170 ASSERT_OK(uv_ip6_addr("::", 0, &s)); in TEST_IMPL() 172 ASSERT_EQ(s.sin6_len, sizeof(s)); in TEST_IMPL()
|
H A D | test-fs.c | 174 uv_stat_t* s; in check_permission() local 180 s = &req.statbuf; in check_permission() 816 uv_stat_t* s; in check_utime() local 830 if (s->st_atim.tv_nsec == 0 && s->st_mtim.tv_nsec == 0) { in check_utime() 858 st_atim = s->st_atim.tv_sec + s->st_atim.tv_nsec / 1e9; in check_utime() 859 st_mtim = s->st_mtim.tv_sec + s->st_mtim.tv_nsec / 1e9; in check_utime() 1450 uv_stat_t* s; in TEST_IMPL() local 1479 s = req.ptr; in TEST_IMPL() 1504 s = req.ptr; in TEST_IMPL() 2858 int r, s; in TEST_IMPL() local [all …]
|
/libuv/src/unix/ |
H A D | stream.c | 157 fd = s->fd; in uv__stream_osx_select() 170 memset(s->sread, 0, s->sread_sz); in uv__stream_osx_select() 171 memset(s->swrite, 0, s->swrite_sz); in uv__stream_osx_select() 177 FD_SET(s->int_fd, s->sread); in uv__stream_osx_select() 194 if (FD_ISSET(s->int_fd, s->sread)) in uv__stream_osx_select() 220 assert(events != 0 || FD_ISSET(s->int_fd, s->sread)); in uv__stream_osx_select() 270 uv__free(s); in uv__stream_osx_cb_close() 333 s = uv__malloc(sizeof(*s) + sread_sz + swrite_sz); in uv__stream_try_select() 340 s->fd = *fd; in uv__stream_try_select() 341 s->sread = (fd_set*) ((char*) s + sizeof(*s)); in uv__stream_try_select() [all …]
|
H A D | cygwin.c | 40 const char* s; in uv_resident_set_memory() local 52 s = strrchr(buf, ')'); in uv_resident_set_memory() 53 if (s == NULL) in uv_resident_set_memory() 57 s = strchr(s + 1, ' '); in uv_resident_set_memory() 58 if (s == NULL) in uv_resident_set_memory() 63 val = strtol(s, NULL, 10); in uv_resident_set_memory()
|
H A D | internal.h | 402 char* s; in UV_UNUSED() local 404 s = strrchr(path, '/'); in UV_UNUSED() 405 if (s == NULL) in UV_UNUSED() 408 return s + 1; in UV_UNUSED() 414 rc = fstat(fd, s); in UV_UNUSED() 416 uv__msan_unpoison(s, sizeof(*s)); in UV_UNUSED() 424 rc = lstat(path, s); in UV_UNUSED() 426 uv__msan_unpoison(s, sizeof(*s)); in UV_UNUSED() 434 rc = stat(path, s); in UV_UNUSED() 436 uv__msan_unpoison(s, sizeof(*s)); in UV_UNUSED() [all …]
|
H A D | os390-proctitle.c | 42 char* s; in uv_setup_args() local 61 s = (char*) &new_argv[argc + 1]; in uv_setup_args() 64 memcpy(s, argv[i], size); in uv_setup_args() 65 new_argv[i] = s; in uv_setup_args() 66 s += size; in uv_setup_args()
|
H A D | proctitle.c | 50 char* s; in uv_setup_args() local 74 s = (char*) &new_argv[argc + 1]; in uv_setup_args() 81 memcpy(s, argv[i], size); in uv_setup_args() 82 new_argv[i] = s; in uv_setup_args() 83 s += size; in uv_setup_args()
|
H A D | random-devurandom.c | 33 struct stat s; in uv__random_readpath() local 43 if (uv__fstat(fd, &s)) { in uv__random_readpath() 48 if (!S_ISCHR(s.st_mode)) { in uv__random_readpath()
|
H A D | tcp.c | 39 union uv__sockaddr s; in maybe_bind_socket() local 42 slen = sizeof(s); in maybe_bind_socket() 43 memset(&s, 0, sizeof(s)); in maybe_bind_socket() 45 if (getsockname(fd, &s.addr, &slen)) in maybe_bind_socket() 48 if (s.addr.sa_family == AF_INET) in maybe_bind_socket() 49 if (s.in.sin_port != 0) in maybe_bind_socket() 52 if (s.addr.sa_family == AF_INET6) in maybe_bind_socket() 53 if (s.in6.sin6_port != 0) in maybe_bind_socket() 57 if (bind(fd, &s.addr, slen)) in maybe_bind_socket()
|
H A D | darwin-syscalls.h | 14 ssize_t recvmsg_x(int s, const struct mmsghdr* msgp, u_int cnt, int flags); 15 ssize_t sendmsg_x(int s, const struct mmsghdr* msgp, u_int cnt, int flags);
|
H A D | tty.c | 389 struct stat s; in uv_guess_handle() local 399 if (uv__fstat(file, &s)) { in uv_guess_handle() 418 if (S_ISREG(s.st_mode)) in uv_guess_handle() 421 if (S_ISCHR(s.st_mode)) in uv_guess_handle() 424 if (S_ISFIFO(s.st_mode)) in uv_guess_handle() 427 if (!S_ISSOCK(s.st_mode)) in uv_guess_handle()
|
/libuv/src/ |
H A D | idna.c | 171 ss = s; in uv__idna_toascii_label() 177 while (s < se) { in uv__idna_toascii_label() 199 s = ss; in uv__idna_toascii_label() 200 while (s < se) { in uv__idna_toascii_label() 229 s = ss; in uv__idna_toascii_label() 231 while (s < se) { in uv__idna_toascii_label() 249 s = ss; in uv__idna_toascii_label() 325 if (s == se) in uv__idna_toascii() 330 si = s; in uv__idna_toascii() 352 s = si; in uv__idna_toascii() [all …]
|
H A D | inet.c | 155 char tmp[UV__INET6_ADDRSTRLEN], *s, *p; in uv_inet_pton() local 156 s = (char*) src; in uv_inet_pton() 159 s = tmp; in uv_inet_pton() 163 memcpy(s, src, len); in uv_inet_pton() 164 s[len] = '\0'; in uv_inet_pton() 166 return inet_pton6(s, dst); in uv_inet_pton()
|
H A D | strscpy.c | 25 ssize_t uv__strscpy(char* d, const char* s, size_t n) { in uv__strscpy() argument 29 if ('\0' == (d[i] = s[i])) in uv__strscpy()
|
/libuv/docs/code/uvwget/ |
H A D | main.c | 109 int handle_socket(CURL *easy, curl_socket_t s, int action, void *userp, void *socketp) { in handle_socket() argument 116 curl_context = create_curl_context(s); in handle_socket() 117 curl_multi_assign(curl_handle, s, (void *) curl_context); in handle_socket() 132 curl_multi_assign(curl_handle, s, NULL); in handle_socket()
|
/libuv/docs/src/guide/ |
H A D | about.rst | 12 Nikhil is indebted to Marc Lehmann's comprehensive `man page 20 In 2017 the libuv project incorporated the Nikhil's work into the official 21 documentation and it's maintained there henceforth.
|
H A D | eventloops.rst | 5 interesting results by juggling multiple loops. You can also embed libuv's 7 Qt's event loop driving a libuv backend which does intensive system level 18 these things can be a bit difficult to understand, so let's look at
|
/libuv/docs/src/ |
H A D | version.rst | 21 libuv version's major number. 25 libuv version's minor number. 29 libuv version's patch number.
|
H A D | metrics.rst | 53 Retrieve the amount of time the event loop has been idle in the kernel's 56 The return value is the accumulated time spent idle in the kernel's event 61 The event loop will not begin accumulating the event provider's idle
|
H A D | async.rst | 45 Wake up the event loop and call the async handle's callback. 50 It's safe to call this function from any thread. The callback will be called on the 55 It's safe to call this function from a signal handler.
|
H A D | dns.rst | 56 Char array containing the resulting host. It's null terminated. 62 Char array containing the resulting service. It's null terminated. 79 constraints, or NULL. Consult `man -s 3 getaddrinfo` for more details. 103 Consult `man -s 3 getnameinfo` for more details.
|
/libuv/ |
H A D | MAINTAINERS.md | 37 It's quite handy to store a maintainer's signature as a git blob, and have 49 we'll assume it's 'abcd1234'. Storing the blob in git is not enough, it could 52 $ git tag -s pubkey-saghul abcd1234
|
/libuv/docs/src/sphinx-plugins/ |
H A D | manpage.py | 23 s = Template(ref) 24 ref = s.substitute(num=manpage_num, topic=name)
|