]> sourceware.org Git - glibc.git/commitdiff
* sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
authorUlrich Drepper <drepper@redhat.com>
Thu, 19 Jul 2007 17:22:27 +0000 (17:22 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 19 Jul 2007 17:22:27 +0000 (17:22 +0000)
__BEGIN_DECLS/__END_DECLS around the prototype.
* bits/sched.h (__sched_cpucount): Likewise.  Make second argument
pointer to const cpu_set_t.

ChangeLog
bits/sched.h
sysdeps/unix/sysv/linux/bits/sched.h

index acf2c4fea87d08d028745483547f24e7e9740858..31e2686df2f0414a1b311ec1c940b952be503cb6 100644 (file)
--- 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.
index 32434a37984a388052d33019ed5bf8b7ba4fbfa8..af92dbca35a07f75949884b3dffd81b2fd9f2e18 100644 (file)
@@ -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
index 96ae96f826179464ef2a9f131ddbb48278ac0c54..d3c21ae3a27e855e538a49af19f9c05eac090e71 100644 (file)
@@ -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
This page took 0.04759 seconds and 5 git commands to generate.