|
|||||||
|
|
MSGCTLSection: Linux Programmer's Manual (2)Updated: 2001-02-18 Index Return to Main Contents NAMEmsgctl - message control operationsSYNOPSIS#include <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h> int msgctl(int msqid, int cmd, struct msqid_ds *buf); DESCRIPTIONThis function performs the control operation specified by cmd on the message queue with identifier msqid. Legal values for cmd are:
RETURN VALUEOn success, the return value will be 0, otherwise -1 with errno indicating the error.ERRORSOn failure, errno is set to one of the following:
NOTESThe IPC_INFO, MSG_STAT and MSG_INFO control calls are used by the ipcs(8) program to provide information on allocated resources. In the future these may be modified as needed or moved to a proc file system interface.Various fields in a struct msqid_ds were shorts under Linux 2.2 and have become longs under Linux 2.4. To take advantage of this, a recompilation under glibc-2.1.91 or later should suffice. (The kernel distinguishes old and new calls by a IPC_64 flag in cmd.) CONFORMING TOSVr4, SVID. SVID does not document the EIDRM error condition.SEE ALSOipc(5), msgget(2), msgsnd(2), msgrcv(2)
Index | ||||||
|
|
|
Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account Document on this page is part of "Linuxinfor Man Pages in HTML Format: man2". See Index Page for more info about Authorship and Copyright. 1999-2008 Linuxinfor.com. No rights reserved. |