1IPC::SysV(3)          User Contributed Perl Documentation         IPC::SysV(3)
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_CREAT 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(3).
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(2).
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
46           shmdt(2).
47
48       memread( ADDR, VAR, POS, SIZE )
49           Reads SIZE bytes from a memory segment at ADDR starting at position
50           POS.  VAR must be a variable that will hold the data read. Returns
51           true if successful, or false if there is an error. memread() taints
52           the variable.
53
54       memwrite( ADDR, STRING, POS, SIZE )
55           Writes SIZE bytes from STRING to a memory segment at ADDR starting
56           at position POS. If STRING is too long, only SIZE bytes are used;
57           if STRING is too short, nulls are written to fill out SIZE bytes.
58           Returns true if successful, or false if there is an error.
59

SEE ALSO

61       IPC::Msg, IPC::Semaphore, IPC::SharedMem, ftok(3), shmat(2), shmdt(2)
62

AUTHORS

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