diff options
Diffstat (limited to 'regress/sys/kern/kqueue/main.c')
-rw-r--r-- | regress/sys/kern/kqueue/main.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/regress/sys/kern/kqueue/main.c b/regress/sys/kern/kqueue/main.c new file mode 100644 index 00000000000..e6155bf4875 --- /dev/null +++ b/regress/sys/kern/kqueue/main.c @@ -0,0 +1,34 @@ +/* $OpenBSD: main.c,v 1.1 2002/02/27 17:11:51 art Exp $ */ +/* + * Written by Artur Grabowski <art@openbsd.org> 2002 Public Domain + */ + +#include <stdlib.h> +#include <stdio.h> +#include <unistd.h> + +extern int do_pipe(void); +extern int check_inheritance(void); + +int +main(int argc, char **argv) +{ + int ret, c; + + ret = 0; + while ((c = getopt(argc, argv, "pf")) != -1) { + switch (c) { + case 'p': + ret |= do_pipe(); + break; + case 'f': + ret |= check_inheritance(); + break; + default: + fprintf(stderr, "Usage: kqtest -P|p\n"); + exit(1); + } + } + + return (ret); +} |