| United States-English |
|
|
|
![]() |
MPE/iX Developer's Kit Reference Manual Volume 2: HP 3000 MPE/iX Computer Systems > Chapter 2 SVID IPC Library Function Descriptionsmsgrcv |
|
Reads a message from a message queue.
The msgrcv() function reads a message from the message queue specified by msqid and places it in the buffer pointed to by msgp. If the MSG_NOERROR option is set in msgflg, the received message is truncated to msgsz bytes if it is larger than msgsz. The truncated part of the message is lost and no indication of the truncation is given. If the calling process is suspended waiting for a message, the following conditions will cause msgrcv() to return an error and set errno to indicate the error condition.
If msgrcv() is successful, the following fields of the data structure associated with msqid are updated to the indicated values:
If a process suspended during execution of msgrcv() receives a signal, control returns to the user with errno set to EINTR. Disabled signals are ignored. If an error occurs, errno is set to one of the following values.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||