Subject: CVS commit: src
To: None <source-changes@netbsd.org>
From: Manuel BOUYER <bouyer@netbsd.org>
List: source-changes
Date: 01/15/1999 05:31:33
Module Name: src
Committed By: bouyer
Date: Fri Jan 15 13:31:32 UTC 1999
Modified Files:
src/lib/libc: Makefile shlib_version
src/lib/libc/arch/alpha: Makefile.inc
src/lib/libc/arch/alpha/gen: Makefile.inc
src/lib/libc/arch/alpha/net: Makefile.inc
src/lib/libc/arch/arm32: Makefile.inc
src/lib/libc/arch/arm32/gen: Makefile.inc
src/lib/libc/arch/arm32/net: Makefile.inc
src/lib/libc/arch/i386: Makefile.inc
src/lib/libc/arch/i386/gen: Makefile.inc
src/lib/libc/arch/i386/net: Makefile.inc
src/lib/libc/arch/m68k: Makefile.inc
src/lib/libc/arch/m68k/gen: Makefile.inc
src/lib/libc/arch/mips/gen: Makefile.inc
src/lib/libc/arch/mips/net: Makefile.inc
src/lib/libc/arch/ns32k: Makefile.inc
src/lib/libc/arch/ns32k/net: Makefile.inc
src/lib/libc/arch/powerpc/gen: Makefile.inc
src/lib/libc/arch/sparc/gen: Makefile.inc
src/lib/libc/arch/sparc64/gen: Makefile.inc
src/lib/libc/arch/vax/gen: Makefile.inc
src/lib/libc/arch/vax/net: Makefile.inc
src/lib/libc/gen: Makefile.inc
src/lib/libutil: Makefile shlib_version
src/sys/arch/alpha/include: Makefile endian.h
src/sys/arch/amiga/include: Makefile
src/sys/arch/arm32/include: Makefile endian.h
src/sys/arch/atari/include: Makefile
src/sys/arch/bebox/include: Makefile
src/sys/arch/hp300/include: Makefile
src/sys/arch/i386/include: Makefile endian.h
src/sys/arch/m68k/include: Makefile endian.h
src/sys/arch/mac68k/include: Makefile
src/sys/arch/macppc/include: Makefile
src/sys/arch/mips/include: Makefile endian.h
src/sys/arch/mvme68k/include: Makefile
src/sys/arch/newsmips/include: Makefile
src/sys/arch/next68k/include: Makefile
src/sys/arch/ofppc/include: Makefile
src/sys/arch/pc532/include: endian.h
src/sys/arch/pica/include: Makefile
src/sys/arch/pmax/include: Makefile
src/sys/arch/powerpc/include: Makefile endian.h
src/sys/arch/sparc/include: Makefile endian.h
src/sys/arch/sparc64/include: Makefile endian.h
src/sys/arch/sun3/include: Makefile
src/sys/arch/vax/include: Makefile asm.h endian.h
src/sys/arch/x68k/include: Makefile
src/sys/lib/libkern: bswap16.c bswap32.c bswap64.c
src/sys/lib/libkern/arch/alpha: Makefile.inc byte_swap_2.S
byte_swap_4.S
src/sys/lib/libkern/arch/arm32: Makefile.inc
src/sys/lib/libkern/arch/i386: Makefile.inc
src/sys/lib/libkern/arch/mips: Makefile.inc
src/sys/lib/libkern/arch/ns32k: Makefile.inc
src/sys/lib/libkern/arch/vax: Makefile.inc
src/sys/ufs/ext2fs: ext2fs.h
src/sys/ufs/ufs: ufs_bswap.h
Added Files:
src/lib/libc/arch/alpha/gen: byte_swap_2.S byte_swap_4.S
src/lib/libc/arch/arm32/gen: byte_swap_2.S byte_swap_4.S
src/lib/libc/arch/i386/gen: byte_swap_2.S byte_swap_4.S
src/lib/libc/arch/m68k/gen: bswap16.S bswap32.S bswap64.S
src/lib/libc/arch/mips/gen: byte_swap_2.S byte_swap_4.S
src/lib/libc/arch/ns32k/gen: byte_swap_2.S byte_swap_4.S
src/lib/libc/arch/vax/gen: bswap64.S byte_swap_2.S byte_swap_4.S
src/lib/libc/gen: Lint_bswap16.c Lint_bswap32.c Lint_bswap64.c bswap.3
bswap16.c bswap32.c bswap64.c
src/sys/arch/alpha/include: bswap.h
src/sys/arch/amiga/include: bswap.h
src/sys/arch/arm32/include: bswap.h
src/sys/arch/atari/include: bswap.h
src/sys/arch/bebox/include: bswap.h
src/sys/arch/hp300/include: bswap.h
src/sys/arch/i386/include: bswap.h byte_swap.h
src/sys/arch/m68k/include: bswap.h
src/sys/arch/mac68k/include: bswap.h
src/sys/arch/macppc/include: bswap.h
src/sys/arch/mips/include: bswap.h
src/sys/arch/mvme68k/include: bswap.h
src/sys/arch/newsmips/include: bswap.h
src/sys/arch/next68k/include: bswap.h
src/sys/arch/ofppc/include: bswap.h
src/sys/arch/pc532/include: bswap.h byte_swap.h
src/sys/arch/pica/include: bswap.h
src/sys/arch/pmax/include: bswap.h
src/sys/arch/powerpc/include: bswap.h
src/sys/arch/sparc/include: bswap.h
src/sys/arch/sparc64/include: bswap.h
src/sys/arch/sun3/include: bswap.h
src/sys/arch/vax/include: bswap.h byte_swap.h
src/sys/arch/x68k/include: bswap.h
src/sys/lib/libkern/arch/arm32: byte_swap_2.S byte_swap_4.S
src/sys/lib/libkern/arch/i386: byte_swap_2.S byte_swap_4.S
src/sys/lib/libkern/arch/mips: byte_swap_2.S byte_swap_4.S
src/sys/lib/libkern/arch/ns32k: byte_swap_2.S byte_swap_4.S
src/sys/lib/libkern/arch/vax: bswap64.S
Removed Files:
src/lib/libc/arch/alpha/net: byte_swap_2.S byte_swap_4.S htonl.S
htons.S ntohl.S ntohs.S
src/lib/libc/arch/arm32/net: htonl.S htons.S ntohl.S ntohs.S
src/lib/libc/arch/i386/net: htonl.S htons.S ntohl.S ntohs.S
src/lib/libc/arch/mips/net: htonl.S htons.S
src/lib/libc/arch/ns32k/net: htonl.S htons.S ntohl.S ntohs.S
src/lib/libc/arch/vax/net: htonl.S htons.S ntohl.S ntohs.S
src/lib/libutil: bswap.3 bswap.c
src/sys/lib/libkern/arch/alpha: bswap16.S bswap32.S
src/sys/lib/libkern/arch/arm32: htonl.S htons.S ntohl.S ntohs.S
src/sys/lib/libkern/arch/i386: bswap16.S bswap32.S htonl.S htons.S
ntohl.S ntohs.S
src/sys/lib/libkern/arch/ns32k: htonl.S htons.S ntohl.S ntohs.S
Log Message:
Move the bswap functions from libutil to libc (this bups the
minor of libc and the major of libutil). For little-endian architectures
merge the bnswap() assembly versions with nto* and hton* using symbols
aliasing. Use symbol renaming for the bswap function in this case to avoid
namespace pollution.
Declare bswap* in machine/bswap.h, not machine/endian.h. For little-endian
machines, common code for inline macros go in machine/byte_swap.h
Sync libkern with libc.
Adjust #include in kernel sources for machine/bswap.h.