Commit Graph

11 Commits

Author SHA1 Message Date
bouyer 6ab3092b11 Add byte-swapping functions (bswap16, bswap32, bswap64) to libkern.
Only assembly version for i386 bswap16 and bswap32 for now (bswap64 uses
bswap32). Contribution of assembly versions of these are welcome.
Add byte-swapping of ext2fs metadata for big-endian systems.
Tested on i386 and sparc.
1997-10-09 15:42:19 +00:00
christos cabe1f09ff use in_addr_t and in_port_t 1996-10-13 02:59:54 +00:00
thorpej f124a6aaa9 Back out previous; this is a bigger problem than I expected. 1996-08-14 00:32:53 +00:00
thorpej a05a1045f7 The htonl(), htons(), etc. functions return u_long and u_short. Add
casts to the big-endian versions of these calls so that the compiler
won't complain when they're passed as arguments to printf().
1996-08-14 00:07:35 +00:00
briggs efa0c4d683 Make NTOH[SL] and HTON[SL] (void) (x) instead of (x) to get around
compiler warnings.  Followed the lead set in the sparc port.
1996-03-29 01:40:31 +00:00
cgd 57fb77a14e new RCS ID format. 1994-10-26 07:48:18 +00:00
chopps 8ae488d659 protect against multiple inclusion 1994-04-10 02:22:09 +00:00
mycroft e52bc1d4f0 Add quad stuff, etc. 1993-12-06 07:25:07 +00:00
cgd 944e753f33 get rid of #ifndef KERNEL around inclusion of cdefs.h 1993-10-13 07:51:09 +00:00
cgd 30177b538f add rcsids to everything and clean up headers 1993-05-22 07:56:12 +00:00
cgd 0e180f179d add from net/2 sources. was symlink to ../../tahoe/include/endian.h 1993-05-13 20:34:47 +00:00