aboutsummaryrefslogtreecommitdiff
path: root/src/pies.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pies.h')
-rw-r--r--src/pies.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/src/pies.h b/src/pies.h
index 28a27a7..73f6d18 100644
--- a/src/pies.h
+++ b/src/pies.h
@@ -183,6 +183,10 @@ enum pies_comp_mode
pies_comp_respawn = pies_comp_exec,
};
+#define PIES_COMP_DEFAULT 0
+#define PIES_COMP_WAIT 0x01
+#define PIES_COMP_MASK(m) (1 << ((m)+1))
+
#define CF_DISABLED 0x001 /* The componenet is disabled */
#define CF_PRECIOUS 0x002 /* The component is precious (should not
be disabled) */
@@ -259,7 +263,17 @@ union pies_sockaddr_storage
struct sockaddr_in s_in;
struct sockaddr_un s_un;
};
-
+
+enum pies_action {
+ ACTION_CONT,
+ ACTION_STOP,
+ ACTION_RESTART,
+ ACTION_COMPRELOAD,
+ ACTION_DUMPSTATS,
+ ACTION_CTRLALTDEL,
+ ACTION_KBREQUEST
+};
+
extern char *log_tag;
extern int log_facility;
extern unsigned long shutdown_timeout;
@@ -323,6 +337,8 @@ 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));
+void setsigvhan (RETSIGTYPE (*handler) (int signo), int *sigv, int sigc);
+void add_extra_sigv (int *sigv, int sigc);
typedef struct pies_depmap *pies_depmap_t;
typedef struct pies_depmap_pos *pies_depmap_pos_t;
@@ -478,6 +494,9 @@ int is_valid_runlevel (int c);
int console_open (int mode);
int telinit (const char *arg);
int inittab_parse (const char *file);
+int sysvinit_sigtrans (int sig, int *pact);
+void sysvinit_runlevel_setup (int mask, int *wait);
+void sysvinit_sysdep_begin (void);
extern char *sysvinit_environ_hint[];
@@ -502,7 +521,7 @@ struct sysvinit_request {
int cmd; /* What kind of request */
int runlevel; /* Runlevel to change to */
int sleeptime; /* Time between TERM and KILL */
- char pad[368];
+ char data[368];
};

Return to:

Send suggestions and report system problems to the System administrator.