diff options
Diffstat (limited to 'src/pies.h')
-rw-r--r-- | src/pies.h | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -180,14 +180,12 @@ enum pies_comp_mode pies_comp_kbrequest, /* Restart the component wherever it terminates */ pies_comp_respawn = pies_comp_exec, }; -#define is_sysvinit(m) ((m)>=pies_mark_sysvinit) - #define CF_DISABLED 0x001 /* The componenet is disabled */ #define CF_PRECIOUS 0x002 /* The component is precious (should not be disabled) */ #define CF_WAIT 0x004 /* Wait for the component instance to terminate. */ #define CF_TCPMUX 0x008 /* A plain TCPMUX service */ @@ -250,12 +248,14 @@ struct component struct redirector redir[2]; /* Repeaters for stdout and stderr */ /* Actions to execute on various exit codes: */ struct action *act_head, *act_tail; struct action act_temp; /* Auxiliary object used during configuration */ }; +#define is_sysvinit(cp) ((cp)->mode >= pies_mark_sysvinit || (cp)->runlevels) + union pies_sockaddr_storage { struct sockaddr s; struct sockaddr_in s_in; struct sockaddr_un s_un; }; @@ -298,12 +298,15 @@ struct component *progman_lookup_tcpmux (const char *service, void progman_run_comp (struct component *comp, int fd, union pies_sockaddr_storage *sa, socklen_t salen); void progman_iterate_comp (int (*fun) (struct component *, void *), void *data); +void progman_sysvinit_enable (int (*fun) (struct component *, int, void *), + void *data); + void fd_report (int fd, const char *msg); int check_acl (pies_acl_t acl, struct sockaddr *s, socklen_t salen); void log_setup (int want_stderr); void signal_setup (RETSIGTYPE (*sf)(int)); @@ -447,12 +450,12 @@ struct inetd_builtin void (*fun) (int, struct component const *); }; struct inetd_builtin *inetd_builtin_lookup (const char *service, int socktype); /* sysvinit.c */ -int runlevel_match (struct component *comp); -void inittrans (void); +void sysvinit_begin (void); +int inittrans (void); int is_comp_wait (struct component *comp); |