Re: Constant byteorder macros.

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Mon Jan 24 2000 - 09:15:36 EST


> alan@lxorguk.ukuu.org.uk said:
> > You are correct it is wrong. Its been removed in 2.2.x and I sent
> > Linus the forward port of JJ's fix to 2.3.x a couple of days ago.
>
> htonl() itself is wrong, using the letter 'l' to denote something which isn't
> a long.

Yes but you need to pop back 20 years to Berkeley and change time to fix that
one. While you doing that I have a list of ...

> This is legacy stuff - so perhaps it should be left - although if it's not

There is a standard for htonl() and it returns a 32bit type.

> There's no real excuse for continuing to use [bwl] suffixes for other macros
> like PCI access, though - is there?

b/w/d would make more sense in PCI nomenclature. Too late

-
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/



This archive was generated by hypermail 2b29 : Mon Jan 31 2000 - 21:00:12 EST