… | |
… | |
2130 | |
2130 | |
2131 | =item ($rfh, $wfh) = IO::AIO::pipe2 [$flags] |
2131 | =item ($rfh, $wfh) = IO::AIO::pipe2 [$flags] |
2132 | |
2132 | |
2133 | This is a direct interface to the Linux L<pipe2(2)> system call. If |
2133 | This is a direct interface to the Linux L<pipe2(2)> system call. If |
2134 | C<$flags> is missing or C<0>, then this should be the same as a call to |
2134 | C<$flags> is missing or C<0>, then this should be the same as a call to |
2135 | perl's built-in C<pipe> function and create a new pipe, and should work |
2135 | perl's built-in C<pipe> function and create a new pipe, and works on |
2136 | everywhere. |
2136 | systems that lack the pipe2 syscall. On win32, this case invokes C<_pipe |
|
|
2137 | (..., 4096, O_BINARY)>. |
2137 | |
2138 | |
2138 | If C<$flags> is non-zero, it tries to invoke the pipe2 system call with |
2139 | If C<$flags> is non-zero, it tries to invoke the pipe2 system call with |
2139 | the given flags (Linux 2.6.27, glibc 2.9). |
2140 | the given flags (Linux 2.6.27, glibc 2.9). |
2140 | |
2141 | |
2141 | On success, the read and write file handles are returned. |
2142 | On success, the read and write file handles are returned. |