X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Fproc.h;h=7236595df287abd90e13e8588b69e0bd684df7ca;hb=407963f25c664cd1450ec5f6eeb80c449ff57e74;hp=da230b3dadcece9c49a2bb84b223a93945fdcf8d;hpb=992ce9ef8adb25fdcc47264187450a3edb287167;p=ashd.git diff --git a/lib/proc.h b/lib/proc.h index da230b3..7236595 100644 --- a/lib/proc.h +++ b/lib/proc.h @@ -1,11 +1,12 @@ #ifndef _LIB_PROC_H #define _LIB_PROC_H -#include +#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