aboutsummaryrefslogtreecommitdiff
path: root/src/genrc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/genrc.h')
-rw-r--r--src/genrc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/genrc.h b/src/genrc.h
index 9842016..c6ee57b 100644
--- a/src/genrc.h
+++ b/src/genrc.h
@@ -60,12 +60,15 @@ void pidlist_kill(PIDLIST *plist, int sig);
60 60
61pid_t strtopid(char const *str); 61pid_t strtopid(char const *str);
62 62
63int pid_is_running(pid_t pid); 63int pid_is_running(pid_t pid);
64 64
65void runas(void); 65void runas(void);
66int str_to_sig(char const *);
67int str_to_int(char const *);
68
66 69
67enum { 70enum {
68 MATCH_REGEX, /* extended POSIX regexp match (default) */ 71 MATCH_REGEX, /* extended POSIX regexp match (default) */
69 MATCH_PCRE, /* PCRE match (not implemented) */ 72 MATCH_PCRE, /* PCRE match (not implemented) */
70 MATCH_GLOB, /* glob pattern match */ 73 MATCH_GLOB, /* glob pattern match */
71 MATCH_EXACT, /* exact match */ 74 MATCH_EXACT, /* exact match */
@@ -106,12 +109,19 @@ int match_regex(PROCSCANBUF buf, char const *arg);
106 109
107void match_pcre_init(PROCSCANBUF buf, char const *pattern); 110void match_pcre_init(PROCSCANBUF buf, char const *pattern);
108void match_pcre_free(PROCSCANBUF buf); 111void match_pcre_free(PROCSCANBUF buf);
109int match_pcre(PROCSCANBUF buf, char const *arg); 112int match_pcre(PROCSCANBUF buf, char const *arg);
110 113
111 114
115enum {
116 RESTART_ON_EXIT,
117 RESTART_ON_SIGNAL
118};
119
120void add_restart_condition(int type, char const *arg);
121
112 122
113struct genrc_pid_closure { 123struct genrc_pid_closure {
114 char const *name; 124 char const *name;
115 int (*pid)(struct genrc_pid_closure *, PIDLIST *); 125 int (*pid)(struct genrc_pid_closure *, PIDLIST *);
116}; 126};
117 127

Return to:

Send suggestions and report system problems to the System administrator.