X-Git-Url: https://git.saurik.com/apple/launchd.git/blobdiff_plain/5b0a4722f2ef1eac59c9650b37b29ac8b34a160e..f271391cf54cba14d21d45675781491323ebe16d:/launchd/src/launchd.h diff --git a/launchd/src/launchd.h b/launchd/src/launchd.h index 9aa37db..a8a0c92 100644 --- a/launchd/src/launchd.h +++ b/launchd/src/launchd.h @@ -22,17 +22,20 @@ #include #include -#include "liblaunch_public.h" -#include "libbootstrap_public.h" +#include "launch.h" +#include "bootstrap.h" #include "launchd_runtime.h" -#define SHUTDOWN_LOG_DIR "/var/log/shutdown" - struct kevent; struct conncb; -extern bool debug_shutdown_hangs; +extern bool shutdown_in_progress; +extern bool fake_shutdown_in_progress; extern bool network_up; +extern bool g_force_old_kill_path; +extern bool g_simulate_pid1_crash; +extern FILE *g_console; +extern char g_launchd_database_dir[PATH_MAX]; bool init_check_pid(pid_t); @@ -42,6 +45,13 @@ void launchd_shutdown(void); void launchd_single_user(void); boolean_t launchd_mach_ipc_demux(mach_msg_header_t *Request, mach_msg_header_t *Reply); +enum { + LAUNCHD_DB_TYPE_OVERRIDES, + LAUNCHD_DB_TYPE_JOBCACHE, + LAUNCHD_DB_TYPE_LAST, +}; +char *launchd_data_base_path(int db_type); + void mach_start_shutdown(void); int _fd(int fd);