socat/xiosigchld.h

33 lines
1 KiB
C
Raw Permalink Normal View History

2012-07-22 15:43:24 +00:00
/* source: xiosigchld.h */
/* Copyright Gerhard Rieger 2012 */
2008-02-17 13:59:16 +00:00
/* Published under the GNU General Public License V.2, see file COPYING */
#ifndef __xiosigchld_h
#define __xiosigchld_h 1
2012-07-22 15:43:24 +00:00
#define NUMUNKNOWN 4
extern pid_t diedunknown[NUMUNKNOWN]; /* child died before it is registered */
#define diedunknown1 (diedunknown[0])
#define diedunknown2 (diedunknown[1])
#define diedunknown3 (diedunknown[2])
#define diedunknown4 (diedunknown[3])
2008-02-17 13:59:16 +00:00
extern int xiosetsigchild(xiofile_t *xfd, int (*callback)(struct single *));
extern void childdied(int signum
#if HAVE_SIGACTION
, siginfo_t *siginfo, void *context
#endif /* HAVE_SIGACTION */
);
extern int
xiosigchld_register(pid_t pid,
void (*sigaction)(int, siginfo_t *, void *),
void *context);
extern int xiosigchld_unregister(pid_t pid);
extern int xiosigchld_clearall(void);
extern void xiosigaction_subaddr_ok(int signum, siginfo_t *siginfo, void *ucontext);
extern void xiosigaction_child(int signum, siginfo_t *siginfo, void *ucontext);
#endif /* !defined(__xiosigchld_h) */