jdk/src/share/classes/sun/nio/ch/IOUtil.java
changeset 6520 0e7cf575332e
parent 6301 c90a67d75c9f
child 7668 d4a77089c587
--- a/jdk/src/share/classes/sun/nio/ch/IOUtil.java	Tue Aug 31 09:17:46 2010 -0700
+++ b/jdk/src/share/classes/sun/nio/ch/IOUtil.java	Wed Sep 01 09:45:08 2010 -0700
@@ -319,7 +319,12 @@
 
     static native boolean randomBytes(byte[] someBytes);
 
-    static native void initPipe(int[] fda, boolean blocking);
+    /**
+     * Returns two file descriptors for a pipe encoded in a long.
+     * The read end of the pipe is returned in the high 32 bits,
+     * while the write end is returned in the low 32 bits.
+     */
+    static native long makePipe(boolean blocking);
 
     static native boolean drain(int fd) throws IOException;