/* * Copyright (c) 2020 Tobias Svehagen * * SPDX-License-Identifier: Apache-2.0 */ #ifndef TESTS_POSIX_EVENTFD_SRC__MAIN_H_ #define TESTS_POSIX_EVENTFD_SRC__MAIN_H_ #include #include #include #include #include #include #include #define TESTVAL 10 #ifdef __cplusplus extern "C" { #endif struct eventfd_fixture { int fd; }; void reopen(int *fd, int initval, int flags); int is_blocked(int fd, short *event); void eventfd_poll_set_common(int fd); void eventfd_poll_unset_common(int fd); #ifdef __cplusplus } #endif #endif