(root)/
strace-6.5/
tests-mx32/
iopl.c
       1  /*
       2   * Copyright (c) 2016-2019 The strace developers.
       3   * All rights reserved.
       4   *
       5   * SPDX-License-Identifier: GPL-2.0-or-later
       6   */
       7  
       8  #include "tests.h"
       9  #include "scno.h"
      10  
      11  #ifdef __NR_iopl
      12  
      13  # include <stdio.h>
      14  # include <unistd.h>
      15  
      16  int
      17  main(void)
      18  {
      19  	long rc = syscall(__NR_iopl, 4);
      20  	printf("iopl(4) = %ld %s (%m)\n", rc, errno2name());
      21  
      22  	puts("+++ exited with 0 +++");
      23  	return 0;
      24  }
      25  
      26  #else
      27  
      28  SKIP_MAIN_UNDEFINED("__NR_iopl")
      29  
      30  #endif