1 /* Copyright (c) 2001 Matej Pfajfar.
2 * Copyright (c) 2001-2004, Roger Dingledine.
3 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4 * Copyright (c) 2007-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
9 * \brief Header file for main.c.
15 void handle_signals(void);
16 void activate_signal(int signal_num
);
18 int try_locking(const or_options_t
*options
, int err_if_locked
);
19 int have_lockfile(void);
20 void release_lockfile(void);
22 void tor_remove_file(const char *filename
);
24 void tor_cleanup(void);
25 void tor_free_all(int postfork
);
27 int tor_init(int argc
, char **argv
);
29 int run_tor_main_loop(void);
31 #endif /* !defined(TOR_MAIN_H) */