xref: /openbsd-src/regress/sys/kern/pipe/pipe.h (revision 4b171f7d69c92a0a296bba1639eef5570e49697a)
1 /*	$OpenBSD: pipe.h,v 1.4 2021/10/22 05:03:04 anton Exp $	*/
2 
3 /*
4  * Copyright (c) 2019 Anton Lindqvist <anton@openbsd.org>
5  *
6  * Permission to use, copy, modify, and distribute this software for any
7  * purpose with or without fee is hereby granted, provided that the above
8  * copyright notice and this permission notice appear in all copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17  */
18 
19 #include <sys/pipe.h>	/* PIPE_SIZE */
20 
21 #include <signal.h>	/* sig_atomic_t */
22 
23 int test_close_race(void);
24 int test_kqueue_read(void);
25 int test_kqueue_read_eof(void);
26 int test_kqueue_write(void);
27 int test_kqueue_write_eof(void);
28 int test_ping_pong(void);
29 int test_run_down_write_big(void);
30 int test_run_down_write_small(void);
31 int test_select_hup(void);
32 int test_thundering_herd_read_signal(void);
33 int test_thundering_herd_read_wakeup(void);
34 int test_thundering_herd_write_signal(void);
35 int test_thundering_herd_write_wakeup(void);
36 
37 int xwaitpid(pid_t pid);
38 
39 extern sig_atomic_t gotsigpipe;
40 extern int infinity;
41 extern int verbose;
42