Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Dec 2001 21:24:53 -0800
From:      Kris Kennaway <kris@FreeBSD.ORG>
To:        Peter Wemm <peter@wemm.org>
Cc:        Yuri Karaban <ura@sphinx.univ.kiev.ua>, freebsd-arch@FreeBSD.ORG
Subject:   Re: gnu getopt in libc
Message-ID:  <20011222212453.A91247@citusc17.usc.edu>
In-Reply-To: <20011222201930.B9DEF38CC@overcee.netplex.com.au>; from peter@wemm.org on Sat, Dec 22, 2001 at 12:19:30PM -0800
References:  <20011222132030.GA19596@sphinx.univ.kiev.ua> <20011222201930.B9DEF38CC@overcee.netplex.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help

--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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011222212453.A91247>