Re: sendmsg/recvmsg question

Mike Kilburn (mike@conexio.co.za)
Wed, 12 Feb 1997 22:53:57 +0200 (SAT)


On Wed, 12 Feb 1997, Bill Perkins wrote:

> I am trying to set up a simple program using sendmsg(), to eventually share open
> file descriptors between processes. I've looked through the Stevens books, and even
> peered at the kernel a trifle, and so far have come up with nothing.
> sendmsg() returns 0 bytes sent, recvmsg() (of course) comes back with 0 bytes read.
> Is sendmsg() broken in the kernel (2.0.28) or in libc (5.4.17, the latest I could find)?

Why not use read/write? I have often wondered why sendmsg/recvmsg are even
around.