X-Spam-Check-By: sourceware.org Message-ID: <43E35857.7080506@byu.net> Date: Fri, 03 Feb 2006 06:19:19 -0700 From: Eric Blake Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: Amruta , cygwin AT cygwin DOT com Subject: Re: Driftnet for Windows References: <20060203074911 DOT 20250 DOT qmail AT webmail24 DOT rediffmail DOT com> In-Reply-To: <20060203074911.20250.qmail@webmail24.rediffmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Re-adding cygwin mailing list: http://cygwin.com/acronyms/#PPIOSPE Top-posting reformatted: http://cygwin.com/acronyms/#TOFU >> I am new to Cygwin. I have a very basic question. >> There is a tool Driftnet available only for Unix. I want to write it > for >> I Windows making a few improvements as a part of my Master's thesis. I >> am confused here, can cygwin provide me some files like netinet/tcp.h >> etc. available in Linux (which are used for coding driftnet) in > Windows? > > Yes, cygwin has . In fact, if you have source code that > compiles under Linux, it is often the case that the same source code will > compile under cygwin with minimal tweaking. > According to Amruta on 2/3/2006 12:49 AM: > But does that mean to run this software everybody will have to download > cygwin on their machine? If you compile against cygwin, yes. There are other projects out there, such as mingw, which allow native compilation that does not depend on cygwin1.dll (in fact, cygwin's gcc comes with a -mno-cygwin flag to select mingw compilation). However, mingw cannot support as many headers as cygwin, because it is cygwin doing the translation from POSIX semantics to windows. Discussing mingw compilation is somewhat off-topic on this list, as it more properly belongs on the mingw list. > Is there any way you can simply keep the required files (say in my case > netinet/tcp.h) on your system and don't need to keep entire cygwin package. No - headers are provided by the system for a reason - compiling against headers means that your program must run on the system that provided those headers. Windows doesn't provide because Microsoft doesn't believe in following standards such as POSIX. Your choices are to do some heavy porting to what windows actually does provide, or else to let cygwin do the porting and introduce a dependency on cygwin. > Basically it doesn't make sense if people have to install 100s of MB of > files for running the tool. 100s of MB? I beg to differ. A minimal cygwin installation is just a few megabytes; cygwin1.dll itself is currently 1.8 meg (actually, I haven't done a minimal install lately to see how much really IS installed, maybe the set of Base packages in cygwin has grown to 100 megabytes by now). But there is no requirement that you must download every single package provided at cygwin.com to use cygwin. - -- Life is short - so eat dessert first! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFD41hW84KuGfSFAYARAofyAKChjBtqWEyCXUvn+qPyRNvVwTE3wACgzwTe ikvK4f2rwYx7WpdRDUGe6uU= =CfBI -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/