summaryrefslogtreecommitdiffabout
path: root/src/prog.h
authorSergey Poznyakoff <gray@gnu.org.ua>2015-10-31 15:14:07 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2015-10-31 15:14:07 (GMT)
commitc221897e72debfb161365c28f08d7f4bac5511e5 (patch) (side-by-side diff)
tree9db9ef8e74d27cb32cb02c4eb45ce277b744a2a9 /src/prog.h
parent9861a788306d5f742e633ff6a8a26a913f5e3fd1 (diff)
downloadpies-c221897e72debfb161365c28f08d7f4bac5511e5.tar.gz
pies-c221897e72debfb161365c28f08d7f4bac5511e5.tar.bz2
Implement list control command.
* src/ctl.c: Implement list. * src/prog.h (IS_COMPONENT): New macro (from progman.c) * src/progman.c: Move IS_COMPONENT to src/prog.h * src/socket.c (create_socket): Clear uid, gid and umaskval for inet sockets.
Diffstat (limited to 'src/prog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--src/prog.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/prog.h b/src/prog.h
index 8fddf97..9e55e56 100644
--- a/src/prog.h
+++ b/src/prog.h
@@ -82,5 +82,7 @@ struct prog
} v;
};
+#define IS_COMPONENT(p) ((p)->type == TYPE_COMPONENT)
+
void progman_foreach (int (*filter) (struct prog *, void *data), void *data);
void prog_stop (struct prog *prog, int sig);

Return to:

Send suggestions and report system problems to the System administrator.