Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 13 of 13) sorted by relevance

/libuv/test/
H A Dtest-fs-copyfile.c120 unlink(dst); in TEST_IMPL()
143 unlink(dst); in TEST_IMPL()
149 unlink(dst); in TEST_IMPL()
176 unlink(dst); in TEST_IMPL()
184 unlink(dst); in TEST_IMPL()
195 unlink(dst); in TEST_IMPL()
201 unlink(dst); in TEST_IMPL()
207 unlink(dst); in TEST_IMPL()
217 unlink(dst); in TEST_IMPL()
218 touch_file(dst, 0); in TEST_IMPL()
[all …]
H A Dtest-ip-name.c36 char dst[INET6_ADDRSTRLEN]; in TEST_IMPL() local
44 ASSERT_OK(uv_ip4_name(addr4, dst, INET_ADDRSTRLEN)); in TEST_IMPL()
45 ASSERT_OK(strcmp("192.168.0.1", dst)); in TEST_IMPL()
47 ASSERT_OK(uv_ip_name(addr, dst, INET_ADDRSTRLEN)); in TEST_IMPL()
48 ASSERT_OK(strcmp("192.168.0.1", dst)); in TEST_IMPL()
52 ASSERT_OK(uv_ip6_name(addr6, dst, INET6_ADDRSTRLEN)); in TEST_IMPL()
53 ASSERT_OK(strcmp("fe80::2acf:daff:fedd:342a", dst)); in TEST_IMPL()
55 ASSERT_OK(uv_ip_name(addr, dst, INET6_ADDRSTRLEN)); in TEST_IMPL()
56 ASSERT_OK(strcmp("fe80::2acf:daff:fedd:342a", dst)); in TEST_IMPL()
61 ASSERT_EQ(UV_EAFNOSUPPORT, uv_ip_name(addr, dst, INET6_ADDRSTRLEN)); in TEST_IMPL()
H A Dtest-udp-ipv6.c90 char dst[256]; in is_from_client() local
97 r = uv_inet_ntop(addr->sa_family, &addr6->sin6_addr, dst, sizeof(dst)); in is_from_client()
99 printf("from [%.*s]:%d\n", (int) sizeof(dst), dst, addr6->sin6_port); in is_from_client()
151 char dst[256]; in do_test() local
168 dst, in do_test()
169 sizeof(dst))); in do_test()
170 printf("on [%.*s]:%d\n", (int) sizeof(dst), dst, addr6.sin6_port); in do_test()
179 ASSERT_OK(uv_inet_ntop(addr.sin_family, &addr.sin_addr, dst, sizeof(dst))); in do_test()
180 printf("to [%.*s]:%d\n", (int) sizeof(dst), dst, addr.sin_port); in do_test()
200 ASSERT_OK(uv_inet_ntop(addr.sin_family, &addr.sin_addr, dst, sizeof(dst))); in do_test()
[all …]
H A Dtest-ip4-addr.c31 char dst[16]; in TEST_IMPL() local
33 ASSERT_OK(uv_inet_ntop(AF_INET, "\xFF\xFF\xFF\xFF", dst, sizeof(dst))); in TEST_IMPL()
34 ASSERT_OK(strcmp(dst, "255.255.255.255")); in TEST_IMPL()
36 dst, sizeof(dst) - 1)); in TEST_IMPL()
/libuv/src/
H A Dinet.c31 static int inet_pton4(const char *src, unsigned char *dst);
38 return (inet_ntop4(src, dst, size)); in uv_inet_ntop()
40 return (inet_ntop6(src, dst, size)); in uv_inet_ntop()
57 uv__strscpy(dst, tmp, size); in inet_ntop4()
141 uv__strscpy(dst, tmp, size); in inet_ntop6()
146 int uv_inet_pton(int af, const char* src, void* dst) { in uv_inet_pton() argument
147 if (src == NULL || dst == NULL) in uv_inet_pton()
152 return (inet_pton4(src, dst)); in uv_inet_pton()
166 return inet_pton6(s, dst); in uv_inet_pton()
209 memcpy(dst, tmp, sizeof(struct in_addr)); in inet_pton4()
[all …]
H A Duv-common.c300 int uv_ip4_name(const struct sockaddr_in* src, char* dst, size_t size) { in uv_ip4_name() argument
301 return uv_inet_ntop(AF_INET, &src->sin_addr, dst, size); in uv_ip4_name()
305 int uv_ip6_name(const struct sockaddr_in6* src, char* dst, size_t size) { in uv_ip6_name() argument
306 return uv_inet_ntop(AF_INET6, &src->sin6_addr, dst, size); in uv_ip6_name()
310 int uv_ip_name(const struct sockaddr *src, char *dst, size_t size) { in uv_ip_name() argument
314 dst, size); in uv_ip_name()
317 dst, size); in uv_ip_name()
/libuv/src/unix/
H A Dfs.c1450 dst->st_dev = src->st_dev; in uv__to_stat()
1453 dst->st_uid = src->st_uid; in uv__to_stat()
1481 dst->st_flags = 0; in uv__to_stat()
1482 dst->st_gen = 0; in uv__to_stat()
1509 dst->st_flags = 0; in uv__to_stat()
1510 dst->st_gen = 0; in uv__to_stat()
1514 dst->st_atim.tv_nsec = 0; in uv__to_stat()
1516 dst->st_mtim.tv_nsec = 0; in uv__to_stat()
1518 dst->st_ctim.tv_nsec = 0; in uv__to_stat()
1521 dst->st_flags = 0; in uv__to_stat()
[all …]
H A Dibmi.c155 static void iconv_e2a(unsigned char src[], unsigned char dst[], size_t length) { in iconv_e2a() argument
158 dst[i] = e2a[src[i]]; in iconv_e2a()
162 static void iconv_a2e(const char* src, unsigned char dst[], size_t length) { in iconv_a2e() argument
170 dst[i] = a2e[src[i]]; in iconv_a2e()
173 dst[i] = a2e[' ']; in iconv_a2e()
H A Daix.c422 static char* uv__rawname(const char* cp, char (*dst)[FILENAME_MAX+1]) { in uv__rawname()
429 snprintf(*dst, sizeof(*dst), "%.*s/r%s", (int) (dp - cp), cp, dp + 1); in uv__rawname()
430 return *dst; in uv__rawname()
/libuv/src/win/
H A Dprocess.c523 WCHAR* dst = NULL; in make_program_args() local
552 dst = uv__malloc(dst_len * sizeof(WCHAR)); in make_program_args()
553 if (dst == NULL) { in make_program_args()
565 pos = dst; in make_program_args()
585 assert(pos <= dst + dst_len); in make_program_args()
590 *dst_ptr = dst; in make_program_args()
594 uv__free(dst); in make_program_args()
646 WCHAR* dst; in make_program_env() local
728 if (!dst) { in make_program_env()
771 assert(env_len == (size_t) (ptr - dst)); in make_program_env()
[all …]
/libuv/include/
H A Duv.h1761 UV_EXTERN int uv_ip4_name(const struct sockaddr_in* src, char* dst, size_t size);
1762 UV_EXTERN int uv_ip6_name(const struct sockaddr_in6* src, char* dst, size_t size);
1763 UV_EXTERN int uv_ip_name(const struct sockaddr* src, char* dst, size_t size);
1765 UV_EXTERN int uv_inet_ntop(int af, const void* src, char* dst, size_t size);
1766 UV_EXTERN int uv_inet_pton(int af, const char* src, void* dst);
/libuv/docs/src/
H A Dmisc.rst436 .. c:function:: int uv_ip4_name(const struct sockaddr_in* src, char* dst, size_t size)
440 .. c:function:: int uv_ip6_name(const struct sockaddr_in6* src, char* dst, size_t size)
444 .. c:function:: int uv_ip_name(const struct sockaddr *src, char *dst, size_t size)
448 .. c:function:: int uv_inet_ntop(int af, const void* src, char* dst, size_t size)
449 .. c:function:: int uv_inet_pton(int af, const char* src, void* dst)
453 the target `dst` pointer is unmodified.
/libuv/
H A DChangeLog2153 * fs: fix uv_fs_copyfile if same src and dst (Santiago Gimeno)

Completed in 61 milliseconds