This manual page is for Mac OS X version 10.6

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



IPC::SysV(3pm)                        Perl Programmers Reference Guide                        IPC::SysV(3pm)



NAME
       IPC::SysV - System V IPC constants and system calls

SYNOPSIS
         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 SysV IPC calls.  Common ones include

         IPC_CREATE 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 PATH and ID, which can be used as a key for "msgget", "semget" and
           "shmget". See ftok.

           If ID is omitted, it defaults to 1. If a single character is given for ID, the numeric value of
           that character is used.

       shmat( ID, ADDR, FLAG )
           Attach the shared memory segment identified by ID to the address space of the calling process.
           See shmat.

           ADDR should be "undef" unless you really know what you're doing.

       shmdt( ADDR )
           Detach the shared memory segment located at the address specified by ADDR from the address space
           of the calling process. See shmdt.

       memread( ADDR, VAR, POS, SIZE )
           Reads SIZE bytes from a memory segment at ADDR starting at position POS.  VAR must be a variable
           that will hold the data read. Returns true if successful, or false if there is an error. mem-read() memread()
           read() taints the variable.

       memwrite( ADDR, STRING, POS, SIZE )
           Writes SIZE bytes from STRING to a memory segment at ADDR starting at position POS. If STRING is
           too long, only SIZE bytes are used; if STRING is too short, nulls are written to fill out SIZE
           bytes. Returns true if successful, or false if there is an error.

SEE ALSO
       IPC::Msg, IPC::Semaphore, IPC::SharedMem, ftok, shmat, shmdt

AUTHORS
       Graham Barr <[email protected]>, Jarkko Hietaniemi <[email protected]>, Marcus Holland-Moritz <[email protected]>

COPYRIGHT
       Version 2.x, Copyright (C) 2007, 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.



perl v5.8.9                                      2001-09-21                                   IPC::SysV(3pm)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation to the Perl project. (See perlbug(1) for submission instructions.)
Bug reports
Report bugs in the functionality of the described tool or API to Apple through Bug Reporter and to the Perl project using perlbug(1).
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.