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.268 by root, Tue May 30 22:45:52 2017 UTC vs.
Revision 1.269 by root, Tue Jun 6 04:29:35 2017 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines