1f08c3bdfSopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later
2f08c3bdfSopenharmony_ci/*
3f08c3bdfSopenharmony_ci * Copyright (C) 2023 SUSE LLC Andrea Cervesato <andrea.cervesato@suse.com>
4f08c3bdfSopenharmony_ci */
5f08c3bdfSopenharmony_ci
6f08c3bdfSopenharmony_ci#include "tst_test.h"
7f08c3bdfSopenharmony_ci#include "lapi/syscalls.h"
8f08c3bdfSopenharmony_ci
9f08c3bdfSopenharmony_cistatic inline int eventfd2(unsigned int count, unsigned int flags)
10f08c3bdfSopenharmony_ci{
11f08c3bdfSopenharmony_ci	int ret;
12f08c3bdfSopenharmony_ci
13f08c3bdfSopenharmony_ci	ret = tst_syscall(__NR_eventfd2, count, flags);
14f08c3bdfSopenharmony_ci	if (ret == -1)
15f08c3bdfSopenharmony_ci		tst_brk(TBROK | TERRNO, "eventfd2");
16f08c3bdfSopenharmony_ci
17f08c3bdfSopenharmony_ci	return ret;
18f08c3bdfSopenharmony_ci}
19