summary refs log tree commit diff
path: root/daemon.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-08-14 12:52:51 -0400
committerJune McEnroe <june@causal.agency>2020-08-14 16:00:35 -0400
commit3b38cfdbfef86966095f19d98f937e41ecc3cc83 (patch)
tree43d6d7f9d79c7619ddd3b98427db97d77c9fca70 /daemon.h
parentAdd install target (diff)
downloadcatsit-3b38cfdbfef86966095f19d98f937e41ecc3cc83.tar.gz
catsit-3b38cfdbfef86966095f19d98f937e41ecc3cc83.zip
Implement user and group lookup
Diffstat (limited to 'daemon.h')
-rw-r--r--daemon.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/daemon.h b/daemon.h
index 0d9e4de..3a141ba 100644
--- a/daemon.h
+++ b/daemon.h
@@ -14,6 +14,8 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <grp.h>
+#include <pwd.h>
 #include <stdint.h>
 
 typedef unsigned char byte;
@@ -33,3 +35,7 @@ static inline uint32_t setTest(const struct Set256 *set, byte x) {
 
 extern int restartInterval;
 extern struct Set256 stopExits;
+
+extern const char *serviceDir;
+extern struct passwd *serviceUser;
+extern struct group *serviceGroup;