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