From owner-freebsd-hackers Sat Nov 29 14:43:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA24809 for hackers-outgoing; Sat, 29 Nov 1997 14:43:49 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from zippy.dyn.ml.org (root@ghana-141.ppp.hooked.net [206.169.228.141]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA24799 for ; Sat, 29 Nov 1997 14:43:43 -0800 (PST) (envelope-from garbanzo@hooked.net) Received: from localhost (garbanzo@localhost) by zippy.dyn.ml.org (8.8.7/8.8.7) with SMTP id OAA01645; Sat, 29 Nov 1997 14:29:18 -0800 (PST) X-Authentication-Warning: zippy.dyn.ml.org: garbanzo owned process doing -bs Date: Sat, 29 Nov 1997 14:29:17 -0800 (PST) From: Alex X-Sender: garbanzo@zippy.dyn.ml.org To: Julian Assange cc: hackers@FreeBSD.ORG Subject: Re: detecting devfs from userland? In-Reply-To: <19971126232220.5569.qmail@iq.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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