WIN-25.1: natPlainSocketImpl.cc [UPDATED]
Tom Tromey
tromey@redhat.com
Thu Mar 7 23:17:00 GMT 2002
>>>>> "Adam" == Adam Megacz <patches@lists.megacz.com> writes:
Adam> * java/net/natPlainSocketImpl.cc: Changed USE_WINSOCK to
Adam> WIN32, and added thunks for read(), write(), and close().
Adam> * java/net/natPlainSocketImpl.cc (accept, read, read):
Adam> Disabled timeouts on WIN32 pending discussion.
Adam> +// stuff to make Win32 look POSIXy
Adam> +static inline int close(int s) {
Adam> + return closesocket(s);
Adam> +}
Functions are formatted like this:
// Stuff to make Win32 look POSIXy.
static inline int
close(int s)
{
return closesocket(s);
}
See the GNU standards for more details.
* Note caps and period in comment
* Note newline differences
Thanks,
Tom
More information about the Java-patches
mailing list