socket libc backend misses recvmsg()

Alexander Valitov valitov79 at
Fri Mar 27 11:44:04 CET 2009

> I believe the problem is a little bit more complicated than that ;-).
> Getting the corresponding IDL right is tricky, so we delayed the
> implementation until needed ...

Are there any chances that the function will be implemented? Any 'when'?
If it's difficult why not to temporarily add recvmsg() that uses recvfrom().
Maybe ignoring msg_control field in msghdr struct. Something like this:

int recvmsg(int s, struct msghdr *msg, int flags)
  int i;
  int byteCnt;
  int ret;

  byteCnt = 0;
  for( i = 0 ; i < msg->msg_iovlen ; i++ )
    if( ret = recvfrom( s,
                        (struct sockaddr *) msg->msg_name,
                        &(msg->msg_namelen) ) < 0 )
      return byteCnt;
    byteCnt += ret;
  return byteCnt;

Best Regards, Alexander Valitov
View this message in context:
Sent from the L4 mailing list archive at

More information about the l4-hackers mailing list