… | |
… | |
2126 | Attempts to query or change the pipe buffer size. Obviously works only |
2126 | Attempts to query or change the pipe buffer size. Obviously works only |
2127 | on pipes, and currently works only on GNU/Linux systems, and fails with |
2127 | on pipes, and currently works only on GNU/Linux systems, and fails with |
2128 | C<-1>/C<ENOSYS> everywhere else. If anybody knows how to influence pipe buffer |
2128 | C<-1>/C<ENOSYS> everywhere else. If anybody knows how to influence pipe buffer |
2129 | size on other systems, drop me a note. |
2129 | size on other systems, drop me a note. |
2130 | |
2130 | |
|
|
2131 | =item ($rfh, $wfh) = IO::AIO::pipe2 [$flags] |
|
|
2132 | |
|
|
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 |
|
|
2135 | perl's built-in C<pipe> function and create a new pipe, and should work |
|
|
2136 | everywhere. |
|
|
2137 | |
|
|
2138 | 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 | |
|
|
2141 | On success, the read and write file handles are returned. |
|
|
2142 | |
|
|
2143 | On error, nothing will be returned. If the pipe2 syscall is missing and |
|
|
2144 | C<$flags> is non-zero, fails with C<ENOSYS>. |
|
|
2145 | |
|
|
2146 | Please refer to L<pipe2(2)> for more info on the C<$flags>, but at the |
|
|
2147 | time of this writing, C<IO::AIO::O_CLOEXEC>, C<IO::AIO::O_NONBLOCK> and |
|
|
2148 | C<IO::AIO::O_DIRECT> (Linux 3.4, for packet-based pipes) were supported. |
|
|
2149 | |
2131 | =back |
2150 | =back |
2132 | |
2151 | |
2133 | =cut |
2152 | =cut |
2134 | |
2153 | |
2135 | min_parallel 8; |
2154 | min_parallel 8; |