From owner-freebsd-current@FreeBSD.ORG Tue Apr 12 19:02:24 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C2C0B16A4CF for ; Tue, 12 Apr 2005 19:02:24 +0000 (GMT) Received: from smtp-relay.tamu.edu (smtp-relay.tamu.edu [165.91.143.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8644943D1F for ; Tue, 12 Apr 2005 19:02:21 +0000 (GMT) (envelope-from tyler@tamu.edu) Received: from [192.168.1.161] (evilbit.resnet.tamu.edu [128.194.4.186]) (authenticated bits=0) by smtp-relay.tamu.edu (8.12.10/8.12.10) with ESMTP id j3CJ2FM9039656 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Tue, 12 Apr 2005 14:02:19 -0500 (CDT) From: "R. Tyler Ballance" To: FreeBSD Current Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-EJHlE2ItK1iGs1avqBIo" Date: Tue, 12 Apr 2005 14:06:02 -0500 Message-Id: <1113332762.27362.29.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 Subject: strtonum(3) in FreeBSD? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2005 19:02:24 -0000 --=-EJHlE2ItK1iGs1avqBIo Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Quick, sort of, question. Is it worth it to bring strtonum(3) from OpenBSD into FreeBSD-CURRENT. I have the diffs if that's the case, I know that the newer packet filter code from OPENBSD_3_7 that mlaier@ and I are working on uses it in a few places (see: pflogd) but I'm not sure of the merits of bringing strtonum(3) into lib/libc/stdlib... In theory, it should be a better implementation of what atoi(3) and strtol(3) do, but as tg@(mirbsd.org) pointed out to the OpenBSD fellows and myself, it doesn't take hexadecimal values well... Somebody let me know, i've got diffs ready, sort of ;) (or let me know why it's a bad idea) -R. Tyler Ballance --=-EJHlE2ItK1iGs1avqBIo Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iQIVAwUAQlwcGIBeTbTGPYVBAQLz9w//Z+MVdPsFFwlYBKv5AwWhjI6RMWQ7k5pk Km+kF/ivnIJOEqudRvNevByArG9aTA3+PGwn5FNVhv3NiP66Xo0jLlSGPr6RZkip /oQHzMj1eo+/4XfmQp4VmuHDf5DWzkh6MgJYpAKbQpHVKkT83Mhsd9kpJ65zQijG NKwIOQT0LBRrTup9hXL886BTlb1t3+DIbMc0GN+EhQQ0Ar3d4KkmLnpX12UwDOeq MZk3ixcAFEAhWBWEl2FGSkyXgzRVx2FdnVL9gUZ52nJisGlI0qJSxjCggvTJaqlU czAfqPp7v1xv3PVsg3gIVyiUgXFMwKjdL/xKcD1cRi+8HWmMQ4/Tkr0B8YmXpMok V0J9YN+uY0jbiSKwCFEgYkr63I5s5DgGSHGwqLBPpDagrfa7BIJvcYza+mXpnxvu YNe+MjPIqF1WoWXGlXIopQ7nVWota6UVmvAoxrGOEdBRXosI/mmXKtiMqFVqnP8A d34QROs19RTVvcjTQkSD1su0PBcgYFjgdq59IyuQzlHCKL3vbk7NHoEenI0V5L9T Q3avUSn03M+Q5z4JRgNfxSI+cprPJHblDmRAzFAxjPmTbno3jB/Wm6z1E41Nv4UM lzfs4jPu3DU7XDzXg1lUR5Quuq+cuSU+00qZPngLb5tZHGB/b76wwQyaINueD+V/ YPseYNfZ8Bw= =DfA7 -----END PGP SIGNATURE----- --=-EJHlE2ItK1iGs1avqBIo--