12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #include <stdlib.h>
- #include <string.h>
- #include "pthread.h"
- #include "implement.h"
- #include "sched.h"
- int
- pthread_attr_getschedparam (const pthread_attr_t * attr,
- struct sched_param *param)
- {
- if (pte_is_attr (attr) != 0 || param == NULL)
- {
- return EINVAL;
- }
- memcpy (param, &(*attr)->param, sizeof (*param));
- return 0;
- }
|