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