Re: recv(2) with a argument of flag of literal 0
- From: David Schwartz <davids@xxxxxxxxxxxxx>
- Date: Mon, 3 Nov 2008 01:10:00 -0800 (PST)
On Nov 3, 1:00 am, viza <tom.v...@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
According to Linux man recv:
"The flags argument to a recv() call is formed by OR'ing one or more of
the following values: ..."
According to SUSv3: "flags Specifies the type of message reception.
Values of this argument are formed by logically OR'ing zero or more of
the following values: ..."
So 0 is a legal value in supposedly-portable code, but it might not work
on Linux.
I suspect that the Linux documentation is just wrong and that Linux does
allow 0 as required by POSIX/SUS, but I haven't tested it.
Linux does allow 0 as required by POSIX /SUS. The SUS wording is
awful, but precise. The Linux wording is nice, but imprecise.
DS
.
- References:
- recv(2) with a argument of flag of literal 0
- From: lovecreatesbeauty@xxxxxxxxx
- Re: recv(2) with a argument of flag of literal 0
- From: viza
- recv(2) with a argument of flag of literal 0
- Prev by Date: Re: recv(2) with a argument of flag of literal 0
- Next by Date: Re: recv(2) with a argument of flag of literal 0
- Previous by thread: Re: recv(2) with a argument of flag of literal 0
- Next by thread: Re: recv(2) with a argument of flag of literal 0
- Index(es):
Relevant Pages
|