ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/AIO.pm
(Generate patch)

Comparing IO-AIO/AIO.pm (file contents):
Revision 1.252 by root, Sat Jun 13 00:06:13 2015 UTC vs.
Revision 1.253 by root, Thu Jun 25 13:34:28 2015 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines