… | |
… | |
343 | aio_open $pathname, $flags, $mode, $callback->($fh) |
343 | aio_open $pathname, $flags, $mode, $callback->($fh) |
344 | Asynchronously open or create a file and call the callback with a |
344 | Asynchronously open or create a file and call the callback with a |
345 | newly created filehandle for the file (or "undef" in case of an |
345 | newly created filehandle for the file (or "undef" in case of an |
346 | error). |
346 | error). |
347 | |
347 | |
348 | The pathname passed to "aio_open" must be absolute. See API NOTES, |
|
|
349 | above, for an explanation. |
|
|
350 | |
|
|
351 | The $flags argument is a bitmask. See the "Fcntl" module for a list. |
348 | The $flags argument is a bitmask. See the "Fcntl" module for a list. |
352 | They are the same as used by "sysopen". |
349 | They are the same as used by "sysopen". |
353 | |
350 | |
354 | Likewise, $mode specifies the mode of the newly created file, if it |
351 | Likewise, $mode specifies the mode of the newly created file, if it |
355 | didn't exist and "O_CREAT" has been given, just like perl's |
352 | didn't exist and "O_CREAT" has been given, just like perl's |
… | |
… | |
507 | aio_lstat $fh, $callback->($status) |
504 | aio_lstat $fh, $callback->($status) |
508 | Works almost exactly like perl's "stat" or "lstat" in void context. |
505 | Works almost exactly like perl's "stat" or "lstat" in void context. |
509 | The callback will be called after the stat and the results will be |
506 | The callback will be called after the stat and the results will be |
510 | available using "stat _" or "-s _" and other tests (with the |
507 | available using "stat _" or "-s _" and other tests (with the |
511 | exception of "-B" and "-T"). |
508 | exception of "-B" and "-T"). |
512 | |
|
|
513 | The pathname passed to "aio_stat" must be absolute. See API NOTES, |
|
|
514 | above, for an explanation. |
|
|
515 | |
509 | |
516 | Currently, the stats are always 64-bit-stats, i.e. instead of |
510 | Currently, the stats are always 64-bit-stats, i.e. instead of |
517 | returning an error when stat'ing a large file, the results will be |
511 | returning an error when stat'ing a large file, the results will be |
518 | silently truncated unless perl itself is compiled with large file |
512 | silently truncated unless perl itself is compiled with large file |
519 | support. |
513 | support. |