+2002-03-08 Adam Megacz <adam@xwt.org>
+
+ * java/net/natPlainSocketImpl.cc (read, write, close): Formatting
+ fixed.
+
2002-03-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* posix.cc (_Jv_platform_gettimeofday): Make sure result doesn't get
#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);
}