]> git.saurik.com Git - apple/launchd.git/blobdiff - launchd/src/launchd.h
launchd-329.3.1.tar.gz
[apple/launchd.git] / launchd / src / launchd.h
index 9aa37db34db2d897fd211078a12047fa6745c6ee..a8a0c9297822defe472b69a19e3cefefb8a66e12 100644 (file)
 
 #include <mach/mach.h>
 #include <mach/port.h>
-#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);