(root)/
strace-6.5/
tests-m32/
acct.c
       1  /*
       2   * Check decoding of acct syscall.
       3   *
       4   * Copyright (c) 2016-2021 The strace developers.
       5   * All rights reserved.
       6   *
       7   * SPDX-License-Identifier: GPL-2.0-or-later
       8   */
       9  
      10  #include "tests.h"
      11  #include "scno.h"
      12  
      13  #include <stdio.h>
      14  #include <unistd.h>
      15  
      16  int
      17  main(void)
      18  {
      19  	const char sample[] = "acct_sample";
      20  
      21  	long rc = syscall(__NR_acct, sample);
      22  	printf("acct(\"%s\") = %ld %s (%m)\n",
      23  	       sample, rc, errno2name());
      24  
      25  	puts("+++ exited with 0 +++");
      26  	return 0;
      27  }