freebsd-dev/lib
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
..
compat Add libfetch.so.2 from a 17-Dec-2001 4.5-RC (releng4) build. 2002-01-24 18:59:29 +00:00
csu Initialize the libc user trap handlers before passing control non-startup 2002-02-23 21:47:20 +00:00
libalias Fixed the bug in transparent TCP proxying with the "encode_ip_hdr" 2001-12-18 16:13:45 +00:00
libatm __FBSDID() Cleanup 2001-09-30 21:06:00 +00:00
libbind
libbz2 style nit 2001-07-09 23:12:23 +00:00
libc Introduce a version field to `struct xucred' in place of one of the 2002-02-27 04:45:37 +00:00
libc_r Fix a bug where a short write to a non-blocking socket would 2002-02-22 04:26:54 +00:00
libcalendar mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libcam Const'ify the CDB format string passed to the CDB parsing routines 2001-12-18 00:48:44 +00:00
libcom_err MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libcompat mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libcrypt s/crypt_format/crypt_default/ to match reality. 2001-12-13 08:05:32 +00:00
libdevinfo Made this header self-sufficient. 2001-10-03 05:25:07 +00:00
libdevstat Fixed wrong arg type in synopsis. 2001-10-03 03:57:42 +00:00
libdisk Modify Delete_Chunk() into Delete_Chunk2() which can take a flags 2002-01-07 07:47:25 +00:00
libedit Fix problem where with PicoBSD the shell coredumps if it does not find an 2002-01-24 13:54:19 +00:00
libfetch Switch to a self-starting allocation scheme. 2002-02-05 22:15:16 +00:00
libform MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libftpio mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libgnumalloc Do not fail doing rm -f ${DESTDIR}${LIBDIR}/lib${LIB}.a if the 2001-11-03 06:33:08 +00:00
libio Add __FBSDID()s to libio 2001-09-30 21:41:46 +00:00
libipsec mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libipx o Move NTOHL() and associated macros into <sys/param.h>. These are 2002-02-18 20:35:27 +00:00
libisc hex.c is new in libisc with 8.3.1-REL. 2002-02-04 19:18:23 +00:00
libkse Don't rely on <sys/signal.h> to include <sys/ucontext.h> 2002-02-17 17:21:27 +00:00
libkvm Also blindly attempt to fix broken world with respect to proc.p_runtime 2002-02-22 19:10:09 +00:00
libm Removed most of the zombie man pages in libm. All relevant parts have 2001-10-13 14:22:08 +00:00
libmd mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libmenu Update for ncurses 5.2-20010512 import 2001-05-17 08:30:09 +00:00
libmilter Add two new libraries which are part of sendmail 8.12. libsm is used only 2002-02-17 22:01:40 +00:00
libmp Fixed spelling of rpow in rpow's prototype. 2001-10-03 16:33:00 +00:00
libncp o Move NTOHL() and associated macros into <sys/param.h>. These are 2002-02-18 20:35:27 +00:00
libncurses Add __FBSDID()s to libncurses 2001-09-30 22:02:43 +00:00
libnetgraph Fix bugs in NgSendMsg() and NgSendAsciiMsg() where the wrong token 2001-10-25 04:02:25 +00:00
libopie Turn off USER_LOCKING which allows intruder to completely disable OPIE 2002-01-03 16:04:57 +00:00
libpam Create /var/log/lastlog if it doesn't exist. 2002-02-20 07:47:06 +00:00
libpanel MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libpcap Update our bpf.h with tcpdump.org's new DLT_ types. 2001-07-31 23:27:06 +00:00
libpthread Don't rely on <sys/signal.h> to include <sys/ucontext.h> 2002-02-17 17:21:27 +00:00
libradius mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libresolv Dont fail if ${DESTDIR}${LIBDIR}/ or any of its components dont 2001-11-03 06:26:15 +00:00
librpcsvc remove -M from RPCCOM, it slipped in with the tirpc upgrade. 2002-02-06 16:13:04 +00:00
libsbuf Enable WARNS?=2. 2002-01-06 08:47:19 +00:00
libsm Add two new libraries which are part of sendmail 8.12. libsm is used only 2002-02-17 22:01:40 +00:00
libsmb Supply SMB_CFG_FILE in CFLAGS. The newly imported smbfs-1.4.2 2001-12-20 16:21:47 +00:00
libsmdb Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
libsmutil Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
libstand Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
libtacplus mdoc(7) police: Use the new .In macro for #include statements. 2001-10-01 16:09:29 +00:00
libtelnet Merge the (in)complete ANSIfication work from src/crypto/telnet. 2001-11-30 22:37:28 +00:00
libusb Prefix structure members to protect them against clashes with eg. 2002-02-20 20:47:21 +00:00
libusbhid Prefix structure members to protect them against clashes with eg. 2002-02-20 20:47:21 +00:00
libutil #include <time.h> for the definition of time functions instead of 2002-02-25 12:02:03 +00:00
libvgl add missing MLINKS 2001-12-21 18:26:01 +00:00
libwrap MAN[1-9] -> MAN. 2001-03-27 17:27:19 +00:00
libxpg4
liby Dont fail if the intermediate directories in ${DESTDIR}/usr/lib/compat/* 2001-11-03 06:24:23 +00:00
libz Error handling fixes for inflate. 2002-02-17 17:35:18 +00:00
msun Add ifdef sparc64. 2002-01-02 06:54:18 +00:00
ncurses Add __FBSDID()s to libncurses 2001-09-30 22:02:43 +00:00
Makefile Add two new libraries which are part of sendmail 8.12. libsm is used only 2002-02-17 22:01:40 +00:00
Makefile.inc