| /libevent-2.1.12/ |
| H A D | minheap-internal.h | 41 struct event** p; member 65 void min_heap_dtor_(min_heap_t* s) { if (s->p) mm_free(s->p); } in min_heap_dtor_() 83 struct event* e = *s->p; in min_heap_pop_() 137 struct event** p; in min_heap_reserve_() local 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_() 147 s->p = p; in min_heap_reserve_() 158 (s->p[hole_index] = s->p[parent])->ev_timeout_pos.min_heap_idx = hole_index; in min_heap_shift_up_unconditional_() 170 (s->p[hole_index] = s->p[parent])->ev_timeout_pos.min_heap_idx = hole_index; in min_heap_shift_up_() 182 min_child -= min_child == s->n || min_heap_elem_greater(s->p[min_child], s->p[min_child - 1]); in min_heap_shift_down_() [all …]
|
| H A D | ht-internal.h | 146 struct type **p; \ 149 p = &HT_BUCKET_(head, field, elm, hashfn); \ 150 while (*p) { \ 151 if (eqfn(*p, elm)) \ 153 p = &(*p)->field.hte_next; \ 165 p = name##_HT_FIND_P_(h, elm); \ 166 return p ? *p : NULL; \ 178 p = &HT_BUCKET_(head, field, elm, hashfn); \ 192 p = name##_HT_FIND_P_(head, elm); \ 211 p = name##_HT_FIND_P_(head,elm); \ [all …]
|
| H A D | mm-internal.h | 72 void *event_mm_realloc_(void *p, size_t sz); 74 void event_mm_free_(void *p); 78 #define mm_realloc(p, sz) event_mm_realloc_((p), (sz)) argument 79 #define mm_free(p) event_mm_free_(p) argument 84 #define mm_realloc(p, sz) realloc((p), (sz)) 85 #define mm_free(p) free(p)
|
| H A D | signal.c | 223 void *p; in evsig_set_handler_() local 233 p = mm_realloc(sig->sh_old, new_max * sizeof(*sig->sh_old)); in evsig_set_handler_() 234 if (p == NULL) { in evsig_set_handler_() 239 memset((char *)p + sig->sh_old_max * sizeof(*sig->sh_old), in evsig_set_handler_() 243 sig->sh_old = p; in evsig_set_handler_() 280 evsig_add(struct event_base *base, evutil_socket_t evsignal, short old, short events, void *p) in evsig_add() argument 283 (void)p; in evsig_add() 363 evsig_del(struct event_base *base, evutil_socket_t evsignal, short old, short events, void *p) in evsig_del() argument
|
| H A D | evutil_time.c | 253 struct evutil_monotonic_timer *p = NULL; in evutil_monotonic_timer_new() local 255 p = mm_malloc(sizeof(*p)); in evutil_monotonic_timer_new() 256 if (!p) goto done; in evutil_monotonic_timer_new() 258 memset(p, 0, sizeof(*p)); in evutil_monotonic_timer_new() 261 return p; in evutil_monotonic_timer_new()
|
| /libevent-2.1.12/test/ |
| H A D | regress_zlib.c | 96 z_streamp p = ctx; in zlib_deflate_free() local 98 assert(deflateEnd(p) == Z_OK); in zlib_deflate_free() 99 mm_free(p); in zlib_deflate_free() 105 z_streamp p = ctx; in zlib_inflate_free() local 108 mm_free(p); in zlib_inflate_free() 139 z_streamp p = ctx; in zlib_input_filter() local 148 p->avail_in = 0; in zlib_input_filter() 149 p->next_in = 0; in zlib_input_filter() 193 z_streamp p = ctx; in zlib_output_filter() local 202 p->avail_in = 0; in zlib_output_filter() [all …]
|
| H A D | regress_util.c | 1248 void *p = NULL; in test_event_malloc() local 1254 p = mm_malloc(0); in test_event_malloc() 1264 mm_free(p); in test_event_malloc() 1274 void *p = NULL; in test_event_calloc() local 1299 mm_free(p); in test_event_calloc() 1300 p = NULL; in test_event_calloc() 1311 if (p) in test_event_calloc() 1312 mm_free(p); in test_event_calloc() 1320 void *p = NULL; in test_event_strdup() local 1338 mm_free(p); in test_event_strdup() [all …]
|
| H A D | regress_finalize.c | 171 tfff_free(void *p) in tfff_free() argument 173 if (! p) in tfff_free() 175 if (p == tfff_p1) in tfff_free() 177 if (p == tfff_p2) in tfff_free() 179 free(p); in tfff_free() 182 tfff_realloc(void *p, size_t sz) in tfff_realloc() argument 184 return realloc(p,sz); in tfff_realloc()
|
| /libevent-2.1.12/sample/ |
| H A D | le-proxy.c | 160 struct sockaddr *a, int slen, void *p) in accept_cb() argument 247 int p = atoi(argv[i]); in main() local 249 if (p < 1 || p > 65535) in main() 251 sin->sin_port = htons(p); in main()
|
| /libevent-2.1.12/test-export/ |
| H A D | test-export.py | 30 p = subprocess.Popen(cmd, stdout=FNULL, stderr=FNULL, shell=True) 32 p = subprocess.Popen(cmd, shell=True) 33 p.communicate() 34 return p.poll()
|
| H A D | test-export.py | 30 p = subprocess.Popen(cmd, stdout=FNULL, stderr=FNULL, shell=True) 32 p = subprocess.Popen(cmd, shell=True) 33 p.communicate() 34 return p.poll()
|
| H A D | test-export.py | 30 p = subprocess.Popen(cmd, stdout=FNULL, stderr=FNULL, shell=True) 32 p = subprocess.Popen(cmd, shell=True) 33 p.communicate() 34 return p.poll()
|
| H A D | test-export.py | 30 p = subprocess.Popen(cmd, stdout=FNULL, stderr=FNULL, shell=True) 32 p = subprocess.Popen(cmd, shell=True) 33 p.communicate() 34 return p.poll()
|
| H A D | test-export.py | 30 p = subprocess.Popen(cmd, stdout=FNULL, stderr=FNULL, shell=True) 32 p = subprocess.Popen(cmd, shell=True) 33 p.communicate() 34 return p.poll()
|
| H A D | test-export.py | 30 p = subprocess.Popen(cmd, stdout=FNULL, stderr=FNULL, shell=True) 32 p = subprocess.Popen(cmd, shell=True) 33 p.communicate() 34 return p.poll()
|
| H A D | test-export.py | 30 p = subprocess.Popen(cmd, stdout=FNULL, stderr=FNULL, shell=True) 32 p = subprocess.Popen(cmd, shell=True) 33 p.communicate() 34 return p.poll()
|
| H A D | test-export.py | 30 p = subprocess.Popen(cmd, stdout=FNULL, stderr=FNULL, shell=True) 32 p = subprocess.Popen(cmd, shell=True) 33 p.communicate() 34 return p.poll()
|
| H A D | test-export.py | 30 p = subprocess.Popen(cmd, stdout=FNULL, stderr=FNULL, shell=True) 32 p = subprocess.Popen(cmd, shell=True) 33 p.communicate() 34 return p.poll()
|
| H A D | test-export.py | 30 p = subprocess.Popen(cmd, stdout=FNULL, stderr=FNULL, shell=True) 32 p = subprocess.Popen(cmd, shell=True) 33 p.communicate() 34 return p.poll()
|
| H A D | test-export.py | 30 p = subprocess.Popen(cmd, stdout=FNULL, stderr=FNULL, shell=True) 32 p = subprocess.Popen(cmd, shell=True) 33 p.communicate() 34 return p.poll()
|
| H A D | test-export.py | 30 p = subprocess.Popen(cmd, stdout=FNULL, stderr=FNULL, shell=True) 32 p = subprocess.Popen(cmd, shell=True) 33 p.communicate() 34 return p.poll()
|
| H A D | test-export.py | 30 p = subprocess.Popen(cmd, stdout=FNULL, stderr=FNULL, shell=True) 32 p = subprocess.Popen(cmd, shell=True) 33 p.communicate() 34 return p.poll()
|
| H A D | test-export.py | 30 p = subprocess.Popen(cmd, stdout=FNULL, stderr=FNULL, shell=True) 32 p = subprocess.Popen(cmd, shell=True) 33 p.communicate() 34 return p.poll()
|
| H A D | test-export.py | 30 p = subprocess.Popen(cmd, stdout=FNULL, stderr=FNULL, shell=True) 32 p = subprocess.Popen(cmd, shell=True) 33 p.communicate() 34 return p.poll()
|
| H A D | test-export.py | 30 p = subprocess.Popen(cmd, stdout=FNULL, stderr=FNULL, shell=True) 32 p = subprocess.Popen(cmd, shell=True) 33 p.communicate() 34 return p.poll()
|