From owner-freebsd-questions Tue Mar 11 18:09:53 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA02391 for questions-outgoing; Tue, 11 Mar 1997 18:09:53 -0800 (PST) Received: from daisy.snet.net (mail.snet.net [204.60.7.83]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA02385 for ; Tue, 11 Mar 1997 18:09:49 -0800 (PST) Received: from katya.snet.net (hrfr03-sh6-port71.snet.net [204.60.9.71]) by daisy.snet.net (8.8.5/8.8.5/SNET-1.5) with SMTP id VAA00691; Tue, 11 Mar 1997 21:09:36 -0500 (EST) Message-ID: <33261064.41C67EA6@snet.net> Date: Tue, 11 Mar 1997 21:09:40 -0500 From: "Jeffrey M. Metcalf" X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.1.5-RELEASE i386) MIME-Version: 1.0 Newsgroups: comp.unix.bsd.freebsd.misc CC: "Jeffrey M. Metcalf" , questions@freebsd.org Subject: Looking for getopt() source Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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. Thank You, JM -- Jeffrey M. Metcalf metcalf@snet.net