IPC::SysV (3)
Leading comments
Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) Standard preamble: ========================================================================
NAME
IPC::SysV - System V IPC constants and system callsSYNOPSIS
use IPC::SysV qw(IPC_STAT IPC_PRIVATE);
DESCRIPTION
"IPC::SysV" defines and conditionally exports all the constants defined in your system include files which are needed by the SysVIPC
calls. Common ones include
IPC_CREAT IPC_EXCL IPC_NOWAIT IPC_PRIVATE IPC_RMID IPC_SET IPC_STAT GETVAL SETVAL GETPID GETNCNT GETZCNT GETALL SETALL SEM_A SEM_R SEM_UNDO SHM_RDONLY SHM_RND SHMLBA
and auxiliary ones
S_IRUSR S_IWUSR S_IRWXU S_IRGRP S_IWGRP S_IRWXG S_IROTH S_IWOTH S_IRWXO
but your system might have more.
- ftok( PATH)
- ftok( PATH, ID)
-
Return a key based on PATHandID,which can be used as a key for "msgget", "semget" and "shmget". See ftok.
If
IDis omitted, it defaults to 1. If a single character is given forID,the numeric value of that character is used. - shmat( ID, ADDR, FLAG)
-
Attach the shared memory segment identified by IDto the address space of the calling process. See shmat.ADDRshould be "undef" unless you really know what you're doing.
- shmdt( ADDR)
-
Detach the shared memory segment located at the address specified
by ADDRfrom the address space of the calling process. See shmdt.
- memread( ADDR, VAR, POS, SIZE)
-
Reads SIZEbytes from a memory segment atADDRstarting at positionPOS. VARmust be a variable that will hold the data read. Returns true if successful, or false if there is an error. memread() taints the variable.
- memwrite( ADDR, STRING, POS, SIZE)
-
Writes SIZEbytes fromSTRINGto a memory segment atADDRstarting at positionPOS.IfSTRINGis too long, onlySIZEbytes are used; ifSTRINGis too short, nulls are written to fill outSIZEbytes. Returns true if successful, or false if there is an error.
SEE ALSO
IPC::Msg, IPC::Semaphore, IPC::SharedMem, ftok, shmat, shmdtAUTHORS
Graham Barr <gbarr@pobox.com>, Jarkko Hietaniemi <jhi@iki.fi>, Marcus Holland-Moritz <mhx@cpan.org>COPYRIGHT
Version 2.x, Copyright (C) 2007-2013, Marcus Holland-Moritz.Version 1.x, Copyright (c) 1997, Graham Barr.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.