Add const qualifier to cpuset mask's pointer, since the cpuset mask should
be not changed by the system call.
This commit is contained in:
parent
9fbfd54e8e
commit
83660cf974
@ -162,7 +162,7 @@ int cpuset(cpusetid_t *);
|
||||
int cpuset_setid(cpuwhich_t, id_t, cpusetid_t);
|
||||
int cpuset_getid(cpulevel_t, cpuwhich_t, id_t, cpusetid_t *);
|
||||
int cpuset_getaffinity(cpulevel_t, cpuwhich_t, id_t, int, cpuset_t *);
|
||||
int cpuset_setaffinity(cpulevel_t, cpuwhich_t, id_t, int, cpuset_t *);
|
||||
int cpuset_setaffinity(cpulevel_t, cpuwhich_t, id_t, int, const cpuset_t *);
|
||||
__END_DECLS
|
||||
#endif
|
||||
#endif /* !_SYS_CPUSET_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user