X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Sun, 16 May 2010 10:59:50 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: getlong()/getshort()/ns_get16()/ns_get32() Message-ID: <20100516145950.GA2430@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4BEF8E88 DOT 2040103 AT conus DOT info> <20100516063943 DOT GA6277 AT ednor DOT casa DOT cgf DOT cx> <4BEF97E7 DOT 6030505 AT conus DOT info> <20100516143306 DOT GB6277 AT ednor DOT casa DOT cgf DOT cx> <4BF00441 DOT 2010202 AT conus DOT info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BF00441.2010202@conus.info> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Sun, May 16, 2010 at 05:42:09PM +0300, Dennis Yurichev wrote: >>On Sun, May 16, 2010 at 09:59:51AM +0300, Dennis Yurichev wrote: >>>On 16-May-10 09:39, Christopher Faylor wrote: >>>> On Sun, May 16, 2010 at 09:19:52AM +0300, Dennis Yurichev wrote: >>>>> I have a software using getlong()/getshort() functions which are also >>>>> synonyms to ns_get32()/ns_get16(). But they are removed from cygwin? >>>> >>>> Removed? I don't see any sign of getlong/getshort on linux. That's >>>> what Cygwin tries to emulate. >>> >>>Take a look on /usr/include/arpa/nameser.h and nameser_compat.h in Ubuntu 9. >> >> % cat /etc/issue >> Ubuntu 9.10 \n \l >> >> % egrep 'getlong|getshort' /usr/include/arpa/nameser*.h >> % > >dennis AT ubuntu:~$ egrep -i 'getlong|getshort' /usr/include/arpa/nameser*.h >/usr/include/arpa/nameser_compat.h:#define GETSHORT NS_GET16 >/usr/include/arpa/nameser_compat.h:#define GETLONG NS_GET32 Ok, you've just succeeding in wasting my time: 1) If you were looking for something called GETSHORT, you should have used proper capitalization in the first place. Or, you should have at least, corrected yourself after the first message. 2) Why mention /usr/include/arpa/nameser.h if the definition is in nameser_compat.h? 3) On Cygwin: bash-3.2$ uname -a CYGWIN_NT-5.1 norton 1.7.5(0.227/5/3) 2010-05-07 17:00 i686 Cygwin bash-3.2$ egrep -i 'getlong|getshort' /usr/include/arpa/nameser_compat.h #define GETSHORT NS_GET16 #define GETLONG NS_GET32 cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple