History log of /openbsd/sys/sys/endian.h (Results 1 – 25 of 25)
Revision Date Author Comments
# 0dc84f88 21-Dec-2014 guenther <guenther@openbsd.org>

<sys/endian.h> needs <sys/cdefs.h>

found previously by someone whose email I've lost; rediscovered by miod@
ok millert@ deraadt@


# 309cac32 20-Jul-2014 guenther <guenther@openbsd.org>

Provide correct guidance on which header to use in the comments


# 7c5b55ff 12-Jul-2014 guenther <guenther@openbsd.org>

Tackle the endian.h mess. Make it so that:
* you can #include <sys/endian.h> instead of <machine/endian.h>,
and ditto <endian.h> (fixes code that pulls in <sys/endian.h> first)

* those will a

Tackle the endian.h mess. Make it so that:
* you can #include <sys/endian.h> instead of <machine/endian.h>,
and ditto <endian.h> (fixes code that pulls in <sys/endian.h> first)

* those will always export the symbols that POSIX specified for
<endian.h>, including the new {be,le}{16,32,64}toh() set. c.f.
http://austingroupbugs.net/view.php?id=162

if __BSD_VISIBLE then you also get the symbols that our <machine/endian.h>
currently exports (ntohs, NTOHS, dlg's bemtoh*, etc)

* when doing POSIX compiles (not __BSD_VISIBLE), then <netinet/in.h> and
<arpa/inet.h> will *stop* exporting the extra symbols like BYTE_ORDER
and betoh*

ok deraadt@

show more ...


# 53462c32 10-Jul-2014 dlg <dlg@openbsd.org>

guenther spotted my bad copy and pasting.

fall back to htobe64 for htobem64 instead of htole64 on LE archs.


# bf1745be 14-Mar-2014 dlg <dlg@openbsd.org>

provide an MI api for doing byteswapping loads and stores. some
archs have instrutions that can do this, and the rest that dont get
to use wrappers around the byteswap(3) api.

this provides MI backe

provide an MI api for doing byteswapping loads and stores. some
archs have instrutions that can do this, and the rest that dont get
to use wrappers around the byteswap(3) api.

this provides MI backends for sparc64 and powerpc which get a big
benefit from this because byteswapping in registers is really hard
for them.

the intended use case is for reading and writing bits of dma memory
handed to and from hardware.

discussed with miod@ guenther@ deraadt@
ok miod@ kettenis@

show more ...


# b1a116f4 20-Aug-2013 kettenis <kettenis@openbsd.org>

Include <sys/_types.h> to make this header a little bit more self-contained.

ok guenther@


# 3aa0b340 24-Jun-2011 deraadt <deraadt@openbsd.org>

When converting endian to same-endian, the macros should cast to unsigned
so that signedness of the input is suppressed.
ok matthew miod kettenis guenther


# d30653f9 27-Mar-2006 otto <otto@openbsd.org>

Kill lint warning by using unsigned right hand arg to >>
Right shifting signed values is undefined. From claudio@
ok millert@; comitted by request of deraadt@


# c916d948 06-Jan-2006 millert <millert@openbsd.org>

Adapt things to use __type_t instead of _BSD_TYPE_T_
Add new sys/_types.h header
Include machine/_types.h or sys/_types.h where applicable


# a6e0e309 14-Dec-2005 millert <millert@openbsd.org>

Add a __statement macro to use with gcc statement expressions instead
of using __extension__ directly. This lets us define away the whole
thing when lint is in use.


# 52a0e603 13-Dec-2005 millert <millert@openbsd.org>

First step in include files overhaul. Use __FOO_VISIBLE (as defined
in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace
pollution issues, including the byte order defines. OK deraad

First step in include files overhaul. Use __FOO_VISIBLE (as defined
in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace
pollution issues, including the byte order defines. OK deraadt@

show more ...


# 5bbcc470 11-Jan-2004 brad <brad@openbsd.org>

mark u_int64_t constants with ULL to make gcc3 happy

ok drahn@ tedu@


# 36a57a3d 26-Sep-2003 fgsch <fgsch@openbsd.org>

put 64bit macros/functions documentation back.


# 58a6550f 21-Sep-2003 fgsch <fgsch@openbsd.org>

revert for now.


# 08b1a06e 21-Sep-2003 fgsch <fgsch@openbsd.org>

document and declare 64-bit function/macros. ok millert@ deraadt@


# a3d2d11b 03-Jun-2003 deraadt <deraadt@openbsd.org>

fix various 3/4 licenses according to "terms" file


# 8f8a8571 01-May-2003 millert <millert@openbsd.org>

Fix unbalanced parens in __swap64gen macro for non-gcc; Hugh C Kennedy


# c4071fd1 14-Mar-2002 millert <millert@openbsd.org>

First round of __P removal in sys


# f5a6fe17 27-Jun-2001 mickey <mickey@openbsd.org>

implement md 64 bit swaps; niklas@ ok


# 7ad69040 22-Jun-2001 deraadt <deraadt@openbsd.org>

KNF


# d8c409b8 25-Oct-2000 deraadt <deraadt@openbsd.org>

mark swap16() and swap32() with __extension__; guenther@gac.edu


# 8ec37f4d 21-Jul-1999 csapuntz <csapuntz@openbsd.org>

swap16_multi by niklas@cvs.openbsd.org

Fix cd.c so it compiles on big-endian platforms


# 6548e5d1 30-Nov-1997 millert <millert@openbsd.org>

Move in_addr_t and in_port_t to <sys/types.h> and add sa_family_t
and suseconds_t types for XPG4.2.


# f9d8bec4 10-Nov-1997 niklas <niklas@openbsd.org>

Sign extension paranoia. Careful about local varnames in macros.
Typo correction. Overrideable _QUAD_{LOW,HIGH}WORD values.


# 419cb562 09-Nov-1997 niklas <niklas@openbsd.org>

New endian.h design. All architectures now use a common file for the bulk
part. Some ports can optimize the swap operations. This also means the
general API is extended with swap16, swap32, htobe1

New endian.h design. All architectures now use a common file for the bulk
part. Some ports can optimize the swap operations. This also means the
general API is extended with swap16, swap32, htobe16, htobe32, betoh16,
betoh32, htole16, htole32, letoh16 and letoh32.

show more ...