xref: /illumos-gate/usr/src/test/os-tests/tests/signalfd/common.h (revision 374858d291554c199353841e2900bc130463934a)
1*374858d2SPatrick Mooney /*
2*374858d2SPatrick Mooney  * This file and its contents are supplied under the terms of the
3*374858d2SPatrick Mooney  * Common Development and Distribution License ("CDDL"), version 1.0.
4*374858d2SPatrick Mooney  * You may only use this file in accordance with the terms of version
5*374858d2SPatrick Mooney  * 1.0 of the CDDL.
6*374858d2SPatrick Mooney  *
7*374858d2SPatrick Mooney  * A full copy of the text of the CDDL should have accompanied this
8*374858d2SPatrick Mooney  * source.  A copy of the CDDL is also available via the Internet at
9*374858d2SPatrick Mooney  * http://www.illumos.org/license/CDDL.
10*374858d2SPatrick Mooney  */
11*374858d2SPatrick Mooney 
12*374858d2SPatrick Mooney /*
13*374858d2SPatrick Mooney  * Copyright 2023 Oxide Computer Company
14*374858d2SPatrick Mooney  */
15*374858d2SPatrick Mooney 
16*374858d2SPatrick Mooney #ifndef	_COMMON_H_
17*374858d2SPatrick Mooney #define	_COMMON_H_
18*374858d2SPatrick Mooney 
19*374858d2SPatrick Mooney #include <assert.h>
20*374858d2SPatrick Mooney #include <errno.h>
21*374858d2SPatrick Mooney #include <signal.h>
22*374858d2SPatrick Mooney #include <sys/signalfd.h>
23*374858d2SPatrick Mooney 
24*374858d2SPatrick Mooney void test_fail(const char *, ...);
25*374858d2SPatrick Mooney void test_pass(void);
26*374858d2SPatrick Mooney int test_basic_prep(int);
27*374858d2SPatrick Mooney 
28*374858d2SPatrick Mooney #endif	/* _COMMON_H_ */
29