msgsnd function
Send a message to the message queue.
Declaration
function msgsnd(msqid: cint; msgp: PMSGbuf; msgsz: size_t; msgflg: cint)
: cintDescription
msgsend sends a message to a message queue with ID
msqid.
msgp is a pointer to a message buffer, that should be based on the
TMsgBuf type.
msgsiz is the size of the message (NOT of the
message buffer record !)
The msgflg can have a combination of the following values (ORed
together):
- 0
- No special meaning. The message will be written to the queue. If the queue is full, then the process is blocked.
- IPC_NOWAIT
- If the queue is full, then no message is written, and the call returns immediately.
The function returns True if the message was sent successfully,
False otherwise.
For an example, see msgctl.
Errors
In case of error, the call returns
False, and
IPCerror is set.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
