… | |
… | |
394 | following POSIX and non-POSIX constants are available (missing ones on |
394 | following POSIX and non-POSIX constants are available (missing ones on |
395 | your system are, as usual, C<0>): |
395 | your system are, as usual, C<0>): |
396 | |
396 | |
397 | C<O_ASYNC>, C<O_DIRECT>, C<O_NOATIME>, C<O_CLOEXEC>, C<O_NOCTTY>, C<O_NOFOLLOW>, |
397 | C<O_ASYNC>, C<O_DIRECT>, C<O_NOATIME>, C<O_CLOEXEC>, C<O_NOCTTY>, C<O_NOFOLLOW>, |
398 | C<O_NONBLOCK>, C<O_EXEC>, C<O_SEARCH>, C<O_DIRECTORY>, C<O_DSYNC>, |
398 | C<O_NONBLOCK>, C<O_EXEC>, C<O_SEARCH>, C<O_DIRECTORY>, C<O_DSYNC>, |
399 | C<O_RSYNC>, C<O_SYNC> and C<O_TTY_INIT>. |
399 | C<O_RSYNC>, C<O_SYNC>, C<O_PATH>, C<O_TMPFILE>, and C<O_TTY_INIT>. |
400 | |
400 | |
401 | |
401 | |
402 | =item aio_close $fh, $callback->($status) |
402 | =item aio_close $fh, $callback->($status) |
403 | |
403 | |
404 | Asynchronously close a file and call the callback with the result |
404 | Asynchronously close a file and call the callback with the result |
… | |
… | |
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. |