2 * Written by Joel Sherrill <joel@OARcorp.com>.
4 * COPYRIGHT (c) 1989-2010.
5 * On-Line Applications Research Corporation (OAR).
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose without fee is hereby granted, provided that this entire notice
9 * is included in all copies of any software which is or includes a copy
10 * or modification of this software.
12 * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
13 * WARRANTY. IN PARTICULAR, THE AUTHOR MAKES NO REPRESENTATION
14 * OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY OF THIS
15 * SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
24 #include <sys/_timespec.h>
30 /* Scheduling Policies */
31 /* Open Group Specifications Issue 6 */
32 #if defined(__CYGWIN__)
41 #if defined(_POSIX_SPORADIC_SERVER)
42 #define SCHED_SPORADIC 4
49 /* Flag to drop realtime policies and negative nice values on fork(). */
50 #define SCHED_RESET_ON_FORK 0x40000000
53 /* Scheduling Parameters */
54 /* Open Group Specifications Issue 6 */
57 int sched_priority
; /* Process execution scheduling priority */
59 #if defined(_POSIX_SPORADIC_SERVER) || defined(_POSIX_THREAD_SPORADIC_SERVER)
60 int sched_ss_low_priority
; /* Low scheduling priority for sporadic */
62 struct timespec sched_ss_repl_period
;
63 /* Replenishment period for sporadic server */
64 struct timespec sched_ss_init_budget
;
65 /* Initial budget for sporadic server */
66 int sched_ss_max_repl
; /* Maximum pending replenishments for */
76 /* end of include file */