Date: Fri, 4 Oct 2002 16:00:04 -0700 From: Brooks Davis <brooks@one-eyed-alien.net> To: Dima Dorfman <dima@trit.org> Cc: arch@FreeBSD.ORG Subject: Re: fnmatch() in the kernel Message-ID: <20021004160004.A2051@Odin.AC.HMC.Edu> In-Reply-To: <20021004224006.GA304@trit.org>; from dima@trit.org on Fri, Oct 04, 2002 at 10:40:51PM %2B0000 References: <20021004224006.GA304@trit.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021004160004.A2051>