xref: /openbsd-src/regress/sys/kern/pipe/pipe.h (revision 1a8dbaac879b9f3335ad7fb25429ce63ac1d6bac)
1 /*	$OpenBSD: pipe.h,v 1.3 2020/06/29 18:25:37 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_thundering_herd_read_signal(void);
32 int test_thundering_herd_read_wakeup(void);
33 int test_thundering_herd_write_signal(void);
34 int test_thundering_herd_write_wakeup(void);
35 
36 int xwaitpid(pid_t pid);
37 
38 extern sig_atomic_t gotsigpipe;
39 extern int infinity;
40 extern int verbose;
41