>>-msgsnd--qid-- msgvar--length--+---------------------+-------><
'-nowait--+---------+-'
'-typevar-'
Function
msgsnd sends messages to message queues.
Parameters
- qid
- The queue ID.
- msgvar
- The name of a variable that contains the message to be sent.
- length
- The maximum length of the message to be sent. This parameter
is flagged as an error if storage cannot be obtained for a buffer
of this size.
- nowait
- Specifies whether the caller is to wait until the message can
be placed on the message queue.
- 0
- Wait for the message to be placed on the message queue. This
is the default.
- 1
- An error is returned if the message cannot be placed on the
queue immediately.
- typevar
- The name of a variable that contains the type of message to
be sent. The type is a 4-byte binary value with a default of '00000001'x.
Example
'msgsnd (qid) msg' length(msg)