12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #include "pthread.h"
- #include "implement.h"
- #include "sched.h"
- int
- pthread_attr_getschedpolicy (pthread_attr_t * attr, int *policy)
- {
- if (pte_is_attr (attr) != 0 || policy == NULL)
- {
- return EINVAL;
- }
-
- if (policy <= (int *) SCHED_MAX)
- {
- return EINVAL;
- }
- *policy = SCHED_OTHER;
- return 0;
- }
|