1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

* sysdeps/unix/sysv/linux/bits/sched.h: Make second parameter of

__sched_cpucount as const.
	* posix/sched_cpucount.c: Adjust.
This commit is contained in:
Ulrich Drepper
2007-06-08 19:25:07 +00:00
parent 36dffb2256
commit 755db8c5bd
2 changed files with 6 additions and 1 deletions

View File

@ -131,7 +131,8 @@ typedef struct
((cpusetp)->__bits[__CPUELT (cpu)] &= ~__CPUMASK (cpu))
# define __CPU_ISSET(cpu, cpusetp) \
(((cpusetp)->__bits[__CPUELT (cpu)] & __CPUMASK (cpu)) != 0)
extern int __sched_cpucount (size_t __setsize, cpu_set_t *__setp) __THROW;
extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
__THROW;
# define __CPU_COUNT(cpusetp) \
__sched_cpucount (sizeof (cpu_set_t), cpusetp)
#endif