aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-07-19 17:22:27 +0000
committerUlrich Drepper <drepper@redhat.com>2007-07-19 17:22:27 +0000
commit8381e467deb672e8adb48cc44011e98431360963 (patch)
treeadd21a1007ecb9c6683d6cf8221680986fadb317
parent50e16f851971fa313a0ab870e3874a3df9314666 (diff)
downloadglibc-8381e467deb672e8adb48cc44011e98431360963.zip
glibc-8381e467deb672e8adb48cc44011e98431360963.tar.gz
glibc-8381e467deb672e8adb48cc44011e98431360963.tar.bz2
* 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.
-rw-r--r--ChangeLog5
-rw-r--r--bits/sched.h9
-rw-r--r--sysdeps/unix/sysv/linux/bits/sched.h6
3 files changed, 19 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index acf2c4f..31e2686 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
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.
* signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
__need_size_t and include stddef.h.
diff --git a/bits/sched.h b/bits/sched.h
index 32434a3..af92dbc 100644
--- a/bits/sched.h
+++ b/bits/sched.h
@@ -68,7 +68,14 @@ 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;
+
+__BEGIN_DECLS
+
+extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
+ __THROW;
+
+__END_DECLS
+
# define __CPU_COUNT(cpusetp) \
__sched_cpucount (sizeof (cpu_set_t), cpusetp)
#endif
diff --git a/sysdeps/unix/sysv/linux/bits/sched.h b/sysdeps/unix/sysv/linux/bits/sched.h
index 96ae96f..d3c21ae 100644
--- a/sysdeps/unix/sysv/linux/bits/sched.h
+++ b/sysdeps/unix/sysv/linux/bits/sched.h
@@ -131,8 +131,14 @@ typedef struct
((cpusetp)->__bits[__CPUELT (cpu)] &= ~__CPUMASK (cpu))
# define __CPU_ISSET(cpu, cpusetp) \
(((cpusetp)->__bits[__CPUELT (cpu)] & __CPUMASK (cpu)) != 0)
+
+__BEGIN_DECLS
+
extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp)
__THROW;
+
+__END_DECLS
+
# define __CPU_COUNT(cpusetp) \
__sched_cpucount (sizeof (cpu_set_t), cpusetp)
#endif