xref: /aosp_15_r20/external/musl/src/process/posix_spawnattr_sched.c (revision c9945492fdd68bbe62686c5b452b4dc1be3f8453)
1*c9945492SAndroid Build Coastguard Worker #include <spawn.h>
2*c9945492SAndroid Build Coastguard Worker #include <sched.h>
3*c9945492SAndroid Build Coastguard Worker #include <errno.h>
4*c9945492SAndroid Build Coastguard Worker 
posix_spawnattr_getschedparam(const posix_spawnattr_t * restrict attr,struct sched_param * restrict schedparam)5*c9945492SAndroid Build Coastguard Worker int posix_spawnattr_getschedparam(const posix_spawnattr_t *restrict attr,
6*c9945492SAndroid Build Coastguard Worker 	struct sched_param *restrict schedparam)
7*c9945492SAndroid Build Coastguard Worker {
8*c9945492SAndroid Build Coastguard Worker 	return ENOSYS;
9*c9945492SAndroid Build Coastguard Worker }
10*c9945492SAndroid Build Coastguard Worker 
posix_spawnattr_setschedparam(posix_spawnattr_t * restrict attr,const struct sched_param * restrict schedparam)11*c9945492SAndroid Build Coastguard Worker int posix_spawnattr_setschedparam(posix_spawnattr_t *restrict attr,
12*c9945492SAndroid Build Coastguard Worker 	const struct sched_param *restrict schedparam)
13*c9945492SAndroid Build Coastguard Worker {
14*c9945492SAndroid Build Coastguard Worker 	return ENOSYS;
15*c9945492SAndroid Build Coastguard Worker }
16*c9945492SAndroid Build Coastguard Worker 
posix_spawnattr_getschedpolicy(const posix_spawnattr_t * restrict attr,int * restrict policy)17*c9945492SAndroid Build Coastguard Worker int posix_spawnattr_getschedpolicy(const posix_spawnattr_t *restrict attr, int *restrict policy)
18*c9945492SAndroid Build Coastguard Worker {
19*c9945492SAndroid Build Coastguard Worker 	return ENOSYS;
20*c9945492SAndroid Build Coastguard Worker }
21*c9945492SAndroid Build Coastguard Worker 
posix_spawnattr_setschedpolicy(posix_spawnattr_t * attr,int policy)22*c9945492SAndroid Build Coastguard Worker int posix_spawnattr_setschedpolicy(posix_spawnattr_t *attr, int policy)
23*c9945492SAndroid Build Coastguard Worker {
24*c9945492SAndroid Build Coastguard Worker 	return ENOSYS;
25*c9945492SAndroid Build Coastguard Worker }
26