Force MSYSTEM=MSYS
[msysgit.git] / include / sys / sched.h
blobb59af5a79283a3d6899eb57b97eeaa63d3d845f3
1 /*
2 * Written by Joel Sherrill <joel@OARcorp.com>.
4 * COPYRIGHT (c) 1989-2000.
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.
17 * $Id: sched.h,v 1.1 2000/12/12 01:24:08 jjohnstn Exp $
21 #ifndef __POSIX_SYS_SCHEDULING_h
22 #define __POSIX_SYS_SCHEDULING_h
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
28 #include <sys/unistd.h>
30 #include <sys/types.h>
31 #include <sys/time.h>
33 /* Scheduling Policies, P1003.1b-1993, p. 250
34 NOTE: SCHED_SPORADIC added by P1003.4b/D8, p. 34. */
36 #define SCHED_OTHER 0
37 #define SCHED_FIFO 1
38 #define SCHED_RR 2
40 #if defined(_POSIX_SPORADIC_SERVER)
41 #define SCHED_SPORADIC 3
42 #endif
44 /* Scheduling Parameters, P1003.1b-1993, p. 249
45 NOTE: Fields whose name begins with "ss_" added by P1003.4b/D8, p. 33. */
47 struct sched_param {
48 int sched_priority; /* Process execution scheduling priority */
50 #if defined(_POSIX_SPORADIC_SERVER)
51 int ss_low_priority; /* Low scheduling priority for sporadic */
52 /* server */
53 struct timespec ss_replenish_period;
54 /* Replenishment period for sporadic server */
55 struct timespec ss_initial_budget; /* Initial budget for sporadic server */
56 #endif
59 #ifdef __cplusplus
61 #endif
63 #endif
64 /* end of include file */