Date: Wed, 11 Feb 2004 20:06:27 +0000 From: Nate Grey <nate@paranoici.org> To: freebsd-hackers@FreeBSD.org Subject: help sysctl.h Message-ID: <20040124165621.GA19451@LapBSD.tin.it>
next in thread | raw e-mail | index | archive | help
Hello, I'm trying to write a little program which retrieve the value 'sysctl hw.acpi.thermal.tz0.temperature', I want to write it in C, through sys/sysctl.h, but I'm a newbie C coder, so can anyone show me how to assign to a var the value stored in that sysctl using sysctl C call? I have read 'man 3 sysctl' but I didn't understand very well... P.S. 1) Sorry for my English 2) I'm not a list subscriber so please cc: Thanks in advance. Bye
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040124165621.GA19451>