On Mon, 2006-01-16 at 15:01 +0530, Suma C wrote:
> Can we use the /proc/uptime or even better the library function :
> get_uptime .....
A library function like that would certainly be an idea.
But the big question is how portable it would be.
Remember that the Net-SNMP suite runs on a wide variety
of systems, not just Linux. So we prefer to use general
solutions in preference to system-specific ones wherever
possible.
And checking my (fairly bog-standard) Fedora 4 system,
I can't immediately spot any mention of this routine.
There isn't a man page for "get_uptime", and it doesn't
appear in any of the header files.
This is not a good sign.
Can you point me in the direction of some documentation?
Dave
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders