shmwrite - perldoc.perl.org

Perl Programming Documentation
Download Perl
Explore

Manual

- Overview
- Tutorials
- FAQs
- History / Changes
- License

Reference

- Language
- Functions
- Operators
- Special Variables
- Pragmas
- Utilities
- Internals
- Platform Specific

Modules

- A • B • C • D • E
- F • G • H • I • L
- M • N • O • P • S
- T • U • X

Tools

- Preferences

# shmwrite

Perl 5 version 12.2 documentation
Go to top
Show recent pages
Recently read

# shmwrite

Perl functions A-Z | Perl functions by category | The 'perlfunc' manpage

- shmwrite ID,STRING,POS,SIZE

  Reads or writes the System V shared memory segment ID starting at position POS for size SIZE by attaching to it, copying in/out, and detaching from it. When reading, VAR must be a variable that will hold the data read. When writing, if STRING is too long, only SIZE bytes are used; if STRING is too short, nulls are written to fill out SIZE bytes. Return true if successful, or false if there is an error. shmread() taints the variable. See also SysV IPC in perlipc, `IPC::SysV` documentation, and the `IPC::Shareable` module from CPAN.