4.104.114.84.95
Last change
on this file since cf1ced66 was
05195890,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/22/96 at 22:31:51
|
These files have been modified in the initial pass at getting the portion
of the POSIX API necessary to support the GNAT runtime to initially compile.
We now have verified that the specifications for the necessary routines
are correct per the POSIX standards we have.
The removed files were moved to newlib as they were duplicates of files
already included there.
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | /* sched.h |
---|
2 | * |
---|
3 | * $Id$ |
---|
4 | */ |
---|
5 | |
---|
6 | |
---|
7 | #ifndef __POSIX_SCHEDULING_h |
---|
8 | #define __POSIX_SCHEDULING_h |
---|
9 | |
---|
10 | #include <sys/features.h> |
---|
11 | |
---|
12 | #if defined(_POSIX_PRIORITY_SCHEDULING) |
---|
13 | |
---|
14 | #include <sys/types.h> |
---|
15 | #include <time.h> |
---|
16 | #include <sys/sched.h> |
---|
17 | #include <pthread.h> |
---|
18 | |
---|
19 | /* |
---|
20 | * 13.3.1 Set Scheduling Parameters, P1003.1b-1993, p. 252 |
---|
21 | * |
---|
22 | */ |
---|
23 | |
---|
24 | int sched_setparam( |
---|
25 | pid_t pid, |
---|
26 | const struct sched_param *param |
---|
27 | ); |
---|
28 | |
---|
29 | /* |
---|
30 | * 13.3.2 Set Scheduling Parameters, P1003.1b-1993, p. 253 |
---|
31 | */ |
---|
32 | |
---|
33 | int sched_getparam( |
---|
34 | pid_t pid, |
---|
35 | const struct sched_param *param |
---|
36 | ); |
---|
37 | |
---|
38 | /* |
---|
39 | * 13.3.3 Set Scheduling Policy and Scheduling Parameters, |
---|
40 | * P1003.1b-1993, p. 254 |
---|
41 | */ |
---|
42 | |
---|
43 | int sched_setscheduler( |
---|
44 | pid_t pid, |
---|
45 | int policy, |
---|
46 | const struct sched_param *param |
---|
47 | ); |
---|
48 | |
---|
49 | /* |
---|
50 | * 13.3.4 Get Scheduling Policy, P1003.1b-1993, p. 256 |
---|
51 | */ |
---|
52 | |
---|
53 | int sched_getscheduler( |
---|
54 | pid_t pid |
---|
55 | ); |
---|
56 | |
---|
57 | /* |
---|
58 | * 13.3.6 Get Scheduling Parameter Limits, P1003.1b-1993, p. 258 |
---|
59 | */ |
---|
60 | |
---|
61 | int sched_get_priority_max( |
---|
62 | int policy |
---|
63 | ); |
---|
64 | |
---|
65 | int sched_get_priority_min( |
---|
66 | int policy |
---|
67 | ); |
---|
68 | |
---|
69 | int sched_rr_get_interval( |
---|
70 | pid_t pid, |
---|
71 | struct timespec *interval |
---|
72 | ); |
---|
73 | |
---|
74 | #endif /* _POSIX_PRIORITY_SCHEDULING */ |
---|
75 | |
---|
76 | #if defined(_POSIX_THREADS) || defined(_POSIX_PRIORITY_SCHEDULING) |
---|
77 | |
---|
78 | /* |
---|
79 | * 13.3.5 Yield Processor, P1003.1b-1993, p. 257 |
---|
80 | */ |
---|
81 | |
---|
82 | int sched_yield( void ); |
---|
83 | |
---|
84 | #endif /* _POSIX_THREADS or _POSIX_PRIORITY_SCHEDULING */ |
---|
85 | |
---|
86 | #endif |
---|
87 | /* end of include file */ |
---|
88 | |
---|
Note: See
TracBrowser
for help on using the repository browser.