Re: [Fwd: [Fwd: Is sendfile all that sexy? (fwd)]]

Abramo Bagnara (abramo@alsa-project.org)
Sat, 20 Jan 2001 19:14:08 +0100


kuznet@ms2.inr.ac.ru wrote:
>
>
> > The manpage disagrees with you:
>
> Do you jest?
>
> This manpages is wrong, or, to be more exact, is incomplete,
> which is common flaw of them.
>
> get/set mean nothing but read-only/changing, i.e.
> another important property missing in ioctl interface.

setsockopt i.e. set socket options

I think that Andrea's point is that SIOCPUSH don't set anything (i.e.
don't change a state), but ask for an action to be done now.

For this reason the name setsockopt is counter intuitive (apart from man
page) and it seems to violate the principle of least surprise.

I think this point of view is easily agreeable.

-- 
Abramo Bagnara                       mailto:abramo@alsa-project.org

Opera Unica Phone: +39.546.656023 Via Emilia Interna, 140 48014 Castel Bolognese (RA) - Italy

ALSA project is http://www.alsa-project.org sponsored by SuSE Linux http://www.suse.com

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