(root)/
strace-6.5/
tests-mx32/
sched_get_priority_mxx.c
       1  /*
       2   * Check decoding of sched_get_priority_max and sched_get_priority_min syscalls.
       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 <sched.h>
      14  #include <stdio.h>
      15  #include <unistd.h>
      16  
      17  int
      18  main(void)
      19  {
      20  	int rc = syscall(__NR_sched_get_priority_min, SCHED_FIFO);
      21  	printf("sched_get_priority_min(SCHED_FIFO) = %d\n", rc);
      22  
      23  	rc = syscall(__NR_sched_get_priority_max, SCHED_RR);
      24  	printf("sched_get_priority_max(SCHED_RR) = %d\n", rc);
      25  
      26  	puts("+++ exited with 0 +++");
      27  	return 0;
      28  }