freebsd-nq/lib/libstand
Thomas Moestl 90ce56c287 Add the following functions/macros to support byte order conversions and
device drivers for bus system with other endinesses than the CPU (using
interfaces compatible to NetBSD):

- bwap16() and bswap32(). These have optimized implementations on some
  architectures; for those that don't, there exist generic implementations.
- macros to convert from a certain byte order to host byte order and vice
  versa, using a naming scheme like le16toh(), htole16().
  These are implemented using the bswap functions.
- stream bus space access functions, which do not perform a byte order
  conversion (while the normal access functions would if the bus endianess
  differs from the CPU endianess).

htons(), htonl(), ntohs() and ntohl() are implemented using the new
functions above for kernel usage. None of the above interfaces is currently
exported to user land.

Make use of the new functions in a few places where local implementations
of the same functionality existed.

Reviewed by:	mike, bde
Tested on alpha by:	mike
2002-02-27 17:16:18 +00:00
..
alpha We compile expressly on the alpha with -mno-fp-regs - so do not use them 2000-05-12 21:48:54 +00:00
i386 Change #include "DEFS.h" to <machine/asm.h>. 2001-10-25 01:30:54 +00:00
powerpc Make setjmp work our way, as opposed to NetBSD's. 2000-11-10 06:10:28 +00:00
__main.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
arp.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
assert.c Make the output from assert() look more like the example in the C99 2001-10-29 07:07:25 +00:00
bcd.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
bootp.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
bootp.h Add support to send the string 'PXEClient' as the Vendor class 2000-08-11 08:36:17 +00:00
bootparam.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
bootparam.h
bswap.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
bzipfs.c Complete bzip2-1.0.2 import. 2002-02-01 16:33:40 +00:00
bzlib_private.h.diff Complete bzip2-1.0.2 import. 2002-02-01 16:33:40 +00:00
bzlib.c.diff Complete bzip2-1.0.2 import. 2002-02-01 16:33:40 +00:00
bzlib.h.diff Complete bzip2-1.0.2 import. 2002-02-01 16:33:40 +00:00
cd9660.c - Change the f_isdir field of struct file to be a flags field and two 2001-11-06 22:31:10 +00:00
close.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
closeall.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
dev_net.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
dev_net.h
dev.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
dosfs.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
dosfs.h
environment.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
ether.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
ext2fs.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
fstat.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
getopt.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
gets.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
globals.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
gzipfs.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
if_ether.h Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
in_cksum.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
inet_ntoa.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
ioctl.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
iodesc.h
libstand.3 mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
lseek.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
Makefile Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
net.c o Move NTOHL() and associated macros into <sys/param.h>. These are 2002-02-18 20:35:27 +00:00
net.h Don't always enable debugging for the network device code. 2000-11-10 06:06:55 +00:00
netif.c Compensate for "Compensate for header dethreading" by backing it out. 2001-10-10 17:48:44 +00:00
netif.h Cleanup warnings by adding missint prototypes, removing unneeded duplicate 2000-08-03 09:08:29 +00:00
nfs.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
nfsv2.h Fix comment. 2000-05-06 04:50:09 +00:00
nullfs.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
open.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
pager.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
printf.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
qdivrem.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
quad.h
random.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
rarp.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
read.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
readdir.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
rpc.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
rpc.h
rpcv2.h
saioctl.h
sbrk.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
stand.h o Move NTOHL() and associated macros into <sys/param.h>. These are 2002-02-18 20:35:27 +00:00
stat.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
strcasecmp.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
strdup.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
strerror.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
strtol.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
tftp.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
tftp.h
twiddle.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
udp.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
ufs.c Add support for overwriting the existing contents of a file to the UFS 2001-12-11 00:03:10 +00:00
write.c Back out my 'fix', resid is different for strategy than for write 2001-11-30 06:24:34 +00:00
zalloc_defs.h Define the types iaddr_t and saddr_t for sparc64. 2001-10-15 13:50:47 +00:00
zalloc_malloc.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
zalloc_mem.h
zalloc_protos.h
zalloc.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
zipfs.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00