blob: 2f11b468db26fcb9b0c200755c563cd32b87d816 [file] [log] [blame]
/*
* 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 <errno.h>
#include <stdio.h>
#include <zephyr/net/socket.h>
#include <zephyr/posix/poll.h>
#include <zephyr/posix/sys/eventfd.h>
#include <zephyr/posix/unistd.h>
#include <zephyr/ztest.h>
#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