pvm_bufinfo - Returns information about a message buffer.
pvm_bufinfo returns information about the requested message buffer. Typically it is used to determine facts about the last received message such as its size or source. pvm_bufinfo is especially useful when an application is able to receive any incoming message, and the action taken depends on the source tid and the msgtag associated with the message that comes in first.
The returned value infowill be zero if pvm_bufinfo is successful and will be will be < 0 if some error occurs.