Lines Matching +full:cfg +full:- +full:space
2 * Copyright 2003-2007 Niels Provos <provos@citi.umich.edu>
3 * Copyright 2007-2012 Niels Provos and Nick Mathewson
28 * Mon 03/10/2003 - Modified by Davide Libenzi <davidel@xmailserver.org>
36 #include "event2/event-config.h"
37 #include "../util-internal.h"
90 widx -= num_pipes; in read_cb()
94 writes--; in read_cb()
102 evutil_socket_t *cp, space; in run_once() local
116 space = num_pipes / num_active; in run_once()
117 space = space * 2; in run_once()
119 (void) send(pipes[i * space + 1], "e", 1, 0); in run_once()
153 struct event_config *cfg = NULL; local
162 while ((c = getopt(argc, argv, "n:a:w:m:l")) != -1) {
191 if (setrlimit(RLIMIT_NOFILE, &rl) == -1) {
205 cfg = event_config_new();
209 event_config_avoid_method(cfg, methods[i]);
210 base = event_base_new_with_config(cfg);
211 event_config_free(cfg);
217 if (pipe(cp) == -1) {
219 if (evutil_socketpair(AF_UNIX, SOCK_STREAM, 0, cp) == -1) {
231 tv->tv_sec * 1000000L + tv->tv_usec);