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

From: Abramo Bagnara (abramo@alsa-project.org)
Date: Sat Jan 20 2001 - 13:14:08 EST


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/



This archive was generated by hypermail 2b29 : Tue Jan 23 2001 - 21:00:22 EST