Home
last modified time | relevance | path

Searched refs:a (Results 1 – 25 of 41) sorted by relevance

12

/libevent-2.1.12/test/
H A Dtinytest_macros.h154 tt_assert_test_type(a,b,#a" "#op" "#b,type,(val1_ op val2_),fmt, \
157 #define tt_int_op(a,op,b) \ argument
158 tt_assert_test_type(a,b,#a" "#op" "#b,long,(val1_ op val2_), \
170 tt_assert_test_type(a,b,#a" "#op" "#b,unsigned long, \
174 tt_assert_test_type(a,b,#a" "#op" "#b,const void*, \
179 tt_assert_test_type_opt(a,b,#a" "#op" "#b,const char *, \
184 tt_assert_test_type_opt(a,b,#a" "#op" "#b,const char *, \
199 tt_assert_test_type(a,b,#a" "#op" "#b,long,(val1_ op val2_),"%ld",(void)0)
202 tt_assert_test_type(a,b,#a" "#op" "#b,unsigned long, \
206 tt_assert_test_type(a,b,#a" "#op" "#b,const void*, \
[all …]
H A Dregress_dns.c82 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) argument
1508 tt_assert(a); in test_getaddrinfo_async()
1511 tt_assert(a); in test_getaddrinfo_async()
1529 tt_assert(a); in test_getaddrinfo_async()
1533 tt_assert(a); in test_getaddrinfo_async()
1550 tt_assert(a); in test_getaddrinfo_async()
1554 tt_assert(a); in test_getaddrinfo_async()
1571 tt_assert(a); in test_getaddrinfo_async()
1575 tt_assert(a); in test_getaddrinfo_async()
1767 if (a) in test_getaddrinfo_async()
[all …]
H A Dregress_util.c726 const char *a; member
736 es1.a = "World"; in test_evutil_upcast()
1000 struct evutil_addrinfo *ai = NULL, *a; in test_evutil_getaddrinfo() local
1073 a = ai_find_by_family(ai, PF_INET6); in test_evutil_getaddrinfo()
1074 tt_assert(a); in test_evutil_getaddrinfo()
1076 a = ai_find_by_family(ai, PF_INET); in test_evutil_getaddrinfo()
1077 tt_assert(a); in test_evutil_getaddrinfo()
1089 a = ai_find_by_protocol(ai, IPPROTO_TCP); in test_evutil_getaddrinfo()
1090 tt_assert(a); in test_evutil_getaddrinfo()
1092 a = ai_find_by_protocol(ai, IPPROTO_UDP); in test_evutil_getaddrinfo()
[all …]
H A Dregress_buffer.c66 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) argument
129 size_t a, w, u; in evbuffer_get_waste() local
131 u = a = w = 0; in evbuffer_get_waste()
137 a += chain->buffer_len; in evbuffer_get_waste()
143 a += chain->buffer_len; in evbuffer_get_waste()
152 a += chain->buffer_len; in evbuffer_get_waste()
164 *allocatedp = a; in evbuffer_get_waste()
832 size_t a,w,u; in test_evbuffer_expand() local
841 a=w=u=0; in test_evbuffer_expand()
1716 size_t a,w,u; in test_evbuffer_iterative() local
[all …]
/libevent-2.1.12/
H A DChangeLog-1.45 o Add a .gitignore file for the 1.4 branch. (d014edb)
23 o Fix a free(NULL) in min_heap.h (2458934)
53 o Fix a bug when removing a timeout from the heap. [Patch from Marko Kreen]
63 o fix signal processing when a signal callback delivers a signal; from Alexander Drozdov
97 o Fix a bug in which the DNS server would incorrectly set the type of a cname reply to a.
98 …o Fix a bug where setting the timeout on a bufferevent would take not effect if the event was alre…
118 …o Don't warn on unimplemented epoll_create(): this isn't a problem, just a reason to fall back to …
122 o fix a bug in bufferevent read water marks and add a test for them
188 o Fix a memory leak in the DNS server
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…
[all …]
H A Dwhatsnew-2.0.txt191 Previously, it wasn't useful to set a timeout on a persistent event:
218 a time.)
234 lock. You can prevent a single event_base from being built with a lock
264 that a given timeout interval will be very common, and should use a linked
324 actually a way to tell for certain whether a socket is writable with IOCP.
353 once with a single system call.
379 You can now add chunks of a file into a evbuffer, and Libevent will have
417 Callbacks added with evbuffer_add_cb() use a new interface that takes a
427 a pattern inside an evbuffer.
514 bufferevent, or by a group of them, you can do this with a new set of
[all …]
H A Dminheap-internal.h42 unsigned n, a; member
61 #define min_heap_elem_greater(a, b) \ argument
62 (evutil_timercmp(&(a)->ev_timeout, &(b)->ev_timeout, >))
64 void min_heap_ctor_(min_heap_t* s) { s->p = 0; s->n = 0; s->a = 0; } in min_heap_ctor_()
135 if (s->a < n) in min_heap_reserve_()
138 unsigned a = s->a ? s->a * 2 : 8; in min_heap_reserve_() local
139 if (a < n) in min_heap_reserve_()
140 a = n; in min_heap_reserve_()
142 if (a > SIZE_MAX / sizeof *p) in min_heap_reserve_()
145 if (!(p = (struct event**)mm_realloc(s->p, a * sizeof *p))) in min_heap_reserve_()
[all …]
H A DChangeLog-2.066 o When retransmitting a timed-out DNS request, pick a fresh nameserver. (3d9e52a)
406 o Add a function to change a listener's callback. (46ee061)
506 o Add a basic example of how to write a static HTTP server. (4e794d5)
642 o Add a function to retrieve the other side of a bufferevent pair (17a8e2d)
996 o Refactor code from evdns into a new internal "read a file" function. (0f7144f)
1003 o add a test for evhttp_connection_base_new with a dns_base (26714ca)
1053 o Fix a bug when using a specialized memory allocator on win32.
1087 o Fix a bug when removing a timeout from the heap. [Patch from Marko Kreen]
1113 …o Fix a deadlock when suspending reads in a bufferevent due to a full buffer. (Spotted by Joachim …
1205 o fix a bug in buffrevent read water marks and add a test for them
[all …]
H A Dwhatsnew-2.1.txt9 Libevent 2.1, from a user's point of view. It's a work in progress.
85 environment variable to a non-empty string.
122 call from within a Libevent callback to get a pointer to the current
131 you'll might need a way to de-allocate yourself.
175 of a mulithreaded Libevent application:
231 EV_FINALIZE has no effect on a single-threaded program, or on a
431 whitespace at the end of a header is now removed.
526 It's a common pattern in older code to use event_base_once() with a
539 and shifts when changing or removing a timeout.
543 a huge number of gettimeofday() calls.
[all …]
H A DDoxyfile4 # doxygen (www.doxygen.org) for a project
6 # All text after a hash (#) is considered a comment and will be ignored
17 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded
27 # will interpret the first line (until the first dot) of a JavaDoc-style
30 # explicit @brief command for a brief description.
49 # can be used to strip a user-defined part of the path. Stripping is
105 # If a relative path is entered the value of OUTPUT_DIRECTORY will be
140 # the first chapter. If it is left blank doxygen will generate a
236 # gcc). The argument of the tag is a list of macros of the form: name
238 # omitted =1 is assumed. To prevent a macro definition from being
[all …]
H A DChangeLog824 o Make a buffer larger in the tests to avoid a scary evbuffer_copyout_from() (fb57b8b)
851 o Fix a c90 warning (76643dd)
852 o Fix a typo in a doxygen comment. Reported by 亦得. (be1aeff)
899 o Add a variant of evhttp_send_reply_chunk() with a callback on
1116 up the code in a couple of places. It has a new callback in evhttp for
1117 reporting errors during a request, a new feature for allowing evdns to
1172 o Fix a typo in a comment in buffer.h. Spotted by Alt_F4 (773b0a5)
1426 o Fix a typo in a comment in buffer.h. Spotted by Alt_F4 (773b0a5)
1495 o When retransmitting a timed-out DNS request, pick a fresh nameserver. (3d9e52a)
1920 o Save some syscalls when constructing a socket for a bufferevent (33fca62)
[all …]
H A Dlog-internal.h37 #define EV_CHECK_FMT(a,b) __attribute__((format(printf, a, b))) argument
40 #define EV_CHECK_FMT(a,b)
H A Dmake-event-config.sed7 * processed by Libevent so that its macros would have a uniform prefix.\
17 $a\
H A DREADME.md37 # Enable running gcov to get a test coverage report (only works with
44 # Define if Libevent should build without support for a debug mode
68 # When cross compiling, forces running a test program that verifies that Kqueue
84 …$ cmake -G "Visual Studio 10" .. # Or whatever generator you want to use cmake --help for a list.
152 $ cmake -G "Visual Studio 10" .. # Or whatever generator you want to use cmake --help for a list.
165 To get a list of settings available for the project you can type:
173 CMake also provides a GUI that lets you specify the source directory and output (binary) directory
181 There's a pretty good work-in-progress manual up at
204 There's also a libevent-users mailing list for talking about Libevent
H A DCONTRIBUTING.md7 But, we have a script for checking patches/files/git-refs:
21 # Over a file
H A Dcheckpatch.sh290 local a
291 for a in "${args}"; do
292 check_arg "$a"
H A Devutil.c735 IP_ADAPTER_UNICAST_ADDRESS *a; in evutil_check_ifaddrs()
736 for (a = address->FirstUnicastAddress; a; a = a->Next) { in evutil_check_ifaddrs()
738 struct sockaddr *sa = a->Address.lpSockaddr; in evutil_check_ifaddrs()
1729 return a->code == b->code; in eq_cached_sock_errs()
1903 const ev_uint32_t a = ntohl(in->s_addr); in evutil_inet_ntop()
1906 (int)(ev_uint8_t)((a>>24)&0xff), in evutil_inet_ntop()
1907 (int)(ev_uint8_t)((a>>16)&0xff), in evutil_inet_ntop()
1908 (int)(ev_uint8_t)((a>>8 )&0xff), in evutil_inet_ntop()
1909 (int)(ev_uint8_t)((a )&0xff)); in evutil_inet_ntop()
2033 unsigned a,b,c,d; in evutil_inet_pton()
[all …]
H A Devent-config.h.cmake38 /* Define if libevent should build without support for a debug mode */
325 /* Define to 1 if `ss_family' is a member of `struct sockaddr_storage'. */
328 /* Define to 1 if `__ss_family' is a member of `struct sockaddr_storage'. */
447 /* Define to necessary symbol if this constant uses a non-standard name on your system. */
455 /* The size of a `int', as computed by sizeof. */
458 /* The size of a `long', as computed by sizeof. */
461 /* The size of a `long long', as computed by sizeof. */
470 /* The size of a `short', as computed by sizeof. */
H A DCMakeLists.txt93 # only a subset of names can be used, defaults to "beta"
96 # a list that defines what can set for EVENT_STAGE_VERSION
120 "Define if libevent should build without support for a debug mode" OFF)
245 …lab.kitware.com/cmake/community/wikis/FAQ#how-can-i-build-my-msvc-application-with-a-static-runtime
577 # __func__/__FUNCTION__ is not a macros in general
972 # go away in a future version of Libevent.
1204 # We run all tests with the different backends turned on one at a time.
1240 # then we enable each one, one at a time when creating the tests.
1247 # Macro that creates the ctest test for a backend.
1371 # Add a "make verify" target, same as for autoconf.
[all …]
/libevent-2.1.12/m4/
H A Dacx_pthread.m433 # constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to
36 # ACTION-IF-FOUND is a list of shell commands to run if a threads
37 # library is found, and ACTION-IF-NOT-FOUND is a list of commands to
67 # You should have received a copy of the GNU General Public License
71 # As a special exception, the respective Autoconf Macro's copyright
82 # make and distribute a modified version of the Autoconf Macro, you
115 # We must check for the threads library under a number of different
120 # Create a list of thread flags to try. Items starting with a "-" are
123 # which is a program returning the flags for the Pth emulation library.
155 # who knows whether they'll stub that too in a future libc.) So,
[all …]
H A Dax_prog_doxygen.m424 # help (for MS users), 'CHI' for generating a separate .chi file by the
42 # feature will be automatically disabled (with a warning) if the required
46 # with the following parameters: a one-word name for the project for use
47 # as a filename base etc., an optional configuration file name (the
59 # Makefile. Note that this is a substitution without being a variable:
125 # as a substitution (but not a Makefile variable). The substitution
135 # Expand into a shell expression prints the directory part of a path.
161 # Expand to a shell expression testing whether the feature is active.
166 # Verify that a required features has the right state before trying to turn on
185 # Parse the command-line option controlling a feature. CHECK_DEPEND is called
[all …]
/libevent-2.1.12/sample/
H A Ddns-example.c49 u32 a = ntohl(address); in debug_ntoa() local
51 (int)(u8)((a>>24)&0xff), in debug_ntoa()
52 (int)(u8)((a>>16)&0xff), in debug_ntoa()
53 (int)(u8)((a>>8 )&0xff), in debug_ntoa()
54 (int)(u8)((a )&0xff)); in debug_ntoa()
/libevent-2.1.12/.github/workflows/
H A Dmingw.yml42 path: D:\a\_temp\msys
83 D:\a\_temp\msys\msys64\usr\bin\bash.exe -c $script
111 path: D:\a\_temp\msys
137 $env:PATH="D:\a\_temp\msys\msys64\mingw64\bin;D:\a\_temp\msys\msys64\usr\bin;$env:PATH"
/libevent-2.1.12/cmake/
H A DCodeCoverage.cmake5 # obtaining a copy of the software and accompanying documentation covered by
16 # a source language processor.
46 # 3. Use the function SETUP_TARGET_FOR_COVERAGE to create a custom make target
47 # which runs your test executable and produces a lcov code coverage report:
52 # # NOTE! This should always have a ZERO as exit code
57 # 4. Build a Debug build:
/libevent-2.1.12/extra/abi-check/
H A DREADME.md11 You can limit the number of included libevent versions via a number given
12 as a parameter to the script. For example

12