Packages / openSUSE Leap 16.0 / perl-Sys-Mmap

Package: perl-Sys-Mmap (0.200.0-bp160.1.12)

Uses mmap to map in a file as a Perl variable

The Sys::Mmap module uses the POSIX at https://en.wikipedia.org/wiki/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 sparse memory usage is handled optimally on most modern UNIX implementations. Using the 'new()' method provides a 'tie()''d interface to 'mmap()' that allows you to use the variable as a normal variable. If a filename is provided, the file is opened and mapped in. If the file is smaller than the length provided, the file is grown to that length. If no filename is provided, anonymous shared inheritable memory is used. Assigning to the variable will replace a section in the file corresponding to the length of the variable, leaving the remainder of the file intact and unmodified. Using 'substr()' allows you to access the file at an offset, and does not place any requirements on the length argument to 'substr()' or the length of the variable being inserted, provided it does not exceed the length of the memory region. This protects you from the pathological cases involved in using 'mmap()' directly, documented below. When calling 'mmap()' or 'hardwire()' directly, you need to be careful how you use the variable. Some programming constructs may create copies of a string which, while unimportant for smallish strings, are far less welcome if you're mapping in a file which is a few gigabytes big. If you use 'PROT_WRITE' and attempt to write to the file via the variable you need to be even more careful. One of the few ways in which you can safely write to the string in-place is by using 'substr()' as an lvalue and ensuring that the part of the string that you replace is exactly the same length. Other functions will allocate other storage for the variable, and it will no longer overlay the mapped in file. * Sys::Mmap->new( 'VARIABLE', 'LENGTH', 'OPTIONALFILENAME' ) Maps 'LENGTH' bytes of (the contents of) 'OPTIONALFILENAME' if 'OPTIONALFILENAME' is provided, otherwise uses anonymous, shared inheritable memory. This memory region is inherited by any 'fork()'ed children. 'VARIABLE' will now refer to the contents of that file. Any change to 'VARIABLE' will make an identical change to the file. If 'LENGTH' is zero and a file is specified, the current length of the file will be used. If 'LENGTH' is larger then the file, and 'OPTIONALFILENAME' is provided, the file is grown to that length before being mapped. This is the preferred interface, as it requires much less caution in handling the variable. 'VARIABLE' will be tied into the "Sys::Mmap" package, and 'mmap()' will be called for you. Assigning to 'VARIABLE' will overwrite the beginning of the file for a length of the value being assigned in. The rest of the file or memory region after that point will be left intact. You may use 'substr()' to assign at a given position: substr(VARIABLE, POSITION, LENGTH) = NEWVALUE * mmap(VARIABLE, LENGTH, PROTECTION, FLAGS, FILEHANDLE, OFFSET) Maps 'LENGTH' bytes of (the underlying contents of) 'FILEHANDLE' into your address space, starting at offset 'OFFSET' and makes 'VARIABLE' refer to that memory. The 'OFFSET' argument can be omitted in which case it defaults to zero. The 'LENGTH' argument can be zero in which case a stat is done on 'FILEHANDLE' and the size of the underlying file is used instead. The 'PROTECTION' argument should be some ORed combination of the constants 'PROT_READ', 'PROT_WRITE' and 'PROT_EXEC', or else 'PROT_NONE'. The constants 'PROT_EXEC' and 'PROT_NONE' are unlikely to be useful here but are included for completeness. The 'FLAGS' argument must include either 'MAP_SHARED' or 'MAP_PRIVATE' (the latter is unlikely to be useful here). If your platform supports it, you may also use 'MAP_ANON' or 'MAP_ANONYMOUS'. If your platform supplies 'MAP_FILE' as a non-zero constant (necessarily non-POSIX) then you should also include that in 'FLAGS'. POSIX.1b does not specify 'MAP_FILE' as a 'FLAG' argument and most if not all versions of Unix have 'MAP_FILE' as zero. mmap returns 'undef' on failure, and the address in memory where the variable was mapped to on success. * munmap(VARIABLE) Unmaps the part of your address space which was previously mapped in with a call to 'mmap(VARIABLE, ...)' and makes VARIABLE become undefined. munmap returns 1 on success and undef on failure. * hardwire(VARIABLE, ADDRESS, LENGTH) Specifies the address in memory of a variable, possibly within a region you've 'mmap()'ed another variable to. You must use the same precautions to keep the variable from being reallocated, and use 'substr()' with an exact length. If you 'munmap()' a region that a 'hardwire()'ed variable lives in, the 'hardwire()'ed variable will not automatically be 'undef'ed. You must do this manually. * Constants The Sys::Mmap module exports the following constants into your namespace: MAP_SHARED MAP_PRIVATE MAP_ANON MAP_ANONYMOUS MAP_FILE MAP_NORESERVE MAP_POPULATE MAP_HUGETLB MAP_HUGE_2MB MAP_HUGE_1GB PROT_EXEC PROT_NONE PROT_READ PROT_WRITE Of the constants beginning with 'MAP_', only 'MAP_SHARED' and 'MAP_PRIVATE' are defined in POSIX.1b and only 'MAP_SHARED' is likely to be useful.

