Bruce Shaw wrote:
I'm trying to fix a bug in HOST-RESOURCES-MIB. I'm trying to pick up the symbolic links in /dev/dsk to compare them against entries in path_to_inst so I can compare them to stuff I'm retrieving from kstat.

My problem is, i don't know the good way to retrieve the symbolic link. I can probably cook up a messy way but that will resemble my spaghetti.

Typical entry in /dev/dsk

lrwxrwxrwx 1 root 43 Mar 16 2004 c5t3d0s4 -> ../../devices/[EMAIL PROTECTED],2000/[EMAIL PROTECTED],1/[EMAIL PROTECTED]:h


#include <unistd.h>

       int readlink(const char *path, char *buf, size_t bufsiz);

This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed.


While this disclaimer is probably out of your control it does annoy a lot of people.


--
There's no point in being grown up if you can't be childish sometimes.
                -- Dr. Who


------------------------------------------------------- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to