diff options
author | mike <mike@FreeBSD.org> | 2002-02-18 20:35:27 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-02-18 20:35:27 +0000 |
commit | bcee06d42c20a8ea0e6c6ffb8924e16e7e793c0f (patch) | |
tree | 970c36894ee638248ec810bd7570ac8aabb5eaf5 /lib/libncp | |
parent | f2e166dc7a7880a8564c2a7cb8ca2b94566d8d6b (diff) | |
download | FreeBSD-src-bcee06d42c20a8ea0e6c6ffb8924e16e7e793c0f.zip FreeBSD-src-bcee06d42c20a8ea0e6c6ffb8924e16e7e793c0f.tar.gz |
o Move NTOHL() and associated macros into <sys/param.h>. These are
deprecated in favor of the POSIX-defined lowercase variants.
o Change all occurrences of NTOHL() and associated marcros in the
source tree to use the lowercase function variants.
o Add missing license bits to sparc64's <machine/endian.h>.
Approved by: jake
o Clean up <machine/endian.h> files.
o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>.
o Remove prototypes for non-existent bswapXX() functions.
o Include <machine/endian.h> in <arpa/inet.h> to define the
POSIX-required ntohl() family of functions.
o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>,
and <sys/param.h>.
o Prepend underscores to the ntohl() family to help deal with
complexities associated with having MD (asm and inline) versions, and
having to prevent exposure of these functions in other headers that
happen to make use of endian-specific defines.
o Create weak aliases to the canonical function name to help deal with
third-party software forgetting to include an appropriate header.
o Remove some now unneeded pollution from <sys/types.h>.
o Add missing <arpa/inet.h> includes in userland.
Tested on: alpha, i386
Reviewed by: bde, jake, tmm
Diffstat (limited to 'lib/libncp')
-rw-r--r-- | lib/libncp/ipx.c | 1 | ||||
-rw-r--r-- | lib/libncp/ncpl_bind.c | 1 | ||||
-rw-r--r-- | lib/libncp/ncpl_file.c | 1 | ||||
-rw-r--r-- | lib/libncp/ncpl_misc.c | 1 | ||||
-rw-r--r-- | lib/libncp/ncpl_rpc.c | 1 | ||||
-rw-r--r-- | lib/libncp/sap.c | 1 |
6 files changed, 6 insertions, 0 deletions
diff --git a/lib/libncp/ipx.c b/lib/libncp/ipx.c index b55b58b..9f0a21e 100644 --- a/lib/libncp/ipx.c +++ b/lib/libncp/ipx.c @@ -39,6 +39,7 @@ __FBSDID("$FreeBSD$"); #include <sys/sysctl.h> #include <sys/time.h> +#include <arpa/inet.h> #include <net/if.h> #include <net/if_var.h> #include <net/if_dl.h> diff --git a/lib/libncp/ncpl_bind.c b/lib/libncp/ncpl_bind.c index e7bbb1c..ab591eb 100644 --- a/lib/libncp/ncpl_bind.c +++ b/lib/libncp/ncpl_bind.c @@ -34,6 +34,7 @@ __FBSDID("$FreeBSD$"); #include <sys/types.h> +#include <arpa/inet.h> #include <errno.h> #include <string.h> #include <netncp/ncp_lib.h> diff --git a/lib/libncp/ncpl_file.c b/lib/libncp/ncpl_file.c index 4f611c5..2ffcc46 100644 --- a/lib/libncp/ncpl_file.c +++ b/lib/libncp/ncpl_file.c @@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/ioctl.h> +#include <arpa/inet.h> #include <errno.h> #include <stdio.h> #include <fcntl.h> diff --git a/lib/libncp/ncpl_misc.c b/lib/libncp/ncpl_misc.c index c145fda..16a54c5 100644 --- a/lib/libncp/ncpl_misc.c +++ b/lib/libncp/ncpl_misc.c @@ -37,6 +37,7 @@ __FBSDID("$FreeBSD$"); #include <sys/types.h> #include <sys/time.h> +#include <arpa/inet.h> #include <errno.h> #include <stdio.h> #include <strings.h> diff --git a/lib/libncp/ncpl_rpc.c b/lib/libncp/ncpl_rpc.c index 1299ac9..f2240e3 100644 --- a/lib/libncp/ncpl_rpc.c +++ b/lib/libncp/ncpl_rpc.c @@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$"); #include <sys/types.h> #include <sys/time.h> +#include <arpa/inet.h> #include <errno.h> #include <stdio.h> #include <strings.h> diff --git a/lib/libncp/sap.c b/lib/libncp/sap.c index b9f95a9..a0c7d0c 100644 --- a/lib/libncp/sap.c +++ b/lib/libncp/sap.c @@ -38,6 +38,7 @@ __FBSDID("$FreeBSD$"); #include <sys/types.h> #include <sys/socket.h> #include <sys/time.h> +#include <arpa/inet.h> #include <netipx/ipx.h> #include <errno.h> #include <unistd.h> |