xref: /openbsd/regress/sys/kern/kqueue/main.h (revision 771fbea0)
1 /*	$OpenBSD: main.h,v 1.5 2019/03/04 19:33:42 anton Exp $	*/
2 /*
3  *	Written by Alexaner Bluhm <bluhm@openbsd.org> 2016 Public Domain
4  */
5 
6 #define ASS(cond, mess)							\
7 	do {								\
8 		if (!(cond)) {						\
9 			mess;						\
10 			return (1);					\
11 		}							\
12 	} while (0)
13 
14 #define ASSX(cond) ASS(cond,						\
15 	warnx("assertion " #cond " failed in %s on line %d",		\
16 	    __FILE__, __LINE__))
17 
18 int check_inheritance(void);
19 int do_fdpass(void);
20 int do_flock(void);
21 int do_invalid_timer(void);
22 int do_pipe(void);
23 int do_process(void);
24 int do_pty(int);
25 int do_random(void);
26 int do_regress(int);
27 int do_signal(void);
28 int do_timer(void);
29 int do_tun(void);
30