Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

int imc_recvmsg ( int  desc,
struct NaClImcMsgHdr *  nmhp,
int  flags 
)

Receives a message over a specified IMC socket descriptor.

Parameters:
desc The file descriptor of an IMC socket.
nmhp The message header structure to be populated when receiving the message.
flags TBD
Returns:
On success, imc_recvmsg returns a non-negative number of bytes read. On failure, it returns -1 and sets errno appropriately.

Definition at line 17 of file imc_recvmsg.c.

References imc_recvmsg().

Referenced by imc_recvmsg().

                                                                 {
  int retval = NACL_SYSCALL(imc_recvmsg)(desc, nmhp, flags);
  if (retval < 0) {
    errno = -retval;
    return -1;
  }
  return retval;
}


Generated by  Doxygen 1.6.0   Back to index