… | |
… | |
2069 | manpage for details). The following advice constants are |
2069 | manpage for details). The following advice constants are |
2070 | available: C<IO::AIO::MADV_NORMAL>, C<IO::AIO::MADV_SEQUENTIAL>, |
2070 | available: C<IO::AIO::MADV_NORMAL>, C<IO::AIO::MADV_SEQUENTIAL>, |
2071 | C<IO::AIO::MADV_RANDOM>, C<IO::AIO::MADV_WILLNEED>, C<IO::AIO::MADV_DONTNEED>, |
2071 | C<IO::AIO::MADV_RANDOM>, C<IO::AIO::MADV_WILLNEED>, C<IO::AIO::MADV_DONTNEED>, |
2072 | C<IO::AIO::MADV_FREE>. |
2072 | C<IO::AIO::MADV_FREE>. |
2073 | |
2073 | |
|
|
2074 | If C<$offset> is negative, counts from the end. If C<$length> is negative, |
|
|
2075 | the remaining length of the C<$scalar> is used. If possible, C<$length> |
|
|
2076 | will be reduced to fit into the C<$scalar>. |
|
|
2077 | |
2074 | On systems that do not implement C<posix_madvise>, this function returns |
2078 | On systems that do not implement C<posix_madvise>, this function returns |
2075 | ENOSYS, otherwise the return value of C<posix_madvise>. |
2079 | ENOSYS, otherwise the return value of C<posix_madvise>. |
2076 | |
2080 | |
2077 | =item IO::AIO::mprotect $scalar, $offset, $len, $protect |
2081 | =item IO::AIO::mprotect $scalar, $offset, $len, $protect |
2078 | |
2082 | |
2079 | Simply calls the C<mprotect> function on the preferably AIO::mmap'ed |
2083 | Simply calls the C<mprotect> function on the preferably AIO::mmap'ed |
2080 | $scalar (see its manpage for details). The following protect |
2084 | $scalar (see its manpage for details). The following protect |
2081 | constants are available: C<IO::AIO::PROT_NONE>, C<IO::AIO::PROT_READ>, |
2085 | constants are available: C<IO::AIO::PROT_NONE>, C<IO::AIO::PROT_READ>, |
2082 | C<IO::AIO::PROT_WRITE>, C<IO::AIO::PROT_EXEC>. |
2086 | C<IO::AIO::PROT_WRITE>, C<IO::AIO::PROT_EXEC>. |
|
|
2087 | |
|
|
2088 | If C<$offset> is negative, counts from the end. If C<$length> is negative, |
|
|
2089 | the remaining length of the C<$scalar> is used. If possible, C<$length> |
|
|
2090 | will be reduced to fit into the C<$scalar>. |
2083 | |
2091 | |
2084 | On systems that do not implement C<mprotect>, this function returns |
2092 | On systems that do not implement C<mprotect>, this function returns |
2085 | ENOSYS, otherwise the return value of C<mprotect>. |
2093 | ENOSYS, otherwise the return value of C<mprotect>. |
2086 | |
2094 | |
2087 | =item IO::AIO::mmap $scalar, $length, $prot, $flags, $fh[, $offset] |
2095 | =item IO::AIO::mmap $scalar, $length, $prot, $flags, $fh[, $offset] |