Home
last modified time | relevance | path

Searched refs:cp (Results 1 – 15 of 15) sorted by relevance

/libevent-2.1.12/test/
H A Dbench_cascade.c84 evutil_socket_t *cp; in run_once() local
95 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) { in run_once()
96 if (evutil_socketpair(AF_UNIX, SOCK_STREAM, 0, cp) == -1) { in run_once()
109 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) { in run_once()
110 evutil_socket_t fd = i < num_pipes - 1 ? cp[3] : -1; in run_once()
111 event_set(&events[i], cp[0], EV_READ, read_cb, in run_once()
127 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) { in run_once()
129 evutil_closesocket(cp[0]); in run_once()
130 evutil_closesocket(cp[1]); in run_once()
H A Dregress_buffer.c1408 free(cp); in test_evbuffer_readln()
1411 if (!cp || sz != 5 || memcmp(cp, "more\0\0", 6)) in test_evbuffer_readln()
1417 free(cp); in test_evbuffer_readln()
1421 free(cp); in test_evbuffer_readln()
1436 free(cp); in test_evbuffer_readln()
1441 free(cp); in test_evbuffer_readln()
1591 free(cp); cp = NULL; in test_evbuffer_readln()
1604 free(cp); cp = NULL; in test_evbuffer_readln()
1619 free(cp); cp = NULL; in test_evbuffer_readln()
1625 if (cp) free(cp); in test_evbuffer_readln()
[all …]
H A Dbench.c102 evutil_socket_t *cp, space; in run_once() local
106 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) { in run_once()
109 event_assign(&events[i], base, cp[0], EV_READ | EV_PERSIST, read_cb, (void *)(ev_intptr_t) i); in run_once()
150 evutil_socket_t *cp; local
215 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) {
217 if (pipe(cp) == -1) {
219 if (evutil_socketpair(AF_UNIX, SOCK_STREAM, 0, cp) == -1) {
H A Dregress_util.c353 const char *cp; in regress_sockaddr_port_format() local
363 tt_ptr_op(cp,==,cbuf); in regress_sockaddr_port_format()
505 if (cp) mm_free(cp); \ in test_evutil_rtrim()
512 char *cp = NULL; in test_evutil_rtrim() local
533 if (cp) in test_evutil_rtrim()
534 mm_free(cp); in test_evutil_rtrim()
735 const char **cp; in test_evutil_upcast() local
742 cp = &es1.b; in test_evutil_upcast()
1142 const char *cp; in test_evutil_getaddrinfo_live() local
1166 cp?cp:"<unwriteable>")); in test_evutil_getaddrinfo_live()
[all …]
H A Dtinytest.c596 char *result, *cp; local
603 cp = result;
605 *cp++ = "0123456789ABCDEF"[val[i] >> 4];
606 *cp++ = "0123456789ABCDEF"[val[i] & 0x0f];
608 *cp = 0;
H A Dregress.c2680 char *cp; in methodname_to_envvar() local
2682 for (cp = buf; *cp; ++cp) { in methodname_to_envvar()
2683 *cp = EVUTIL_TOUPPER_(*cp); in methodname_to_envvar()
/libevent-2.1.12/
H A Devutil.c1962 cp = buf; in evutil_inet_ntop()
1974 cp += strlen(cp); in evutil_inet_ntop()
1979 *cp = '\0'; in evutil_inet_ntop()
2020 *cp = '\0'; in evutil_inet_pton_scope()
2172 } else if (cp && strchr(cp+1, ':')) { in evutil_parse_sockaddr_port()
2425 char *cp; in evutil_rtrim_lws_() local
2430 if ((cp = strchr(str, '\0')) == NULL || (cp == str)) in evutil_rtrim_lws_()
2433 --cp; in evutil_rtrim_lws_()
2435 while (*cp == ' ' || *cp == '\t') { in evutil_rtrim_lws_()
2436 *cp = '\0'; in evutil_rtrim_lws_()
[all …]
H A Dhttp.c4643 if (cp && cp < eos) { in parse_authority()
4683 memcpy(uri->host, cp, eos-cp); in parse_authority()
4693 if (*cp == '?' || *cp == '#' || *cp == '/') in end_of_authority()
4695 ++cp; in end_of_authority()
4721 while (*cp && *cp != '#' && *cp != '?') in end_of_path()
4725 while (*cp && *cp != '#') in end_of_path()
4729 cp += strlen(cp); in end_of_path()
4738 *cp == ':' || *cp == '@' || *cp == '/') in end_of_path()
4739 ++cp; in end_of_path()
4744 ++cp; in end_of_path()
[all …]
H A Devdns.c1013 *cp++ = '.'; in name_parse()
1022 *cp = '\0'; in name_parse()
3024 char *cp; in evdns_base_resolve_reverse_ipv6() local
3029 cp = buf; in evdns_base_resolve_reverse_ipv6()
3033 *cp++ = '.'; in evdns_base_resolve_reverse_ipv6()
3035 *cp++ = '.'; in evdns_base_resolve_reverse_ipv6()
3367 if (!cp) in strtok_r()
3369 while (*cp && !strchr(delim, *cp)) in strtok_r()
3370 ++cp; in strtok_r()
3371 if (!*cp) { in strtok_r()
[all …]
H A Dht-internal.h94 const unsigned char *cp = (const unsigned char *)s; in ht_string_hash_() local
95 h = *cp << 7; in ht_string_hash_()
96 while (*cp) { in ht_string_hash_()
97 h = (1000003*h) ^ *cp++; in ht_string_hash_()
100 h ^= (unsigned)(cp-(const unsigned char*)s); in ht_string_hash_()
H A Ddoxygen.am36 echo "cp -pR $$d '$(DESTDIR)$(htmldir)/'"; \
37 cp -pR $$d '$(DESTDIR)$(htmldir)/'; \
H A Dbuffer.c1480 char *cp = memchr(buffer+i, chr, chain->off-i); in evbuffer_strchr() local
1481 if (cp) { in evbuffer_strchr()
1483 it->internal_.pos_in_chain = cp - buffer; in evbuffer_strchr()
1484 it->pos += (cp - buffer - i); in evbuffer_strchr()
1529 char *cp = find_eol_char(buffer+i, chain->off-i); in evbuffer_find_eol_char() local
1530 if (cp) { in evbuffer_find_eol_char()
1532 it->internal_.pos_in_chain = cp - buffer; in evbuffer_find_eol_char()
1533 it->pos += (cp - buffer) - i; in evbuffer_find_eol_char()
H A Dconfigure.ac784 [ const char *cp = __func__; ]
794 [ const char *cp = __FUNCTION__; ]
H A DVagrantfile182 cp -r /vagrant-vbox ~/vagrant
/libevent-2.1.12/extra/abi-check/
H A Dabi_check.sh39 xargs cp -r -t "$ABI_CHECK_ROOT/$ABI_CHECK_WORKSPACE/src/libevent/current/"
41 cp extra/abi-check/libevent.json "$ABI_CHECK_ROOT/$ABI_CHECK_WORKSPACE/"