Filewatcher File Search File Search
Content Search
» » » » »


module for using POSIX mmap

The Mmap module uses the POSIX mmap call to map in a file as a Perl variable. Memory access by mmap may be shared between threads or forked processes, and may be a disc file that has been mapped into memory. Sys::Mmap depends on your operating system supporting UNIX or POSIX.1b mmap, of course.

Note that PerlIO now defines a :mmap tag and presents mmap'd files as regular files, if that is your cup of joe.

Several processes may share one copy of the file or string, saving memory, and concurrently making changes to portions of the file or string. When not used with a file, it is an alternative to SysV shared memory. Unlike SysV shared memory, there are no arbitrary size limits on the shared memory area, and sparce memory usage is handled optimally on most modern UNIX implementations.

Package version:0.16-1+b1


Mmap(3pm)        User Contributed Perl Documentation       Mmap(3pm)

       Sys::Mmap - uses mmap to map in a file as a Perl variable

           use Sys::Mmap;

           new Mmap $str, 8192, '' or die $!;
           new Mmap $var, 8192 or die $!;

           mmap($foo, 0, PROT_READ, MAP_SHARED, FILEHANDLE) or die "mmap: $!";
           @tags = $foo =~ /<(.*?)>/g;



libsys-mmap-perl (0.16-1+b1) sid; urgency=low

  * Binary-only non-maintainer upload for sparc; no source changes.
  * Rebuild against perl 5.14

 -- sparc Build Daemon (lebrun) <>  Wed, 16 Nov 2011 21:00:21 +0000

libsys-mmap-perl (0.16-1) unstable; urgency=low

  * Team upload

  [ Salvatore Bonaccorso ]
  * debian/copyright: Replace DEP5 Format-Specification


Todd Rinaldo August 19 2011 v0.16
* Testing looks stable on all major perl versions and distros.
* Release with only version bump

Todd Rinaldo August 18 2011 v0.15_02
* Pause blocked.

Todd Rinaldo August 18 2011 v0.15_01
* Patch from RT 70333 (Syohei YOSHIDA) to make error testing locale neutral
* Add test for GLOB mmap
* Make temp file larger for testing additional cases.

Todd Rinaldo April 4 


Upstream-Name: Sys-Mmap
Upstream-Contact: Scott Walters <sw

Browse inside libsys-mmap-perl_0.16-1+b1_sparc.deb

         [DIR]DEBIAN/ (2)  65535+ mirrors
         [DIR]usr/ (2)  65535+ mirrors

Download libsys-mmap-perl_0.16-1+b1_sparc.deb

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2017