From owner-freebsd-arch Fri Oct 4 16:14:13 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 813FA37B401 for ; Fri, 4 Oct 2002 16:14:11 -0700 (PDT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id C73DE43E4A for ; Fri, 4 Oct 2002 16:14:10 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.3/8.12.3) with ESMTP id g94N04s7006417; Fri, 4 Oct 2002 16:00:04 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.3/8.12.3/Submit) id g94N04s2006416; Fri, 4 Oct 2002 16:00:04 -0700 Date: Fri, 4 Oct 2002 16:00:04 -0700 From: Brooks Davis To: Dima Dorfman Cc: arch@FreeBSD.ORG Subject: Re: fnmatch() in the kernel Message-ID: <20021004160004.A2051@Odin.AC.HMC.Edu> References: <20021004224006.GA304@trit.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20021004224006.GA304@trit.org>; from dima@trit.org on Fri, Oct 04, 2002 at 10:40:51PM +0000 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 04, 2002 at 10:40:51PM +0000, Dima Dorfman wrote: > The DEVFS rule subsystem has a need for glob-style pattern matching in > the kernel (so you can specify a pattern to describe which devices you > want your rule to match). To effect this, I would like to import > fnmatch(3) into the kernel. Would libkern be a good place for it? > Attached are the diff to libkern.h and the diff between the kernel > fnmatch.c and the userland fnmatch.c. If anybody has objections to > this or thinks it should go somewhere else, please speak up. This will also be useful for ipfw2 post if_xname. > On a procedural note, should I ask for a repo-copy of > lib/libc/gen/fnmatch.c to sys/libkern/fnmatch.c, or is this not > necessary in this case? (I think it is appropriate, but I don't > recall ever seeing something like this done.) That's what we did for strlc{at,py}. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --3V7upXqbjpZ4EhLz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9nh1zXY6L6fI4GtQRAp4OAJ0WVkVXhjqkC2y37gqSCytk+JqM7ACeNG3C ppD8spisrmQA6iUXuf6JUEk= =4fFo -----END PGP SIGNATURE----- --3V7upXqbjpZ4EhLz-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message