diff options
author | membar <membar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-17 18:44:42 +0000 |
---|---|---|
committer | membar <membar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-17 18:44:42 +0000 |
commit | 03836f4388838829b41e751209ac9bd6e3c97919 (patch) | |
tree | 2b0febcb84c6aa93d2e8ca245c90dcfe9dad78af /libjava/win32.cc | |
parent | 0c7495238772587a73f067b61921ce3292e9163e (diff) | |
download | gcc-03836f4388838829b41e751209ac9bd6e3c97919.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72616 138bc75d-0d04-0410-961f-82ee72b054a4
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 abe768ae5bd..e44b7b28729 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); +} |