xref: /third_party/ltp/testcases/kernel/syscalls/tgkill/tgkill.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/testcases/kernel/syscalls/tgkill/
1f08c3bdfSopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later
2f08c3bdfSopenharmony_ci/*
3f08c3bdfSopenharmony_ci * Copyright (c) 2018 Google, Inc.
4f08c3bdfSopenharmony_ci */
5f08c3bdfSopenharmony_ci
6f08c3bdfSopenharmony_ci#ifndef TGKILL_H
7f08c3bdfSopenharmony_ci#define TGKILL_H
8f08c3bdfSopenharmony_ci
9f08c3bdfSopenharmony_ci#include "config.h"
10f08c3bdfSopenharmony_ci#include "lapi/syscalls.h"
11f08c3bdfSopenharmony_ci
12f08c3bdfSopenharmony_cistatic inline int sys_tgkill(int tgid, int tid, int sig)
13f08c3bdfSopenharmony_ci{
14f08c3bdfSopenharmony_ci	return tst_syscall(__NR_tgkill, tgid, tid, sig);
15f08c3bdfSopenharmony_ci}
16f08c3bdfSopenharmony_ci
17f08c3bdfSopenharmony_cistatic inline pid_t sys_gettid(void)
18f08c3bdfSopenharmony_ci{
19f08c3bdfSopenharmony_ci	return tst_syscall(__NR_gettid);
20f08c3bdfSopenharmony_ci}
21f08c3bdfSopenharmony_ci
22f08c3bdfSopenharmony_ci#endif /* TGKILL_H */
23

Indexes created Thu Nov 07 10:32:03 CST 2024