/
githubmirror
/
strace
Обзор
Документация
Войти
/
githubmirror
/
strace
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/count_unknown_mixed.c
24 строки
432 B
Dmitry V. Levin
tests: add coverage for out-of-range syscalls -c summary
27 май 2026, 11:00
27 май 2026, 11:00
9beb5f4
Код
Авторство
О чём код?
/* * Check that -c summary includes both known and unknown syscalls. * * Copyright (c) 2026 The strace developers. * All rights reserved. * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "nsyscalls.h" int main(void) { const unsigned long scno = ARRAY_SIZE(syscallent); (void) invoke_syscall(scno); (void) syscall(__NR_getpid); printf("syscall_%#lx\n", scno | SYSCALL_BIT); printf("getpid\n"); return 0; }