mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 19:00:07 +00:00
* sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
__BEGIN_DECLS/__END_DECLS around the prototype. * bits/sched.h (__sched_cpucount): Likewise. Make second argument pointer to const cpu_set_t.
This commit is contained in:
parent
50e16f8519
commit
8381e467de
@ -1,5 +1,10 @@
|
|||||||
2007-07-17 Jakub Jelinek <jakub@redhat.com>
|
2007-07-17 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
|
||||||
|
__BEGIN_DECLS/__END_DECLS around the prototype.
|
||||||
|
* bits/sched.h (__sched_cpucount): Likewise. Make second argument
|
||||||
|
pointer to const cpu_set_t.
|
||||||
|
|
||||||
* bits/types.h: Don't include stddef.h, don't define __need_size_t.
|
* bits/types.h: Don't include stddef.h, don't define __need_size_t.
|
||||||
* signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
|
* signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
|
||||||
__need_size_t and include stddef.h.
|
__need_size_t and include stddef.h.
|
||||||
|
@ -68,7 +68,14 @@ typedef struct
|
|||||||
((cpusetp)->__bits[__CPUELT (cpu)] &= ~__CPUMASK (cpu))
|
((cpusetp)->__bits[__CPUELT (cpu)] &= ~__CPUMASK (cpu))
|
||||||
# define __CPU_ISSET(cpu, cpusetp) \
|
# define __CPU_ISSET(cpu, cpusetp) \
|
||||||
(((cpusetp)->__bits[__CPUELT (cpu)] & __CPUMASK (cpu)) != 0)
|
(((cpusetp)->__bits[__CPUELT (cpu)] & __CPUMASK (cpu)) != 0)
|
||||||
extern int __sched_cpucount (size_t __setsize, cpu_set_t *__setp) __THROW;
|
|
||||||
|
__BEGIN_DECLS
|
||||||
|
|
||||||
|
extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
|
||||||
|
__THROW;
|
||||||
|
|
||||||
|
__END_DECLS
|
||||||
|
|
||||||
# define __CPU_COUNT(cpusetp) \
|
# define __CPU_COUNT(cpusetp) \
|
||||||
__sched_cpucount (sizeof (cpu_set_t), cpusetp)
|
__sched_cpucount (sizeof (cpu_set_t), cpusetp)
|
||||||
#endif
|
#endif
|
||||||
|
@ -131,8 +131,14 @@ typedef struct
|
|||||||
((cpusetp)->__bits[__CPUELT (cpu)] &= ~__CPUMASK (cpu))
|
((cpusetp)->__bits[__CPUELT (cpu)] &= ~__CPUMASK (cpu))
|
||||||
# define __CPU_ISSET(cpu, cpusetp) \
|
# define __CPU_ISSET(cpu, cpusetp) \
|
||||||
(((cpusetp)->__bits[__CPUELT (cpu)] & __CPUMASK (cpu)) != 0)
|
(((cpusetp)->__bits[__CPUELT (cpu)] & __CPUMASK (cpu)) != 0)
|
||||||
|
|
||||||
|
__BEGIN_DECLS
|
||||||
|
|
||||||
extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
|
extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
|
||||||
__THROW;
|
__THROW;
|
||||||
|
|
||||||
|
__END_DECLS
|
||||||
|
|
||||||
# define __CPU_COUNT(cpusetp) \
|
# define __CPU_COUNT(cpusetp) \
|
||||||
__sched_cpucount (sizeof (cpu_set_t), cpusetp)
|
__sched_cpucount (sizeof (cpu_set_t), cpusetp)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user