aboutsummaryrefslogtreecommitdiff
path: root/src/genrc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/genrc.h')
-rw-r--r--src/genrc.h2
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
@@ -22,24 +22,25 @@ There is NO WARRANTY, to the extent permitted by law.
#include "wordsplit.h"
void setprogname(char const *s);
void genrc_error(char const *fmt, ...);
void usage_error(char const *fmt, ...);
void system_error(int ec, char const *fmt, ...);
#define xmalloc grecs_malloc
#define xzalloc grecs_zalloc
#define xcalloc grecs_calloc
#define xrealloc grecs_realloc
#define xstrdup grecs_strdup
+void *x2nrealloc(void *p, size_t *pn, size_t s);
#define SHELL "/bin/sh"
pid_t file_read_pid(char const *filename);
typedef struct transform *TRANSFORM;
char *transform_string(TRANSFORM tf, const char *input);
char *transform_string_if_match(TRANSFORM tf, const char *input);
TRANSFORM compile_transform_expr(const char *expr, int cflags);
struct pidlist {
pid_t *pidv;
@@ -52,24 +53,25 @@ void pidlist_init(PIDLIST *);
void pidlist_free(PIDLIST *);
void pidlist_clear(PIDLIST *plist);
void pidlist_add(PIDLIST *, pid_t);
ssize_t pidlist_index(PIDLIST *plist, pid_t p);
int pidlist_member(PIDLIST *plist, pid_t p);
int pidlist_remove(PIDLIST *plist, size_t i);
void pidlist_kill(PIDLIST *plist, int sig);
pid_t strtopid(char const *str);
int pid_is_running(pid_t pid);
+void runas(void);
enum {
MATCH_REGEX, /* extended POSIX regexp match (default) */
MATCH_PCRE, /* PCRE match (not implemented) */
MATCH_GLOB, /* glob pattern match */
MATCH_EXACT, /* exact match */
};
#define MATCH_DEFAULT MATCH_REGEX
enum {
PROCF_ICASE = 0x01, /* ignore case */
PROCF_ALL = 0x02, /* use all pids */

Return to:

Send suggestions and report system problems to the System administrator.