Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jan 2002 22:00:45 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Thomas Moestl <tmoestl@gmx.net>
Cc:        <freebsd-arch@FreeBSD.ORG>
Subject:   Re: adding more endian conversion and bus space functions
Message-ID:  <20020111215209.V1119-100000@gamplex.bde.org>
In-Reply-To: <20020111005207.GA7246@crow.dom2ip.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 11 Jan 2002, Thomas Moestl wrote:

> I would also like to make most of the machine/endian.h files MI, as
> sys/endian.h. The only thing that the MD files would still contain are
> the definintion of BYTE_ORDER and inline implementations of some
> functions. sys/endian.h would implemented the interfaces listed in 1.
> as well as htonl and friends for both BYTE_ORDERs.

Mike Barcroft is doing this.  IIRC, it doesn't have <sys/endian.h>, since
the ntohl() family is declared in <net/arpa.h> according to POSIX, so
<sys/endian.h> would be neither standard no useful.  I think the bus
space headers should not depend on any endianness support in other
headers except <machine/endian.h> defining _[_]BYTE_ORDER.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020111215209.V1119-100000>