From owner-freebsd-questions Wed Mar 12 03:20:44 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id DAA04201 for questions-outgoing; Wed, 12 Mar 1997 03:20:44 -0800 (PST) Received: from dg-rtp.dg.com (dg-rtp.rtp.dg.com [128.222.1.2]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id DAA04196 for ; Wed, 12 Mar 1997 03:20:41 -0800 (PST) Received: by dg-rtp.dg.com (5.4R3.10/dg-rtp-v02) id AA22415; Wed, 12 Mar 1997 06:20:08 -0500 Received: from ponds by dg-rtp.dg.com.rtp.dg.com; Wed, 12 Mar 1997 06:20 EST Received: from lakes.water.net (lakes [10.0.0.3]) by ponds.water.net (8.8.3/8.7.3) with ESMTP id FAA20024; Wed, 12 Mar 1997 05:58:15 -0500 (EST) Received: (from rivers@localhost) by lakes.water.net (8.8.3/8.6.9) id GAA25759; Wed, 12 Mar 1997 06:04:10 -0500 (EST) Date: Wed, 12 Mar 1997 06:04:10 -0500 (EST) From: Thomas David Rivers Message-Id: <199703121104.GAA25759@lakes.water.net> To: ponds!snet.net!metcalf Subject: Re: Looking for getopt() source Cc: ponds!ccmail.bms.com!Jeffrey_M._Metcalf, ponds!FreeBSD.ORG!questions Content-Type: text Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > Hello, > > I am presently trying to port some UNIX utilities to my DOS OS and would > find > my job much easier if I could get the source code for such nifty > utilities as > getopt(). I understand that it is part of the linker, but that doesn't > help > when the DOS C compilers don't understand it in their linkers. I have > the sources > or FreeBSD-2.1.0 on CDROM and have searched it for the getopt() source > code. I > imagine that it must be there somewhere, I just need to be told where. > All that > I have been able to find are function prototypes for getopt(), but not > its base > source code. I would also like to port the sources for warn, err, etc. Well - it's not "part of the linker" as much as part of the link step; you need to find some library to link with that defines this. Fortunately many such libraries exist, particularly for Windows95 and Win/NT. In particular, for "free-ish" offerings; we've had amazing good luck with the Cygnus effort (it's GPL'd) - see http://www.cygnus.com. - Dave Rivers -