#ifndef PLANCK_INIT_H #define PLANCK_INIT_H #include #include #include #include #include #include #include #include #include #include #include #include #include #define MAX_RESPAWN 16 #define MAX_TTY 32 #define MAX_ACTION 32 #define MAX_CMD 512 #define MAX_LINE 1024 /* The shell that runs inittab lines with shell syntax (and planck_run()). A box that keeps its * payload under the home of the user that runs it has no /bin; the manifest line `shell ` * becomes -DPLANCK_SHELL=... (build-planck-init.mjs, 2026-09-30). Default: the historic /bin/sh. */ #ifndef PLANCK_SHELL #define PLANCK_SHELL "/bin/sh" #endif static void log_msg(const char *msg); static void planck_run(const char *cmd); static void run_inittab_action(const char *action); static void process_startup_entries(void); static int planck_handle_child_exit(pid_t died); static void planck_ipv4_configure_from_cmdline(void); static void planck_coremark_run(void); static void planck_mem_report(void); #endif