Package information

Homepage
[https://metacpan.org/release/Sys-Mmap]
License
Artistic-1.0 OR GPL-1.0-or-later
Maintainer del pacchetto downstream
Sconosciuto: non segnalato nella fonte indicizzata
Pacchetto sorgente
[perl-Sys-Mmap]
Software project
[libsys-mmap-perl]

Versions and downloads for perl-Sys-Mmap

Version / releaseArchitecture / repositoryPackage sizeInstalled sizeFilesPublisher repository artifact
0.200.0-bp160.1.12leap-16.0 / ossaarch64openSUSE Leap 16.0 · OSS · multi-architecture38 KiB105 KiBlist of filesperl-Sys-Mmap-0.200.0-bp160.1.12.aarch64.rpm
0.200.0-bp160.1.12leap-16.0 / ossppc64leopenSUSE Leap 16.0 · OSS · multi-architecture39 KiB105 KiBlist of filesperl-Sys-Mmap-0.200.0-bp160.1.12.ppc64le.rpm
0.200.0-bp160.1.12leap-16.0 / osss390xopenSUSE Leap 16.0 · OSS · multi-architecture38 KiB53 KiBlist of filesperl-Sys-Mmap-0.200.0-bp160.1.12.s390x.rpm
0.200.0-bp160.1.12leap-16.0 / ossx86_64openSUSE Leap 16.0 · OSS · multi-architecture38 KiB57 KiBlist of filesperl-Sys-Mmap-0.200.0-bp160.1.12.x86_64.rpm
About these downloads

Ogni riga è metadato dell'indice pacchetti per una versione, architettura, suite e repository. Nomi, URL e dimensioni arrivano dalla fonte; un link è un punto di recupero mutabile, non una redistribuzione OpenFactory.

Dependencies and recommendations for perl-Sys-Mmap

  • dep: ld-linux-aarch64.so.1()(64bit)

    Package not available

  • dep: ld-linux-aarch64.so.1(GLIBC_2.17)(64bit)

    Package not available

  • dep: perl(:MODULE_COMPAT_5.42.0)

    Package not available

  • dep: libc.so.6(GLIBC_2.38)(64bit)

    Package not available

Percorsi file del pacchetto (27)

Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.

  • /usr/lib/perl5/vendor_perl/5.42.0/aarch64-linux-thread-multi/auto/Sys
  • /usr/lib/perl5/vendor_perl/5.42.0/aarch64-linux-thread-multi/auto/Sys/Mmap
  • /usr/lib/perl5/vendor_perl/5.42.0/aarch64-linux-thread-multi/auto/Sys/Mmap/Mmap.so
  • /usr/lib/perl5/vendor_perl/5.42.0/aarch64-linux-thread-multi/Sys
  • /usr/lib/perl5/vendor_perl/5.42.0/aarch64-linux-thread-multi/Sys/Mmap.pm
  • /usr/lib/perl5/vendor_perl/5.42.0/ppc64le-linux-thread-multi/auto/Sys
  • /usr/lib/perl5/vendor_perl/5.42.0/ppc64le-linux-thread-multi/auto/Sys/Mmap
  • /usr/lib/perl5/vendor_perl/5.42.0/ppc64le-linux-thread-multi/auto/Sys/Mmap/Mmap.so
  • /usr/lib/perl5/vendor_perl/5.42.0/ppc64le-linux-thread-multi/Sys
  • /usr/lib/perl5/vendor_perl/5.42.0/ppc64le-linux-thread-multi/Sys/Mmap.pm
  • /usr/lib/perl5/vendor_perl/5.42.0/s390x-linux-thread-multi/auto/Sys
  • /usr/lib/perl5/vendor_perl/5.42.0/s390x-linux-thread-multi/auto/Sys/Mmap
  • /usr/lib/perl5/vendor_perl/5.42.0/s390x-linux-thread-multi/auto/Sys/Mmap/Mmap.so
  • /usr/lib/perl5/vendor_perl/5.42.0/s390x-linux-thread-multi/Sys
  • /usr/lib/perl5/vendor_perl/5.42.0/s390x-linux-thread-multi/Sys/Mmap.pm
  • /usr/lib/perl5/vendor_perl/5.42.0/x86_64-linux-thread-multi/auto/Sys
  • /usr/lib/perl5/vendor_perl/5.42.0/x86_64-linux-thread-multi/auto/Sys/Mmap
  • /usr/lib/perl5/vendor_perl/5.42.0/x86_64-linux-thread-multi/auto/Sys/Mmap/Mmap.so
  • /usr/lib/perl5/vendor_perl/5.42.0/x86_64-linux-thread-multi/Sys
  • /usr/lib/perl5/vendor_perl/5.42.0/x86_64-linux-thread-multi/Sys/Mmap.pm
  • /usr/share/doc/packages/perl-Sys-Mmap
  • /usr/share/doc/packages/perl-Sys-Mmap/Changes
  • /usr/share/doc/packages/perl-Sys-Mmap/README
  • /usr/share/licenses/perl-Sys-Mmap
  • /usr/share/licenses/perl-Sys-Mmap/Artistic
  • /usr/share/licenses/perl-Sys-Mmap/Copying
  • /usr/share/man/man3/Sys::Mmap.3pm.gz

Field source: openSUSE Leap 16.0 OSS

Vulnerabilità note

Nessun avviso corrispondente nelle fonti monitorate.

Ultima sincronizzazione:

[Catalogo CVE]

Checksum

Repository signatures authenticate metadata. Artifact hashing is recorded separately. Neither establishes package safety.

0.200.0-bp160.1.12 / aarch64Osservato Sep 1, 2026sha512 37368d116157…c47e5330Impronta della fonte

Metadata observed; artifact bytes were not independently fetched or hashed by this catalog import. The digest below is source-reported.

Impronta della fonte (sha512): 37368d116157946e92586497206439f801851daaad75543b0f1518c44192cf60f7609272d5379689e1fa07ca432ac12e214a3ab651376075751f23d5c47e5330

Field source: openSUSE Leap 16.0 OSS

0.200.0-bp160.1.12 / ppc64leOsservato Sep 1, 2026sha512 ba1203b03586…e85e9f99Impronta della fonte

Metadata observed; artifact bytes were not independently fetched or hashed by this catalog import. The digest below is source-reported.

Impronta della fonte (sha512): ba1203b0358625689258666ee7d54ea18acf13c999963cdc7c5cbeb468cadee07e5fed61b18e07294fc059f7cd7ee919b0cd370e497d708afd83545ee85e9f99

Field source: openSUSE Leap 16.0 OSS

0.200.0-bp160.1.12 / s390xOsservato Sep 1, 2026sha512 75867b6f4614…44f81d5eImpronta della fonte

Metadata observed; artifact bytes were not independently fetched or hashed by this catalog import. The digest below is source-reported.

Impronta della fonte (sha512): 75867b6f46142c96c026f085f3b61f5b049e4d1e1c089e29871bf88a40b3630bdb915baeb672716070fe0a6f8840725f7c431927d5c2f6eae0a7080e44f81d5e

Field source: openSUSE Leap 16.0 OSS

0.200.0-bp160.1.12 / x86_64Osservato Sep 1, 2026sha512 69c4d7eec0c8…7a3f0dfeImpronta della fonte

Metadata observed; artifact bytes were not independently fetched or hashed by this catalog import. The digest below is source-reported.

Impronta della fonte (sha512): 69c4d7eec0c804bbdde25d31fa81e3677c3b95b3948798b50afc15360f50a0fd255c9ade273d907cfd7de3e3a3dc4da0825a1a4dc171be28cf38e0a07a3f0dfe

Field source: openSUSE Leap 16.0 OSS

Fonti

  • Authoritative source; repository metadata signature verified

    Prova della firma

    leap-16-0-oss-multiarch:271b36d440253edf9871ac0c100319fc7443d8f2d54b6b449a72e9414c51577c

    Repository-signature verification record
    Signed-object SHA-256
    271b36d440253edf9871ac0c100319fc7443d8f2d54b6b449a72e9414c51577c
    Signer fingerprint
    AD485664E901B867051AB15F35A2F86E29B700A4
    Keyring revision
    opensuse-project-signing-key.asc
    SHA-256 b5745739ebfb95b25b8e810f9bcb847fe750ccda598bd85f02f0e974599a6d7e
    Tool and policy
    gpgv (GnuPG) 2.4.9
    openfactory-software-catalog-signature-v1
    Verification time
    Sep 1, 2026
    Repository metadata hash linkage
    Result
    Recorded as verified; digest details unavailable

Usa questo pacchetto

OpenFactory può avviare questo sistema operativo in una macchina virtuale del browser, o iniziare una costruzione che include il nome nativo del pacchetto di questo record.