aboutsummaryrefslogtreecommitdiff
path: root/libjava/include/posix.h
diff options
context:
space:
mode:
authorMohan Embar <gnustuff@thisiscool.com>2003-10-17 18:44:42 +0000
committerMohan Embar <membar@gcc.gnu.org>2003-10-17 18:44:42 +0000
commitef050c9e232a0473f52f02dfbd84f8252fa888c5 (patch)
tree2b0febcb84c6aa93d2e8ca245c90dcfe9dad78af /libjava/include/posix.h
parent7260e9a0734fb94453101b05778e71d1d7995c84 (diff)
downloadgcc-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/include/posix.h')
-rw-r--r--libjava/include/posix.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libjava/include/posix.h b/libjava/include/posix.h
index 2c6054e..c8cd5e2 100644
--- a/libjava/include/posix.h
+++ b/libjava/include/posix.h
@@ -178,4 +178,11 @@ _Jv_read(int s, void *buf, int len)
#endif /* DISABLE_JAVA_NET */
+// Wraps ::pipe
+static inline int
+_Jv_pipe (int filedes[2])
+{
+ return ::pipe (filedes);
+}
+
#endif /* __JV_POSIX_H__ */