… | |
… | |
127 | =item aio_open $pathname, $flags, $mode, $callback |
127 | =item aio_open $pathname, $flags, $mode, $callback |
128 | |
128 | |
129 | Asynchronously open or create a file and call the callback with the |
129 | Asynchronously open or create a file and call the callback with the |
130 | filedescriptor (NOT a perl filehandle, sorry for that, but watch out, this |
130 | filedescriptor (NOT a perl filehandle, sorry for that, but watch out, this |
131 | might change in the future). |
131 | might change in the future). |
|
|
132 | |
|
|
133 | The pathname passed to C<aio_open> must be absolute. See API NOTES, above, |
|
|
134 | for an explanation. |
132 | |
135 | |
133 | The C<$mode> argument is a bitmask. See the C<Fcntl> module for a |
136 | The C<$mode> argument is a bitmask. See the C<Fcntl> module for a |
134 | list. They are the same as used in C<sysopen>. |
137 | list. They are the same as used in C<sysopen>. |
135 | |
138 | |
136 | Example: |
139 | Example: |
… | |
… | |
237 | |
240 | |
238 | - aio_open gives a fd, but all other functions expect a perl filehandle. |
241 | - aio_open gives a fd, but all other functions expect a perl filehandle. |
239 | |
242 | |
240 | =head1 SEE ALSO |
243 | =head1 SEE ALSO |
241 | |
244 | |
242 | L<Coro>. |
245 | L<Coro>, L<IO::AIO>. |
243 | |
246 | |
244 | =head1 AUTHOR |
247 | =head1 AUTHOR |
245 | |
248 | |
246 | Marc Lehmann <schmorp@schmorp.de> |
249 | Marc Lehmann <schmorp@schmorp.de> |
247 | http://home.schmorp.de/ |
250 | http://home.schmorp.de/ |