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:
David Xu 2008-03-13 02:56:11 +00:00
parent 9fbfd54e8e
commit 83660cf974

View File

@ -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_ */