SrrReply

SrrReply — replies to a previously received message.

Syntax

#include <srripc.h>
int SrrReply(pid_t  pid,
 void*  msg,
 size_t  size);

Arguments

pid

The process to reply to.

data

The message to reply with.

size

The size of the reply message.

Returns

Returns zero on success and -1 on failure. Errno is set on error.

Description

The SrrReply function is a wrap of the C function Reply. Any message that you receive using the SrrReceive function should be replied to. This function should only be used if you are also using SrrReceive.

Errors

    EFAULT Invalid message

    EINTR Function call interrupted by signal

    EINVAL invalid virtual circuit buffer

    ENOMEM not enough memory for operation

    ESRCH the process ID does not exist

See Also

SrrSend, SrrReceive,