mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-25 22:04:07 +08:00
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
@ -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>
|
||||
|
||||
* posix.cc (_Jv_platform_gettimeofday): Make sure result doesn't get
|
||||
|
@ -20,17 +20,20 @@ details. */
|
||||
#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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user