This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: getlong()/getshort()/ns_get16()/ns_get32()


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@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]