Date: Sat, 29 Nov 1997 14:29:17 -0800 (PST) From: Alex <garbanzo@hooked.net> To: Julian Assange <proff@iq.org> Cc: hackers@FreeBSD.ORG Subject: Re: detecting devfs from userland? Message-ID: <Pine.BSF.3.96.971129142636.26645A-100000@zippy.dyn.ml.org> In-Reply-To: <19971126232220.5569.qmail@iq.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 26 Nov 1997, Julian Assange wrote: > > Is there anyway to detect if the running kernel was built with > -DDEVFS, other than trying to mount -t devfs ? (i.e a way that > doesn't require root privs? sysctl -a is of no use here. I'm suprised nobody mentioned this earlier, but you might want to try getvfsbyname(3). However it seems that the manpages are only correct if _NEW_VFSCONF is defined (which it isn't on my system). The correct prototype seems to be vfsconf * getvfsbyname(char *). - alex
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971129142636.26645A-100000>