/
githubmirror
/
strace
Обзор
Документация
Войти
/
githubmirror
/
strace
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v5.13
tests/chroot.c
28 строк
527 B
Dmitry V. Levin
Update copyright headers
16 фев 2021, 11:00
16 фев 2021, 11:00
8fa8a88
Код
Авторство
О чём код?
/* * Check decoding of chroot syscall. * * Copyright (c) 2016-2021 The strace developers. * All rights reserved. * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "tests.h" #include "scno.h" #include <stdio.h> #include <unistd.h> int main(void) { static const char sample[] = "chroot.sample"; printf("chroot(NULL) = %s\n", sprintrc(syscall(__NR_chroot, NULL))); printf("chroot(\"%s\") = %s\n", sample, sprintrc(syscall(__NR_chroot, sample))); puts("+++ exited with 0 +++"); return 0; }