Re: setsockopt(..,SO_RCVBUF,..) sets wrong value

Richard B. Johnson (root@chaos.analogic.com)
Thu, 2 Aug 2001 11:59:17 -0400 (EDT)


On Thu, 2 Aug 2001 Andries.Brouwer@cwi.nl wrote:

[SNIPPED...]
Then shouldn't it return exactly the value that was set?

Whatever the kernel does internally with the value is of no
concern to the caller at the API. It could multiply it by the
phase-of-the-moon if necessary.

When an API says "set_foo(123)", it must be able to do
"val = get_foo()" and retrieve the same value. If not, it's
broken.

Instead of writing more documentation to explain an obvious bug
at the API, it should simply be fixed.

Cheers,
Dick Johnson

Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips).

I was going to compile a list of innovations that could be
attributed to Microsoft. Once I realized that Ctrl-Alt-Del
was handled in the BIOS, I found that there aren't any.

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