Programming Perl

Programming PerlSearch this book
Previous: 3.2.144 shmctlChapter 3
Functions
Next: 3.2.146 shmread
 

3.2.145 shmget

shmget KEY, SIZE, FLAGS

This function calls the System V IPC system call, shmget(2). The function returns the shared memory segment ID, or the undefined value if there is an error. On error, it puts the error code into $!. Before calling, you should say:

require "ipc.ph";
require "shm.ph";

This function is available only on machines supporting System V IPC.


Previous: 3.2.144 shmctlProgramming PerlNext: 3.2.146 shmread
3.2.144 shmctlBook Index3.2.146 shmread