start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: shift Chapter 5
Function Reference
Next: Reference: shmget
 

shmctl

shmctl 
id
, 
cmd
, 
arg

Calls the System V IPC system call, shmctl(2) , for performing operations on shared memory segments. If cmd is &IPC_STAT , then arg must be a variable that will hold the returned shmid_ds structure. The function returns like ioctl : the undefined value for error, " 0 but true " for zero, or the actual return value otherwise. 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: Reference: shift Perl in a Nutshell Next: Reference: shmget
Reference: shift Book Index Reference: shmget

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.