SrrSend
SrrSend — sends a message, blocks until replied.
Syntax
#include <srripc.h>
int SrrSend( | pid_t | pid, |
| | void* | smsg, |
| | void* | rmsg, |
| | size_t | ssize, |
| | size_t | rsize); |
Arguments
- pid
- The process to whom the message is sent.
- smsg
- The message to be sent.
- rmsg
- The buffer for the reply message.
- ssize
- The size of the message to be
sent.
- rsize
- The size of the buffer for the reply
message.
Returns
The amount of data placed into the reply buffer, or -1 on failure.
Description
This function emulates the QNX Send
function. The reply is returned as a character string.
Errors
- EFAULT invalid message
- EHOSTUNREACH Destination node not in the netmap, or
physical I/O error has occurred
- EINTR The function was interrupted by a signal
- EINVAL invalid message length
- ENOMEM not enough memory available for operation
- ESRCH the process ID does not exist