]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Apply the big hammer:
authorsam <sam@FreeBSD.org>
Thu, 18 Dec 2008 00:54:15 +0000 (00:54 +0000)
committersam <sam@FreeBSD.org>
Thu, 18 Dec 2008 00:54:15 +0000 (00:54 +0000)
commitf700131fd413571a9cf04faa1e1c923d1e4968ce
tree6cd7f5f744b5cb51ab9b4ba2490c2e8faf18a127
parent64c5c454c4d582fe7d7aa0234d446bc2d63fbf5e
Apply the big hammer:
o remove all of compat except for pwcache and strstuftoll; these might
  end up in libutil or similar so keep them in the subdir
o mv getid.c up to the top level; this looks like something that'll be
  makefs-specific
o eliminate private versions of .h files in sys; use system files instead
o eliminate private ffs_tables.c; use the system version directly (might
  want to adopt const'ification at some point but that's the only diff I
  can see)
o mv remaining code from sys to ffs and strip out unused bits; this now
  becomes part of makefs
o add compat defs and shims to makefs.h
o strip all vestiges of nbtool_config.h, compat_defs.h, etc.
o fixup includes after file shuffling
o rename system #defines that do implicit byte swapping to have an _swap
  suffix; e.g. DIRSIZ -> DIRSIZ_SWAP, cg_inosused -> cg_inosused_swap; if
  we ever add endian-agnostic support to the kernel these can go back to
  their original names
o strip some netbsd'isms that aren't worth shim'ing (e.g. _DIAGASSERT)

Code compiles w/o complaints but is untested.
26 files changed:
Makefile
compat/compat_defs.h [deleted file]
compat/machine/bswap.h [deleted file]
compat/namespace.h [deleted file]
compat/nbtool_config.h [deleted file]
compat/pwcache.c
compat/strsuftoll.c
compat/util.h [deleted file]
ffs.c
ffs/buf.c
ffs/ffs_alloc.c
ffs/ffs_balloc.c
ffs/ffs_bswap.c [moved from sys/ufs/ffs/ffs_bswap.c with 77% similarity]
ffs/ffs_subr.c [moved from sys/ufs/ffs/ffs_subr.c with 57% similarity]
ffs/mkfs.c
ffs/ufs_bmap.c
ffs/ufs_bswap.h [moved from sys/ufs/ufs/ufs_bswap.h with 99% similarity]
getid.c [moved from compat/getid.c with 99% similarity]
makefs.c
makefs.h
sys/ufs/ffs/ffs_extern.h [deleted file]
sys/ufs/ffs/ffs_tables.c [deleted file]
sys/ufs/ffs/fs.h [deleted file]
sys/ufs/ufs/dinode.h [deleted file]
sys/ufs/ufs/dir.h [deleted file]
walk.c