Call for testers: libiberty/physmem.c
Richard Earnshaw
rearnsha@arm.com
Fri Feb 21 17:27:00 GMT 2003
> > From: Andrew Pinski <apinski@apple.com>
> >
> > On `OpenBSD grendel 3.1 GENERIC#4 i386' aka i?86-unknown-openbsd3.1:
> > total=0.000000Mb avail=0.000000Mb
> >
> > but `sysctl -A' gives:
> > hw.physmem = 536059904
> > hw.usermem = 535629824
> > hw.pagesize = 4096
> >
> > I think this might be the same problem on all *BSD (including darwin).
>
> Is `sysctl' a binary program or a system call? (Or both?)
>
> What would the C interface look like? What autoconf magic does it need?
>
> Thanks,
> --Kaveh
> --
> Kaveh R. Ghazi ghazi@caip.rutgers.edu
Both. See:
http://netbsd.gw.com/cgi-bin/man-cgi?sysctl+3+NetBSD-1.6
For NetBSD you would need CTL_HW and HW_PHYSMEM or HW_USERMEM.
R.
More information about the Gcc
mailing list