Re: [RFC] Is sendmsg without data but with cmsg OK?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 28 Oct 1998 20:13:53 +0000 (GMT)


> Not sure that I understood you right. Actually I found that
> kuldge/feature/whatever when I wrote a testcase for bug in FreeBSD garbage
> collector[1]. *BSD (at least FreeBSD and SunOS) allow sending such
> messages.

Irix doesnt, quite a few sys5 ones dont.

> Do you mean that by portability reasons we should keep that as is,
> maybe adding some flamage on return?

I mean apps should pass a byte of data anyway

> Hmm... I'll look through the code - probably the best thing to do would be
> to postpone cmsgs till the next nonempty message / end of connection. What
> do you think about that variant?

Still unpleasant. Suppose the pass expects a reply. Basically 0 length
things to SOCK_STREAM = trouble in BSD socket API's.

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/