diff options
Diffstat (limited to 'src/genrc.h')
-rw-r--r-- | src/genrc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/genrc.h b/src/genrc.h index a6e81e8..9842016 100644 --- a/src/genrc.h +++ b/src/genrc.h | |||
@@ -28,12 +28,13 @@ void system_error(int ec, char const *fmt, ...); | |||
28 | 28 | ||
29 | #define xmalloc grecs_malloc | 29 | #define xmalloc grecs_malloc |
30 | #define xzalloc grecs_zalloc | 30 | #define xzalloc grecs_zalloc |
31 | #define xcalloc grecs_calloc | 31 | #define xcalloc grecs_calloc |
32 | #define xrealloc grecs_realloc | 32 | #define xrealloc grecs_realloc |
33 | #define xstrdup grecs_strdup | 33 | #define xstrdup grecs_strdup |
34 | void *x2nrealloc(void *p, size_t *pn, size_t s); | ||
34 | 35 | ||
35 | #define SHELL "/bin/sh" | 36 | #define SHELL "/bin/sh" |
36 | 37 | ||
37 | pid_t file_read_pid(char const *filename); | 38 | pid_t file_read_pid(char const *filename); |
38 | 39 | ||
39 | typedef struct transform *TRANSFORM; | 40 | typedef struct transform *TRANSFORM; |
@@ -58,12 +59,13 @@ int pidlist_remove(PIDLIST *plist, size_t i); | |||
58 | void pidlist_kill(PIDLIST *plist, int sig); | 59 | void pidlist_kill(PIDLIST *plist, int sig); |
59 | 60 | ||
60 | pid_t strtopid(char const *str); | 61 | pid_t strtopid(char const *str); |
61 | 62 | ||
62 | int pid_is_running(pid_t pid); | 63 | int pid_is_running(pid_t pid); |
63 | 64 | ||
65 | void runas(void); | ||
64 | 66 | ||
65 | enum { | 67 | enum { |
66 | MATCH_REGEX, /* extended POSIX regexp match (default) */ | 68 | MATCH_REGEX, /* extended POSIX regexp match (default) */ |
67 | MATCH_PCRE, /* PCRE match (not implemented) */ | 69 | MATCH_PCRE, /* PCRE match (not implemented) */ |
68 | MATCH_GLOB, /* glob pattern match */ | 70 | MATCH_GLOB, /* glob pattern match */ |
69 | MATCH_EXACT, /* exact match */ | 71 | MATCH_EXACT, /* exact match */ |