Home | History | Annotate | Download | only in sched_h
      1 /*
      2  *  This program is free software; you can redistribute it and/or modify
      3  *  it under the terms of the GNU General Public License version 2.
      4  *
      5  *  This program is distributed in the hope that it will be useful,
      6  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
      7  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      8  *  GNU General Public License for more details.
      9  *
     10  *
     11  * Test that when _POSIX_SPORADIC_SERVER is defined, sched_param structure
     12  * includes the following:
     13  *   int sched_ss_low_priority
     14  *   struct timespec sched_ss_repl_period
     15  *   struct timespec sched_ss_init_budget
     16  *   int sched_ss_max_repl
     17 */
     18 #include <sched.h>
     19 #include <unistd.h>
     20 
     21 #if defined(_POSIX_SPORADIC_SERVER) && _POSIX_SPORADIC_SERVER != -1
     22 
     23 struct sched_param s;
     24 
     25 int dummyfcn(void)
     26 {
     27 	struct timespec ss_repl_period, ss_init_budget;
     28 
     29 	s.sched_ss_low_priority = 0;
     30 	ss_repl_period = s.sched_ss_repl_period;
     31 	ss_init_budget = s.sched_ss_init_budget;
     32 	s.sched_ss_max_repl = 0;
     33 
     34 	return 0;
     35 }
     36 
     37 #endif
     38