> On Thu, 7 Sep 2000, John Summerfield wrote:
> 
> >> >int main(void)
> >> >{
> >> >    printf("%ld CPUs online\n", sysconf(_SC_NPROCESSORS_ONLN));
>                                     ^^^^^^^
> 
> >[root@dugite /root]# man getconf
> >No manual entry for getconf
> >[root@dugite /root]# getconf _NPROCESSORS_ONLN
> >1
> >[root@dugite /root]# which getconf
> >/usr/bin/getconf
> >[root@dugite /root]# rpm -qif /usr/bin/getconf
> >Name        : glibc                        Relocations: (not relocateable)
> >Version     : 2.1.3                             Vendor: Red Hat, Inc.
> >Release     : 15                            Build Date: Wed 01 Mar 2000 06:0
> 0:05 AM WST             
> >
> >How is one supposed to find that? Of having found it, use it?
> >[root@dugite /root]# getconf --help
> >getconf: Unrecognized variable `--help'
> >[root@dugite /root]#
> 
> All true, and getconf should at least have a symlink to the
> proper documentation.  Try:
> 
> man sysconf
> 
> Which gives all you should need..
> TTYL

Yeah.
[summer@possum linux]$ getconf _SC_CLK_TCK
getconf: Unrecognized variable `_SC_CLK_TCK'
[summer@possum linux]$

I don't beleive that document describes the use of getconf.





_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to