Re: [patch] CPU_SET.3: CPU_COUNT() and CPU_COUNT_S() return int, not void

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Vlastimil,

On Thu, Feb 11, 2010 at 12:05 PM, Vlastimil Babka <caster@xxxxxxxxxx> wrote:
> Hi, found a minor error in man-pages 3.23, git is the same (2008-11-14).
> The functions return a number of CPU's, so void is obviously wrong, in my
> glibc-2.11 it's declared as int (__sched_cpucount() in
> /usr/include/bits/sched.h).
>
> Patch below. Regards,
> Vlastimil Babka

Thank you! Applied for man-pages-2.34.

Cheers,

Michael

> diff --git a/man3/CPU_SET.3 b/man3/CPU_SET.3
> index cf186c8..a03f23b 100644
> --- a/man3/CPU_SET.3
> +++ b/man3/CPU_SET.3
> @@ -41,7 +41,7 @@ macros for manipulating CPU sets
>  .BI "void CPU_CLR(int " cpu ", cpu_set_t *" set );
>  .BI "int  CPU_ISSET(int " cpu ", cpu_set_t *" set );
>  .sp
> -.BI "void CPU_COUNT(cpu_set_t *" set );
> +.BI "int  CPU_COUNT(cpu_set_t *" set );
>  .sp
>  .BI "void CPU_AND(cpu_set_t *" destset ,
>  .BI "             cpu_set_t *" srcset1 ", cpu_set_t *" srcset2 );
> @@ -62,7 +62,7 @@ macros for manipulating CPU sets
>  .BI "void CPU_CLR_S(int " cpu ", size_t " setsize ", cpu_set_t *" set );
>  .BI "int  CPU_ISSET_S(int " cpu ", size_t " setsize ", cpu_set_t *" set );
>  .sp
> -.BI "void CPU_COUNT_S(size_t " setsize ", cpu_set_t *" set );
> +.BI "int  CPU_COUNT_S(size_t " setsize ", cpu_set_t *" set );
>  .sp
>  .BI "void CPU_AND_S(size_t " setsize ", cpu_set_t *" destset ,
>  .BI "             cpu_set_t *" srcset1 ", cpu_set_t *" srcset2 );
>



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface" http://blog.man7.org/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux