diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-05-17 21:37:57 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-05-17 21:37:57 +0300 |
commit | 41e4cf7b5ad33dcfc7f472b9392831fa197fd8e2 (patch) | |
tree | 6efb7211f656932b6e1848fba21e3c71fb704819 /src/genrc.h | |
parent | e8e7bbc7de3355af2c14992e09e0881e95b8b580 (diff) | |
download | genrc-41e4cf7b5ad33dcfc7f472b9392831fa197fd8e2.tar.gz genrc-41e4cf7b5ad33dcfc7f472b9392831fa197fd8e2.tar.bz2 |
Implement the --user and --group 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 | |||
@@ -31,6 +31,7 @@ void system_error(int ec, char const *fmt, ...); | |||
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 | ||
@@ -61,6 +62,7 @@ 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) */ |