(root)/
strace-6.5/
tests/
answer.c
       1  /*
       2   * Check decoding of fault injected exit_group syscall.
       3   *
       4   * Copyright (c) 2016-2018 Dmitry V. Levin <ldv@strace.io>
       5   * Copyright (c) 2016-2021 The strace developers.
       6   * All rights reserved.
       7   *
       8   * SPDX-License-Identifier: GPL-2.0-or-later
       9   */
      10  
      11  #include "tests.h"
      12  #include <unistd.h>
      13  #include "scno.h"
      14  
      15  int
      16  main(void)
      17  {
      18  	static const kernel_ulong_t answer =
      19  		(kernel_ulong_t) 0xbadc0ded0000002aULL;
      20  
      21  	syscall(__NR_exit_group, answer);
      22  	syscall(__NR_exit, answer);
      23  
      24  	return 1;
      25  }