• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright (c) 2019 SUSE LLC
4  * Author: Christian Amann <camann@suse.com>
5  */
6 
7 #ifndef LAPI_PIDFD_SEND_SIGNAL_H__
8 #define LAPI_PIDFD_SEND_SIGNAL_H__
9 
10 #include "tst_test.h"
11 #include "lapi/syscalls.h"
12 
pidfd_send_signal_supported(void)13 static inline void pidfd_send_signal_supported(void)
14 {
15 	/* allow the tests to fail early */
16 	tst_syscall(__NR_pidfd_send_signal);
17 }
18 
19 #ifndef HAVE_PIDFD_SEND_SIGNAL
pidfd_send_signal(int pidfd,int sig,siginfo_t * info,unsigned int flags)20 static inline int pidfd_send_signal(int pidfd, int sig, siginfo_t *info,
21                                     unsigned int flags)
22 {
23 	return tst_syscall(__NR_pidfd_send_signal, pidfd, sig, info, flags);
24 }
25 #endif /* HAVE_PIDFD_SEND_SIGNAL */
26 
27 #endif /* LAPI_PIDFD_SEND_SIGNAL_H__ */
28