WIN-25.1: natPlainSocketImpl.cc [UPDATED]
Adam Megacz
patches@lists.megacz.com
Sat Mar 9 09:24:00 GMT 2002
Tom Tromey <tromey@redhat.com> writes:
> See the GNU standards for more details.
> * Note caps and period in comment
> * Note newline differences
Formatting fix committed to branch and trunk as shown below.
- a
2002-03-08 Adam Megacz <adam@xwt.org>
* java/net/natPlainSocketImpl.cc (read, write, close): Formatting
fixed.
Index: natPlainSocketImpl.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/net/natPlainSocketImpl.cc,v
retrieving revision 1.30.2.2
diff -u -r1.30.2.2 natPlainSocketImpl.cc
--- natPlainSocketImpl.cc 2002/03/08 01:45:59 1.30.2.2
+++ natPlainSocketImpl.cc 2002/03/09 07:53:45
@@ -20,17 +20,20 @@
#undef MIN_PRIORITY
#undef FIONREAD
-// stuff to make Win32 look POSIXy
-static inline int close(int s) {
+// These functions make the Win32 socket API look more POSIXy
+static inline int
+close(int s) {
return closesocket(s);
}
-static inline int write(int s, void *buf, int len)
+static inline int
+write(int s, void *buf, int len)
{
return send(s, (char*)buf, len, 0);
}
-static inline int read(int s, void *buf, int len)
+static inline int
+read(int s, void *buf, int len)
{
return recv(s, (char*)buf, len, 0);
}
More information about the Java-patches
mailing list