diff options
author | Mohan Embar <gnustuff@thisiscool.com> | 2003-10-17 18:44:42 +0000 |
---|---|---|
committer | Mohan Embar <membar@gcc.gnu.org> | 2003-10-17 18:44:42 +0000 |
commit | ef050c9e232a0473f52f02dfbd84f8252fa888c5 (patch) | |
tree | 2b0febcb84c6aa93d2e8ca245c90dcfe9dad78af /libjava/win32.cc | |
parent | 7260e9a0734fb94453101b05778e71d1d7995c84 (diff) | |
download | gcc-ef050c9e232a0473f52f02dfbd84f8252fa888c5.zip gcc-ef050c9e232a0473f52f02dfbd84f8252fa888c5.tar.gz gcc-ef050c9e232a0473f52f02dfbd84f8252fa888c5.tar.bz2 |
win32.cc: (_Jv_pipe) Implemented.
* win32.cc: (_Jv_pipe) Implemented.
* gnu/java/nio/natPipeImpl.cc: (nativeInit) Use
_Jv_pipe instead of ::pipe.
* include/posix.h: (_Jv_pipe) New inline.
* include/win32.h: (_Jv_pipe) New declaration.
From-SVN: r72616
Diffstat (limited to 'libjava/win32.cc')
-rw-r--r-- | libjava/win32.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libjava/win32.cc b/libjava/win32.cc index abe768a..e44b7b2 100644 --- a/libjava/win32.cc +++ b/libjava/win32.cc @@ -12,6 +12,7 @@ details. */ #include <platform.h> #include <sys/timeb.h> #include <stdlib.h> +#include <fcntl.h> #include <java/lang/ArithmeticException.h> #include <java/lang/UnsupportedOperationException.h> @@ -342,3 +343,9 @@ _Jv_select (int n, fd_set *readfds, fd_set *writefds, } return r; } + +int +_Jv_pipe (int filedes[2]) +{ + return _pipe (filedes, 4096, _O_BINARY); +} |