lib: Added variants of sendfd and sendreq that take sendmsg flags.
[ashd.git] / lib / proc.h
index da230b3..7236595 100644 (file)
@@ -1,11 +1,12 @@
 #ifndef _LIB_PROC_H
 #define _LIB_PROC_H
 
-#include <req.h>
+#include "req.h"
 
-int stdmkchild(char **argv);
+int stdmkchild(char **argv, void (*chinit)(void *), void *idata);
+int sendfd2(int sock, int fd, char *data, size_t datalen, int flags);
 int sendfd(int sock, int fd, char *data, size_t datalen);
 int recvfd(int sock, char **data, size_t *datalen);
-pid_t stdforkserve(char **argv, struct hthead *req, int fd);
+pid_t stdforkserve(char **argv, struct hthead *req, int fd, void (*chinit)(void *), void *idata);
 
 #endif