New addition to cygwin: recvmsg and sendmsg

Mark Bradshaw bradshaw@staff.crosswalk.com
Fri Jan 18 21:21:00 GMT 2002


In getting bind 9.2.0 to compile on cygwin I found I needed these functions.
The original source is from openbsd:
http://www.openbsd.org/cgi-bin/cvsweb/src/kerberosIV/src/lib/roken/recvmsg.c
?rev=1.1.1.1&content-type=text/x-cvsweb-markup

and

http://www.openbsd.org/cgi-bin/cvsweb/src/kerberosIV/src/lib/roken/sendmsg.c
?rev=1.1.1.1&content-type=text/x-cvsweb-markup

The license is free from the advert clause, so there should be no issues
there.  Both functions were modified slightly.   The return value was
changed to int, the internal calls to recvfrom and sendto where changed to
cygwin_recvfrom and cygwin_sendto respectively, and I added some explicit
type casting.  Other than that, it built OOTB.

To verify its operation I built a clean version of bind (with some minor
touchups to get around other issues) and was able to transmit DNS queries
correctly.  

Mark

====================

Changelog:
2002-01-19  Mark Bradshaw  <bradshaw@staff.crosswalk.com>

	* cygwin.din: added recvmsg and sendmsg
	* net.cc: added cygwin_recvmsg and cygwin_sendmsg
	* /usr/include/sys/socket.h: added recvmsg and sendmsg

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Changelog.txt
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020118/258ebea0/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: socket.h.diff
Type: application/octet-stream
Size: 732 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020118/258ebea0/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: net.cc.diff
Type: application/octet-stream
Size: 2408 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020118/258ebea0/attachment-0001.obj>


More information about the Cygwin-patches mailing list