natPlainSocketImpl.cc (read, [...]): Formatting fixed.
2002-03-08 Adam Megacz <adam@xwt.org> * java/net/natPlainSocketImpl.cc (read, write, close): Formatting fixed. From-SVN: r50481
This commit is contained in:
parent
9445b81426
commit
0bf93ed48a
2 changed files with 12 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2002-03-09 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
|
||||||
|
|
||||||
* posix.cc (_Jv_platform_gettimeofday): Make sure result doesn't get
|
* posix.cc (_Jv_platform_gettimeofday): Make sure result doesn't get
|
||||||
|
|
|
@ -20,17 +20,20 @@ details. */
|
||||||
#undef MIN_PRIORITY
|
#undef MIN_PRIORITY
|
||||||
#undef FIONREAD
|
#undef FIONREAD
|
||||||
|
|
||||||
// stuff to make Win32 look POSIXy
|
// These functions make the Win32 socket API look more POSIXy
|
||||||
static inline int close(int s) {
|
static inline int
|
||||||
|
close(int s) {
|
||||||
return closesocket(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);
|
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);
|
return recv(s, (char*)buf, len, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue