xref: /openbsd/regress/sys/kern/pipe/pipe.h (revision 4b171f7d)
1*4b171f7dSanton /*	$OpenBSD: pipe.h,v 1.4 2021/10/22 05:03:04 anton Exp $	*/
279596596Santon 
379596596Santon /*
479596596Santon  * Copyright (c) 2019 Anton Lindqvist <anton@openbsd.org>
579596596Santon  *
679596596Santon  * Permission to use, copy, modify, and distribute this software for any
779596596Santon  * purpose with or without fee is hereby granted, provided that the above
879596596Santon  * copyright notice and this permission notice appear in all copies.
979596596Santon  *
1079596596Santon  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1179596596Santon  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1279596596Santon  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1379596596Santon  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1479596596Santon  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1579596596Santon  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1679596596Santon  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1779596596Santon  */
1879596596Santon 
1979596596Santon #include <sys/pipe.h>	/* PIPE_SIZE */
2079596596Santon 
2179596596Santon #include <signal.h>	/* sig_atomic_t */
2279596596Santon 
23f82cc820Santon int test_close_race(void);
24e22febffSanton int test_kqueue_read(void);
25e22febffSanton int test_kqueue_read_eof(void);
26e22febffSanton int test_kqueue_write(void);
27e22febffSanton int test_kqueue_write_eof(void);
2879596596Santon int test_ping_pong(void);
2979596596Santon int test_run_down_write_big(void);
3079596596Santon int test_run_down_write_small(void);
31*4b171f7dSanton int test_select_hup(void);
3279596596Santon int test_thundering_herd_read_signal(void);
3379596596Santon int test_thundering_herd_read_wakeup(void);
3479596596Santon int test_thundering_herd_write_signal(void);
3579596596Santon int test_thundering_herd_write_wakeup(void);
3679596596Santon 
3779596596Santon int xwaitpid(pid_t pid);
3879596596Santon 
3979596596Santon extern sig_atomic_t gotsigpipe;
40f82cc820Santon extern int infinity;
4179596596Santon extern int verbose;
42