/
githubmirror
/
strace
Обзор
Документация
Войти
/
githubmirror
/
strace
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/gettid.c
25 строк
436 B
Dmitry V. Levin
Update copyright headers
23 сен 2020, 19:29
23 сен 2020, 19:29
fd3712b
Код
Авторство
О чём код?
/* * Copyright (c) 2017-2020 The strace developers. * All rights reserved. * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "tests.h" #include <stdio.h> #include <unistd.h> #include "scno.h" #include "pidns.h" int main(void) { PIDNS_TEST_INIT; pidns_print_leader(); printf("gettid() = %d%s\n", (int) syscall(__NR_gettid), pidns_pid2str(PT_TID)); pidns_print_leader(); puts("+++ exited with 0 +++"); return 0; }