| /libevent-2.1.12/sample/ |
| H A D | openssl_hostname_validation.c | 113 HostnameValidationResult result = MatchNotFound; in matches_subject_alternative_name() local 135 result = MalformedCertificate; in matches_subject_alternative_name() 141 result = MatchFound; in matches_subject_alternative_name() 149 return result; in matches_subject_alternative_name() 165 HostnameValidationResult result; in validate_hostname() local 171 result = matches_subject_alternative_name(hostname, server_cert); in validate_hostname() 172 if (result == NoSANPresent) { in validate_hostname() 174 result = matches_common_name(hostname, server_cert); in validate_hostname() 177 return result; in validate_hostname()
|
| H A D | dns-example.c | 59 main_callback(int result, char type, int count, int ttl, in main_callback() argument 71 printf("%s: No answer (%d)\n", n, result); in main_callback()
|
| /libevent-2.1.12/ |
| H A D | buffer.c | 737 result = 0; in evbuffer_commit_space() 785 result = 0; in evbuffer_commit_space() 1268 int result; in evbuffer_remove_buffer() local 1275 result = 0; in evbuffer_remove_buffer() 1820 result = 0; in evbuffer_add() 1835 result = 0; in evbuffer_prepend() 1906 result = 0; in evbuffer_prepend() 2039 if (!result) in evbuffer_expand_singlechain() 2288 int result; in evbuffer_read() local 2408 result = n; in evbuffer_read() [all …]
|
| H A D | event_tagging.c | 494 int result; in evtag_unmarshal_int() local 506 result = decode_int_internal(pinteger, evbuf, 0); in evtag_unmarshal_int() 508 if (result < 0 || (size_t)result > len) /* XXX Should this be != rather than > ?*/ in evtag_unmarshal_int() 511 return result; in evtag_unmarshal_int() 520 int result; in evtag_unmarshal_int64() local 532 result = decode_int64_internal(pinteger, evbuf, 0); in evtag_unmarshal_int64() 534 if (result < 0 || (size_t)result > len) /* XXX Should this be != rather than > ?*/ in evtag_unmarshal_int64() 537 return result; in evtag_unmarshal_int64() 590 int result = -1; in evtag_unmarshal_timeval() local 605 result = 0; in evtag_unmarshal_timeval() [all …]
|
| H A D | evthread_win32.c | 162 BOOL result; in evthread_win32_condvar_wait() local 168 result = SleepConditionVariableCS_fn(cond, lock, ms); in evthread_win32_condvar_wait() 169 if (result) { in evthread_win32_condvar_wait() 239 int result = -1; in evthread_win32_cond_wait() local 260 result = 0; in evthread_win32_cond_wait() 264 result = (res==WAIT_TIMEOUT) ? 1 : -1; in evthread_win32_cond_wait() 271 result = 1; /* Timeout */ in evthread_win32_cond_wait() 296 return result; in evthread_win32_cond_wait()
|
| H A D | bufferevent_openssl.c | 255 BIO *result; in BIO_new_bufferevent() local 260 BIO_set_init(result, 1); in BIO_new_bufferevent() 265 return result; in BIO_new_bufferevent() 590 int result = 0; in do_read() local 637 result |= OP_BLOCKED; in do_read() 648 return result; in do_read() 660 int result = 0; in do_write() local 729 return result; in do_write() 772 if (result > limit) { in bytes_to_read() 773 result = limit; in bytes_to_read() [all …]
|
| H A D | evthread.c | 197 struct debug_lock *result = mm_malloc(sizeof(struct debug_lock)); in debug_lock_alloc() local 198 if (!result) in debug_lock_alloc() 201 if (!(result->lock = original_lock_fns_.alloc( in debug_lock_alloc() 203 mm_free(result); in debug_lock_alloc() 207 result->lock = NULL; in debug_lock_alloc() 209 result->signature = DEBUG_LOCK_SIG; in debug_lock_alloc() 210 result->locktype = locktype; in debug_lock_alloc() 211 result->count = 0; in debug_lock_alloc() 212 result->held_by = 0; in debug_lock_alloc() 213 return result; in debug_lock_alloc()
|
| H A D | bufferevent_sock.c | 387 int result=-1; in bufferevent_socket_connect() local 410 result = 0; in bufferevent_socket_connect() 431 result = 0; in bufferevent_socket_connect() 436 result = 0; in bufferevent_socket_connect() 441 result = 0; in bufferevent_socket_connect() 453 return result; in bufferevent_socket_connect() 457 bufferevent_connect_getaddrinfo_cb(int result, struct evutil_addrinfo *ai, in bufferevent_connect_getaddrinfo_cb() argument 470 if (result == EVUTIL_EAI_CANCEL) { in bufferevent_connect_getaddrinfo_cb() 471 bev_p->dns_error = result; in bufferevent_connect_getaddrinfo_cb() 475 if (result != 0) { in bufferevent_connect_getaddrinfo_cb() [all …]
|
| H A D | arc4random.c | 132 ssize_t result; in read_all() local 135 result = read(fd, buf+numread, count-numread); in read_all() 136 if (result<0) in read_all() 138 else if (result == 0) in read_all() 140 numread += result; in read_all()
|
| H A D | evmap.c | 612 int *result = arg; local 631 *result = -1; 643 int *result = arg; local 647 *result = -1; 655 int result = 0; local 657 evmap_io_foreach_fd(base, evmap_io_reinit_iter_fn, &result); 658 if (result < 0) 660 evmap_signal_foreach_signal(base, evmap_signal_reinit_iter_fn, &result); 661 if (result < 0)
|
| H A D | evutil.c | 705 int result = -1; in evutil_check_ifaddrs() 743 result = 0; in evutil_check_ifaddrs() 749 return result; in evutil_check_ifaddrs() 2506 ev_int32_t divisor, result; in evutil_weakrand_range_() local 2515 } while (result >= top); in evutil_weakrand_range_() 2516 return result; in evutil_weakrand_range_() 2636 evutil_socket_t result; in evutil_accept4_() local 2645 return result; in evutil_accept4_() 2649 if (result < 0) in evutil_accept4_() 2650 return result; in evutil_accept4_() [all …]
|
| H A D | evdns.c | 1780 int result = -1; in evdns_server_request_add_reply() local 1840 result = 0; in evdns_server_request_add_reply() 1843 return result; in evdns_server_request_add_reply() 2313 if (result == DNS_ERR_CANCEL) { in nameserver_probe_callback() 2322 if (result == DNS_ERR_NONE || result == DNS_ERR_NOTEXIST) { in nameserver_probe_callback() 2691 int result = -1; in evdns_base_get_nameserver_addr() local 2709 result = (int) server->addrlen; in evdns_base_get_nameserver_addr() 2712 return result; in evdns_base_get_nameserver_addr() 4453 return (result != DNS_ERR_NOTIMPL && result != DNS_ERR_REFUSED && in evdns_result_is_answer() 4454 result != DNS_ERR_SERVERFAILED && result != DNS_ERR_CANCEL); in evdns_result_is_answer() [all …]
|
| H A D | event.c | 779 int result = 0; in event_base_cancel_single_callback_() local 785 result = 1; in event_base_cancel_single_callback_() 791 result = 1; in event_base_cancel_single_callback_() 811 return result; in event_base_cancel_single_callback_() 1492 const struct timeval *result=NULL; in event_base_init_common_timeout() local 1511 result = &ctl->duration; in event_base_init_common_timeout() 1550 result = &new_ctl->duration; in event_base_init_common_timeout() 1553 if (result) in event_base_init_common_timeout() 1554 EVUTIL_ASSERT(is_common_timeout(result, base)); in event_base_init_common_timeout() 1557 return result; in event_base_init_common_timeout()
|
| H A D | http.c | 3114 char *result = NULL; in evhttp_uriencode() local 3152 result = mm_malloc(evbuffer_get_length(buf)); in evhttp_uriencode() 3154 if (result) in evhttp_uriencode() 3155 evbuffer_remove(buf, result, evbuffer_get_length(buf)); in evhttp_uriencode() 3160 return result; in evhttp_uriencode() 3261 int result = -1; in evhttp_parse_query_impl() local 3277 result = 0; in evhttp_parse_query_impl() 3311 result = 0; in evhttp_parse_query_impl() 3320 return result; in evhttp_parse_query_impl()
|
| H A D | CMakeLists.txt | 532 …onst char *name, struct hostent *hp, char *buf, size_t buflen, struct hostent **result, int *herr)" 1207 # Add event backends based on system introspection result.
|
| H A D | ChangeLog-1.4 | 212 …o use a min heap instead of a red-black tree for timeouts; as a result finding the min is a O(1) o…
|
| H A D | whatsnew-2.0.txt | 297 variable. Doing this with epoll may result in weird bugs if you give
|
| /libevent-2.1.12/test/ |
| H A D | regress_dns.c | 95 if (result == DNS_ERR_TIMEOUT) { in dns_gethostbyname_cb() 97 dns_err = result; in dns_gethostbyname_cb() 101 if (result != DNS_ERR_NONE) { in dns_gethostbyname_cb() 102 printf("[Error code %d] ", result); in dns_gethostbyname_cb() 301 if (result == DNS_ERR_CANCEL) { in dns_server_gethostbyname_cb() 309 if (result != DNS_ERR_NONE) { in dns_server_gethostbyname_cb() 474 int result; member 489 res->result = result; in generic_dns_callback() 788 tt_int_op(r1.result, ==, DNS_ERR_NONE); in dns_retry_test_impl() 1848 if (result == EVUTIL_EAI_CANCEL) { in gaic_getaddrinfo_cb() [all …]
|
| H A D | tinytest.c | 596 char *result, *cp; local 601 if (!(result = malloc(len*2+1))) 603 cp = result; 609 return result;
|
| H A D | regress_iocp.c | 142 int result = 0; in pair_is_in() local 146 result = 1; in pair_is_in() 151 return result; in pair_is_in()
|
| H A D | regress_ssl.c | 717 BIO *result; in BIO_new_rwcount() local 718 if (!(result = BIO_new(BIO_s_rwcount()))) in BIO_new_rwcount() 720 BIO_set_init(result, 1); in BIO_new_rwcount() 721 BIO_set_data(result, NULL); in BIO_new_rwcount() 722 BIO_set_shutdown(result, !!close_flag); in BIO_new_rwcount() 723 return result; in BIO_new_rwcount()
|
| H A D | regress_util.c | 503 #define TEST_TRIM(s, result) \ in test_evutil_rtrim() argument 509 tt_str_op(cp, ==, result); \ in test_evutil_rtrim() 1540 char result[30]; in test_evutil_date_rfc1123() local 1546 evutil_date_rfc1123(result, 8, &query); in test_evutil_date_rfc1123() 1547 tt_str_op(result, ==, "Thu, 01"); in test_evutil_date_rfc1123() 1558 evutil_date_rfc1123(result, sizeof(result), &query); in test_evutil_date_rfc1123() 1559 tt_str_op(result, ==, c.date); in test_evutil_date_rfc1123()
|
| /libevent-2.1.12/include/event2/ |
| H A D | dns.h | 229 typedef void (*evdns_callback_type) (int result, char type, int count, int ttl, void *addresses, vo… 697 typedef void (*evdns_getaddrinfo_cb)(int result, struct evutil_addrinfo *res, void *arg);
|
| /libevent-2.1.12/extra/abi-check/ |
| H A D | README.md | 34 'timeline/libevent/index.html' is the final result and can be viewed
|
| /libevent-2.1.12/cmake/ |
| H A D | CheckPrototypeDefinition.cmake | 8 # VARIABLE - The variable to store the result.
|