xref: /aosp_15_r20/external/ltp/testcases/kernel/syscalls/tgkill/tgkill.h (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1*49cdfc7eSAndroid Build Coastguard Worker // SPDX-License-Identifier: GPL-2.0-or-later
2*49cdfc7eSAndroid Build Coastguard Worker /*
3*49cdfc7eSAndroid Build Coastguard Worker  * Copyright (c) 2018 Google, Inc.
4*49cdfc7eSAndroid Build Coastguard Worker  */
5*49cdfc7eSAndroid Build Coastguard Worker 
6*49cdfc7eSAndroid Build Coastguard Worker #ifndef TGKILL_H
7*49cdfc7eSAndroid Build Coastguard Worker #define TGKILL_H
8*49cdfc7eSAndroid Build Coastguard Worker 
9*49cdfc7eSAndroid Build Coastguard Worker #include "config.h"
10*49cdfc7eSAndroid Build Coastguard Worker #include "lapi/syscalls.h"
11*49cdfc7eSAndroid Build Coastguard Worker 
sys_tgkill(int tgid,int tid,int sig)12*49cdfc7eSAndroid Build Coastguard Worker static inline int sys_tgkill(int tgid, int tid, int sig)
13*49cdfc7eSAndroid Build Coastguard Worker {
14*49cdfc7eSAndroid Build Coastguard Worker 	return tst_syscall(__NR_tgkill, tgid, tid, sig);
15*49cdfc7eSAndroid Build Coastguard Worker }
16*49cdfc7eSAndroid Build Coastguard Worker 
sys_gettid(void)17*49cdfc7eSAndroid Build Coastguard Worker static inline pid_t sys_gettid(void)
18*49cdfc7eSAndroid Build Coastguard Worker {
19*49cdfc7eSAndroid Build Coastguard Worker 	return tst_syscall(__NR_gettid);
20*49cdfc7eSAndroid Build Coastguard Worker }
21*49cdfc7eSAndroid Build Coastguard Worker 
22*49cdfc7eSAndroid Build Coastguard Worker #endif /* TGKILL_H */
23