[Chapter 3] 3.2.93 msgctl
Author: Larry Wall, Tom Christiansen & Randal L. Schwartz
Date: 1999-07-02T01:51:26Z

#

| Chapter 3 Functions |

### 3.2.93 msgctl

    msgctl ID, CMD, ARG

This function calls the msgctl(2) system call. See msgctl(2) for details. If `CMD` is `&IPC_STAT`, then `ARG` must be a variable that will hold the returned `msqid_ds` structure. The return value works like ioctl's: 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 "msg.ph";

This function is available only on machines supporting System V IPC, which turns out to be far fewer than those supporting sockets.

3.2.92 mkdir |  | 3.2.94 msgget