From owner-freebsd-arch Sat Dec 22 21:25:13 2001 Delivered-To: freebsd-arch@freebsd.org Received: from citusc17.usc.edu (citusc17.usc.edu [128.125.38.177]) by hub.freebsd.org (Postfix) with ESMTP id E665F37B405 for ; Sat, 22 Dec 2001 21:25:10 -0800 (PST) Received: (from kris@localhost) by citusc17.usc.edu (8.11.6/8.11.4) id fBN5Or691318; Sat, 22 Dec 2001 21:24:53 -0800 (PST) (envelope-from kris) Date: Sat, 22 Dec 2001 21:24:53 -0800 From: Kris Kennaway To: Peter Wemm Cc: Yuri Karaban , freebsd-arch@FreeBSD.ORG Subject: Re: gnu getopt in libc Message-ID: <20011222212453.A91247@citusc17.usc.edu> References: <20011222132030.GA19596@sphinx.univ.kiev.ua> <20011222201930.B9DEF38CC@overcee.netplex.com.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011222201930.B9DEF38CC@overcee.netplex.com.au>; from peter@wemm.org on Sat, Dec 22, 2001 at 12:19:30PM -0800 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 --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 22, 2001 at 12:19:30PM -0800, Peter Wemm wrote: > Yuri Karaban wrote: > > gnu getopt supports long options and can reorder option keys > > so i can write: > > some_program -a -b -c file1 file2 -d -e -f > >=20 > > FreeBSD getopt in libc very simple it can recoginze only one letter > > arguments, does not support optional arguments and arguments to > > program may appear only at the beginning. > >=20 > > so why dont replace libc/stdlib/getopt.c by gnu version ? >=20 > 1) because it is nonstandard > 2) it is GPL contaminated which we cannot use in libc. NetBSD have a BSDL'ed getopt_long() in their libc. It's required for GNU tar longopt support in pax(1) - I have an almost complete port of both in my tree. Kris --AqsLC8rIMeq19msA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8JWqjWry0BWjoQKURAilQAKC2i9ZoLwYs1TFjq0ehNJTfLvlReACeLTgM wOrUSXOuRiS4FYT+yBWIQRI= =7TwO -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message