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

Programming Perl

Programming PerlSearch this book
Previous: 3.2.143 shift Chapter 3
Functions
Next: 3.2.145 shmget
 

3.2.144 shmctl

shmctl 

ID

, 

CMD

, 

ARG

This function calls the System V IPC system call, shmctl (2). If CMD is &IPC_STAT , then ARG must be a variable which 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: 3.2.143 shift Programming Perl Next: 3.2.145 shmget
3.2.143 shift Book Index 3.2.145 shmget