… | |
… | |
1908 | ENOSYS, otherwise the return value of C<mprotect>. |
1908 | ENOSYS, otherwise the return value of C<mprotect>. |
1909 | |
1909 | |
1910 | =item IO::AIO::mmap $scalar, $length, $prot, $flags, $fh[, $offset] |
1910 | =item IO::AIO::mmap $scalar, $length, $prot, $flags, $fh[, $offset] |
1911 | |
1911 | |
1912 | Memory-maps a file (or anonymous memory range) and attaches it to the |
1912 | Memory-maps a file (or anonymous memory range) and attaches it to the |
1913 | given C<$scalar>, which will act like a string scalar. |
1913 | given C<$scalar>, which will act like a string scalar. Returns true on |
|
|
1914 | success, and false otherwise. |
1914 | |
1915 | |
1915 | The only operations allowed on the scalar are C<substr>/C<vec> that don't |
1916 | The only operations allowed on the scalar are C<substr>/C<vec> that don't |
1916 | change the string length, and most read-only operations such as copying it |
1917 | change the string length, and most read-only operations such as copying it |
1917 | or searching it with regexes and so on. |
1918 | or searching it with regexes and so on. |
1918 | |
1919 | |