From owner-freebsd-arch Sun Dec 23 6: 1:19 2001 Delivered-To: freebsd-arch@freebsd.org Received: from titanic.uninet.kiev.ua (titanic.uninet.kiev.ua [193.125.78.35]) by hub.freebsd.org (Postfix) with ESMTP id 4241B37B41A; Sun, 23 Dec 2001 06:01:12 -0800 (PST) Received: (from uucp@localhost) by titanic.uninet.kiev.ua (8.11.1/8.11.1) with UUCP id fBNE18730948; Sun, 23 Dec 2001 16:01:08 +0200 (EET) (envelope-from ura@sphinx.univ.kiev.ua) Received: by sphinx.univ.kiev.ua (Postfix, from userid 1001) id 6723B59201; Sun, 23 Dec 2001 16:01:47 +0200 (EET) Date: Sun, 23 Dec 2001 16:01:47 +0200 From: Yuri Karaban To: Kris Kennaway Cc: freebsd-arch@FreeBSD.ORG Subject: Re: gnu getopt in libc Message-ID: <20011223140147.GA35333@sphinx.univ.kiev.ua> Mail-Followup-To: Kris Kennaway , freebsd-arch@FreeBSD.ORG References: <20011222132030.GA19596@sphinx.univ.kiev.ua> <20011222201930.B9DEF38CC@overcee.netplex.com.au> <20011222212453.A91247@citusc17.usc.edu> <20011223094407.GA31337@sphinx.univ.kiev.ua> <20011223052508.A99762@citusc17.usc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011223052508.A99762@citusc17.usc.edu> User-Agent: Mutt/1.3.24i 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 On Sun, Dec 23, 2001 at 05:25:08AM -0800, Kris Kennaway wrote: > > > 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. > > Does the NetBSD getopt support the optional arguments and options reorder ? > > I don't know off-hand..I'm not even sure what you mean :) optional arguments is like: %> some_prog -n 10 and %> some_prog -n are both valid and options reorder is: %> some_prog -a -b -c hello world -d -e f for getopt caller is the same as %> some_prog -a -b -c -d -e -f hello world To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message