#include "orconfig.h"
#include "common/address_set.h"
#include "lib/net/address.h"
-#include "common/compat.h"
#include "lib/container/bloomfilt.h"
#include "lib/crypt_ops/crypto_rand.h"
-#include "common/util.h"
#include "siphash.h"
/* Wrap our hash function to have the signature that the bloom filter
+++ /dev/null
-/* Copyright (c) 2003-2004, Roger Dingledine
- * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
- * Copyright (c) 2007-2018, The Tor Project, Inc. */
-/* See LICENSE for licensing information */
-
-#ifndef TOR_COMPAT_H
-#define TOR_COMPAT_H
-
-#include "common/util.h"
-
-#endif /* !defined(TOR_COMPAT_H) */
*/
#include "orconfig.h"
-#include "common/compat.h"
#define COMPAT_LIBEVENT_PRIVATE
#include "common/compat_libevent.h"
#include "lib/crypt_ops/crypto_rand.h"
-
-#include "common/util.h"
#include "lib/log/torlog.h"
+#include "lib/log/util_bug.h"
+#include "lib/string/compat_string.h"
#include <event2/event.h>
#include <event2/thread.h>
+#include <string.h>
/** A string which, if it appears in a libevent log, should be ignored. */
static const char *suppress_msg = NULL;
tor_assert(r == 0);
}
#endif /* defined(TOR_UNIT_TESTS) */
-
#include "orconfig.h"
#include "lib/testsupport/testsupport.h"
+#include "lib/malloc/util_malloc.h"
void configure_libevent_logging(void);
void suppress_libevent_log_msg(const char *msg);
struct event;
struct event_base;
+struct timeval;
void tor_event_free_(struct event *ev);
#define tor_event_free(ev) \
#endif /* defined(COMPAT_LIBEVENT_PRIVATE) */
#endif /* !defined(TOR_COMPAT_LIBEVENT_H) */
-
#define TOR_HANDLE_H
#include "orconfig.h"
-#include "tor_queue.h"
-#include "common/util.h"
+
+#include "lib/log/util_bug.h"
+#include "lib/malloc/util_malloc.h"
#define HANDLE_ENTRY(name, structname) \
struct name ## _handle_head_t *handle_head
}
#endif /* !defined(TOR_HANDLE_H) */
-
#ifndef TOR_PROCMON_H
#define TOR_PROCMON_H
-#include "common/compat.h"
#include "common/compat_libevent.h"
#include "lib/log/torlog.h"
#define TOR_TIMERS_PRIVATE
-#include "common/compat.h"
#include "common/compat_libevent.h"
#include "common/timers.h"
+#include "lib/intmath/muldiv.h"
#include "lib/log/torlog.h"
-#include "common/util.h"
+#include "lib/log/util_bug.h"
+#include "lib/malloc/util_malloc.h"
+#include "lib/time/compat_time.h"
struct timeout_cb {
timer_cb_fn_t cb;
/* We don't reschedule the libevent timer here, since it's okay if it fires
* early. */
}
-
#define TOKEN_BUCKET_PRIVATE
#include "common/token_bucket.h"
-#include "common/compat.h"
#include "lib/log/util_bug.h"
+#include "lib/intmath/cmp.h"
+#include "lib/time/compat_time.h"
+
+#include <string.h>
/**
* Set the <b>rate</b> and <b>burst</b> value in a token_bucket_cfg.
*/
#include "orconfig.h"
-#include "common/compat.h"
#include "common/compat_libevent.h"
-#include "lib/thread/threads.h"
-#include "lib/crypt_ops/crypto_rand.h"
-#include "common/util.h"
#include "common/workqueue.h"
-#include "tor_queue.h"
-#include "lib/net/alertsock.h"
-#include "lib/log/torlog.h"
+
+#include "lib/crypt_ops/crypto_rand.h"
#include "lib/intmath/weakrng.h"
+#include "lib/log/ratelim.h"
+#include "lib/log/torlog.h"
+#include "lib/log/util_bug.h"
+#include "lib/net/alertsock.h"
+#include "lib/net/socket.h"
+#include "lib/thread/threads.h"
+#include "tor_queue.h"
#include <event2/event.h>
#include <string.h>
#ifndef TOR_WORKQUEUE_H
#define TOR_WORKQUEUE_H
-#include "common/compat.h"
+#include "lib/cc/torint.h"
/** A replyqueue is used to tell the main thread about the outcome of
* work that we queued for the workers. */
void (*cb)(threadpool_t *tp));
#endif /* !defined(TOR_WORKQUEUE_H) */
-