From owner-freebsd-questions Tue Mar 11 20:42:49 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA14781 for questions-outgoing; Tue, 11 Mar 1997 20:42:49 -0800 (PST) Received: from hod.tera.com (hod.tera.com [206.215.142.67]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA14776 for ; Tue, 11 Mar 1997 20:42:43 -0800 (PST) Received: from athena.tera.com (athena.tera.com [206.215.142.62]) by hod.tera.com (8.7.5/8.7.3) with ESMTP id UAA08509; Tue, 11 Mar 1997 20:42:10 -0800 (PST) From: Gary Kline Received: (from kline@localhost) by athena.tera.com (8.7.5/8.7.3) id UAA14123; Tue, 11 Mar 1997 20:42:09 -0800 (PST) Message-Id: <199703120442.UAA14123@athena.tera.com> Subject: Re: Looking for getopt() source In-Reply-To: <33261064.41C67EA6@snet.net> from "Jeffrey M. Metcalf" at "Mar 11, 97 09:09:40 pm" To: metcalf@snet.net (Jeffrey M. Metcalf) Date: Tue, 11 Mar 1997 20:42:09 -0800 (PST) Cc: Jeffrey_M._Metcalf@ccmail.bms.com, questions@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL23 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk According to Jeffrey M. Metcalf: > 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. > The functions you are searching for are in the library. /usr/src/lib/* or /usr/src/lib/libc/* getopt() is in libc/stdlib. gary kline