1IPC::SysV(3pm)         Perl Programmers Reference Guide         IPC::SysV(3pm)
2
3
4

NAME

6       IPC::SysV - System V IPC constants and system calls
7

SYNOPSIS

9         use IPC::SysV qw(IPC_STAT IPC_PRIVATE);
10

DESCRIPTION

12       "IPC::SysV" defines and conditionally exports all the constants defined
13       in your system include files which are needed by the SysV IPC calls.
14       Common ones include
15
16         IPC_CREATE IPC_EXCL IPC_NOWAIT IPC_PRIVATE IPC_RMID IPC_SET IPC_STAT
17         GETVAL SETVAL GETPID GETNCNT GETZCNT GETALL SETALL
18         SEM_A SEM_R SEM_UNDO
19         SHM_RDONLY SHM_RND SHMLBA
20
21       and auxiliary ones
22
23         S_IRUSR S_IWUSR S_IRWXU
24         S_IRGRP S_IWGRP S_IRWXG
25         S_IROTH S_IWOTH S_IRWXO
26
27       but your system might have more.
28
29       ftok( PATH )
30       ftok( PATH, ID )
31           Return a key based on PATH and ID, which can be used as a key for
32           "msgget", "semget" and "shmget". See ftok.
33
34           If ID is omitted, it defaults to 1. If a single character is given
35           for ID, the numeric value of that character is used.
36
37       shmat( ID, ADDR, FLAG )
38           Attach the shared memory segment identified by ID to the address
39           space of the calling process. See shmat.
40
41           ADDR should be "undef" unless you really know what you're doing.
42
43       shmdt( ADDR )
44           Detach the shared memory segment located at the address specified
45           by ADDR from the address space of the calling process. See shmdt.
46
47       memread( ADDR, VAR, POS, SIZE )
48           Reads SIZE bytes from a memory segment at ADDR starting at position
49           POS.  VAR must be a variable that will hold the data read. Returns
50           true if successful, or false if there is an error. memread() taints
51           the variable.
52
53       memwrite( ADDR, STRING, POS, SIZE )
54           Writes SIZE bytes from STRING to a memory segment at ADDR starting
55           at position POS. If STRING is too long, only SIZE bytes are used;
56           if STRING is too short, nulls are written to fill out SIZE bytes.
57           Returns true if successful, or false if there is an error.
58

SEE ALSO

60       IPC::Msg, IPC::Semaphore, IPC::SharedMem, ftok, shmat, shmdt
61

AUTHORS

63       Graham Barr <gbarr@pobox.com>, Jarkko Hietaniemi <jhi@iki.fi>, Marcus
64       Holland-Moritz <mhx@cpan.org>
65
67       Version 2.x, Copyright (C) 2007, Marcus Holland-Moritz.
68
69       Version 1.x, Copyright (c) 1997, Graham Barr.
70
71       This program is free software; you can redistribute it and/or modify it
72       under the same terms as Perl itself.
73
74
75
76perl v5.10.1                      2009-04-18                    IPC::SysV(3pm)
Impressum