Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   jmc
Date:           Sun Jun 20 22:20:18 UTC 2004

Modified Files:
        src/bin/pax: ar_io.c file_subs.c ftree.c getoldopt.c options.c pax.c
        src/include: getopt.h glob.h pwd.h
        src/lib/libc/db/btree: bt_conv.c bt_debug.c bt_utils.c
        src/lib/libc/db/hash: hash_bigkey.c hash_buf.c hash_func.c hash_log2.c
        src/lib/libc/db/recno: rec_utils.c
        src/lib/libc/gen: __fts13.c pwcache.c
        src/lib/libc/stdio: fparseln.c
        src/lib/libc/stdlib: getopt_long.c
        src/lib/libc/string: strmode.c
        src/sbin/mknod: mknod.c
        src/share/mk: bsd.hostprog.mk
        src/tools/compat: Makefile compat_defs.h configure configure.ac
            defs.mk.in nbtool_config.h.in
        src/usr.bin/cksum: cksum.c crc.c md5.c print.c sum1.c sum2.c
        src/usr.bin/ctags: C.c ctags.c fortran.c lisp.c print.c tree.c yacc.c
        src/usr.bin/m4: eval.c expr.c gnum4.c look.c main.c misc.c trace.c
        src/usr.bin/menuc: avl.c main.c mdb.c util.c
        src/usr.bin/msgc: msgdb.c msgmain.c
        src/usr.bin/rpcgen: rpc_clntout.c rpc_cout.c rpc_hout.c rpc_main.c
            rpc_parse.c rpc_sample.c rpc_scan.c rpc_svcout.c rpc_tblout.c
            rpc_util.c
        src/usr.bin/stat: stat.c
        src/usr.bin/xinstall: xinstall.c
        src/usr.bin/xlint/common: emit.c inittyp.c mem.c
        src/usr.bin/xlint/lint1: decl.c emit1.c err.c func.c init.c main1.c
            mem1.c tree.c
        src/usr.bin/xlint/lint2: chk.c hash.c main2.c mem2.c msg.c read.c
        src/usr.bin/xlint/xlint: xlint.c
        src/usr.bin/yacc: main.c
        src/usr.sbin/config: files.c hash.c main.c mkdevsw.c mkheaders.c
            mkioconf.c mkmakefile.c mkswap.c pack.c sem.c util.c
        src/usr.sbin/installboot: ffs.c fstypes.c installboot.c machines.c
            sum.c
        src/usr.sbin/installboot/arch: amiga.c i386.c next68k.c sparc64.c
        src/usr.sbin/makefs: ffs.c makefs.c makefs.h walk.c
        src/usr.sbin/makefs/ffs: buf.c ffs_alloc.c ffs_balloc.c mkfs.c
            ufs_bmap.c
        src/usr.sbin/mtree: compare.c crc.c create.c excludes.c getid.c misc.c
            mtree.c spec.c verify.c
        src/usr.sbin/pwd_mkdb: pwd_mkdb.c
Added Files:
        src/tools/compat: compat_getopt.h

Log Message:
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944


To generate a diff of this commit:
cvs rdiff -r1.40 -r1.41 src/bin/pax/ar_io.c
cvs rdiff -r1.46 -r1.47 src/bin/pax/file_subs.c
cvs rdiff -r1.30 -r1.31 src/bin/pax/ftree.c
cvs rdiff -r1.19 -r1.20 src/bin/pax/getoldopt.c
cvs rdiff -r1.75 -r1.76 src/bin/pax/options.c
cvs rdiff -r1.34 -r1.35 src/bin/pax/pax.c
cvs rdiff -r1.5 -r1.6 src/include/getopt.h
cvs rdiff -r1.17 -r1.18 src/include/glob.h
cvs rdiff -r1.32 -r1.33 src/include/pwd.h
cvs rdiff -r1.10 -r1.11 src/lib/libc/db/btree/bt_conv.c \
    src/lib/libc/db/btree/bt_debug.c
cvs rdiff -r1.9 -r1.10 src/lib/libc/db/btree/bt_utils.c
cvs rdiff -r1.17 -r1.18 src/lib/libc/db/hash/hash_bigkey.c
cvs rdiff -r1.10 -r1.11 src/lib/libc/db/hash/hash_buf.c
cvs rdiff -r1.9 -r1.10 src/lib/libc/db/hash/hash_func.c
cvs rdiff -r1.8 -r1.9 src/lib/libc/db/hash/hash_log2.c
cvs rdiff -r1.9 -r1.10 src/lib/libc/db/recno/rec_utils.c
cvs rdiff -r1.42 -r1.43 src/lib/libc/gen/__fts13.c
cvs rdiff -r1.28 -r1.29 src/lib/libc/gen/pwcache.c
cvs rdiff -r1.4 -r1.5 src/lib/libc/stdio/fparseln.c
cvs rdiff -r1.16 -r1.17 src/lib/libc/stdlib/getopt_long.c
cvs rdiff -r1.15 -r1.16 src/lib/libc/string/strmode.c
cvs rdiff -r1.33 -r1.34 src/sbin/mknod/mknod.c
cvs rdiff -r1.43 -r1.44 src/share/mk/bsd.hostprog.mk
cvs rdiff -r1.30 -r1.31 src/tools/compat/Makefile
cvs rdiff -r1.38 -r1.39 src/tools/compat/compat_defs.h
cvs rdiff -r0 -r1.1 src/tools/compat/compat_getopt.h
cvs rdiff -r1.44 -r1.45 src/tools/compat/configure
cvs rdiff -r1.43 -r1.44 src/tools/compat/configure.ac
cvs rdiff -r1.8 -r1.9 src/tools/compat/defs.mk.in
cvs rdiff -r1.3 -r1.4 src/tools/compat/nbtool_config.h.in
cvs rdiff -r1.19 -r1.20 src/usr.bin/cksum/cksum.c
cvs rdiff -r1.14 -r1.15 src/usr.bin/cksum/crc.c
cvs rdiff -r1.4 -r1.5 src/usr.bin/cksum/md5.c
cvs rdiff -r1.9 -r1.10 src/usr.bin/cksum/print.c
cvs rdiff -r1.10 -r1.11 src/usr.bin/cksum/sum1.c src/usr.bin/cksum/sum2.c
cvs rdiff -r1.10 -r1.11 src/usr.bin/ctags/C.c
cvs rdiff -r1.9 -r1.10 src/usr.bin/ctags/ctags.c src/usr.bin/ctags/tree.c
cvs rdiff -r1.8 -r1.9 src/usr.bin/ctags/fortran.c src/usr.bin/ctags/lisp.c \
    src/usr.bin/ctags/yacc.c
cvs rdiff -r1.7 -r1.8 src/usr.bin/ctags/print.c
cvs rdiff -r1.17 -r1.18 src/usr.bin/m4/eval.c
cvs rdiff -r1.15 -r1.16 src/usr.bin/m4/expr.c
cvs rdiff -r1.3 -r1.4 src/usr.bin/m4/gnum4.c
cvs rdiff -r1.9 -r1.10 src/usr.bin/m4/look.c
cvs rdiff -r1.34 -r1.35 src/usr.bin/m4/main.c
cvs rdiff -r1.16 -r1.17 src/usr.bin/m4/misc.c
cvs rdiff -r1.4 -r1.5 src/usr.bin/m4/trace.c
cvs rdiff -r1.5 -r1.6 src/usr.bin/menuc/avl.c
cvs rdiff -r1.9 -r1.10 src/usr.bin/menuc/main.c
cvs rdiff -r1.39 -r1.40 src/usr.bin/menuc/mdb.c
cvs rdiff -r1.3 -r1.4 src/usr.bin/menuc/util.c
cvs rdiff -r1.19 -r1.20 src/usr.bin/msgc/msgdb.c
cvs rdiff -r1.6 -r1.7 src/usr.bin/msgc/msgmain.c
cvs rdiff -r1.12 -r1.13 src/usr.bin/rpcgen/rpc_clntout.c \
    src/usr.bin/rpcgen/rpc_parse.c
cvs rdiff -r1.25 -r1.26 src/usr.bin/rpcgen/rpc_cout.c \
    src/usr.bin/rpcgen/rpc_main.c
cvs rdiff -r1.19 -r1.20 src/usr.bin/rpcgen/rpc_hout.c
cvs rdiff -r1.9 -r1.10 src/usr.bin/rpcgen/rpc_sample.c \
    src/usr.bin/rpcgen/rpc_util.c
cvs rdiff -r1.8 -r1.9 src/usr.bin/rpcgen/rpc_scan.c
cvs rdiff -r1.21 -r1.22 src/usr.bin/rpcgen/rpc_svcout.c
cvs rdiff -r1.10 -r1.11 src/usr.bin/rpcgen/rpc_tblout.c
cvs rdiff -r1.18 -r1.19 src/usr.bin/stat/stat.c
cvs rdiff -r1.86 -r1.87 src/usr.bin/xinstall/xinstall.c
cvs rdiff -r1.3 -r1.4 src/usr.bin/xlint/common/emit.c
cvs rdiff -r1.5 -r1.6 src/usr.bin/xlint/common/inittyp.c
cvs rdiff -r1.6 -r1.7 src/usr.bin/xlint/common/mem.c
cvs rdiff -r1.32 -r1.33 src/usr.bin/xlint/lint1/decl.c
cvs rdiff -r1.13 -r1.14 src/usr.bin/xlint/lint1/emit1.c
cvs rdiff -r1.26 -r1.27 src/usr.bin/xlint/lint1/err.c
cvs rdiff -r1.20 -r1.21 src/usr.bin/xlint/lint1/func.c
cvs rdiff -r1.17 -r1.18 src/usr.bin/xlint/lint1/init.c
cvs rdiff -r1.14 -r1.15 src/usr.bin/xlint/lint1/main1.c
cvs rdiff -r1.10 -r1.11 src/usr.bin/xlint/lint1/mem1.c
cvs rdiff -r1.36 -r1.37 src/usr.bin/xlint/lint1/tree.c
cvs rdiff -r1.16 -r1.17 src/usr.bin/xlint/lint2/chk.c
cvs rdiff -r1.8 -r1.9 src/usr.bin/xlint/lint2/hash.c \
    src/usr.bin/xlint/lint2/mem2.c
cvs rdiff -r1.6 -r1.7 src/usr.bin/xlint/lint2/main2.c
cvs rdiff -r1.7 -r1.8 src/usr.bin/xlint/lint2/msg.c
cvs rdiff -r1.13 -r1.14 src/usr.bin/xlint/lint2/read.c
cvs rdiff -r1.34 -r1.35 src/usr.bin/xlint/xlint/xlint.c
cvs rdiff -r1.14 -r1.15 src/usr.bin/yacc/main.c
cvs rdiff -r1.23 -r1.24 src/usr.sbin/config/files.c
cvs rdiff -r1.13 -r1.14 src/usr.sbin/config/hash.c
cvs rdiff -r1.93 -r1.94 src/usr.sbin/config/main.c
cvs rdiff -r1.4 -r1.5 src/usr.sbin/config/mkdevsw.c
cvs rdiff -r1.35 -r1.36 src/usr.sbin/config/mkheaders.c
cvs rdiff -r1.72 -r1.73 src/usr.sbin/config/mkioconf.c
cvs rdiff -r1.61 -r1.62 src/usr.sbin/config/mkmakefile.c
cvs rdiff -r1.16 -r1.17 src/usr.sbin/config/mkswap.c
cvs rdiff -r1.15 -r1.16 src/usr.sbin/config/pack.c
cvs rdiff -r1.42 -r1.43 src/usr.sbin/config/sem.c
cvs rdiff -r1.20 -r1.21 src/usr.sbin/config/util.c
cvs rdiff -r1.14 -r1.15 src/usr.sbin/installboot/ffs.c
cvs rdiff -r1.6 -r1.7 src/usr.sbin/installboot/fstypes.c
cvs rdiff -r1.15 -r1.16 src/usr.sbin/installboot/installboot.c
cvs rdiff -r1.23 -r1.24 src/usr.sbin/installboot/machines.c
cvs rdiff -r1.2 -r1.3 src/usr.sbin/installboot/sum.c
cvs rdiff -r1.2 -r1.3 src/usr.sbin/installboot/arch/amiga.c \
    src/usr.sbin/installboot/arch/next68k.c
cvs rdiff -r1.15 -r1.16 src/usr.sbin/installboot/arch/i386.c
cvs rdiff -r1.13 -r1.14 src/usr.sbin/installboot/arch/sparc64.c
cvs rdiff -r1.28 -r1.29 src/usr.sbin/makefs/ffs.c
cvs rdiff -r1.19 -r1.20 src/usr.sbin/makefs/makefs.c
cvs rdiff -r1.13 -r1.14 src/usr.sbin/makefs/makefs.h
cvs rdiff -r1.16 -r1.17 src/usr.sbin/makefs/walk.c
cvs rdiff -r1.11 -r1.12 src/usr.sbin/makefs/ffs/buf.c
cvs rdiff -r1.13 -r1.14 src/usr.sbin/makefs/ffs/ffs_alloc.c \
    src/usr.sbin/makefs/ffs/ufs_bmap.c
cvs rdiff -r1.12 -r1.13 src/usr.sbin/makefs/ffs/ffs_balloc.c
cvs rdiff -r1.18 -r1.19 src/usr.sbin/makefs/ffs/mkfs.c
cvs rdiff -r1.43 -r1.44 src/usr.sbin/mtree/compare.c
cvs rdiff -r1.5 -r1.6 src/usr.sbin/mtree/crc.c
cvs rdiff -r1.44 -r1.45 src/usr.sbin/mtree/create.c
cvs rdiff -r1.12 -r1.13 src/usr.sbin/mtree/excludes.c
cvs rdiff -r1.4 -r1.5 src/usr.sbin/mtree/getid.c
cvs rdiff -r1.24 -r1.25 src/usr.sbin/mtree/misc.c
cvs rdiff -r1.30 -r1.31 src/usr.sbin/mtree/mtree.c
cvs rdiff -r1.55 -r1.56 src/usr.sbin/mtree/spec.c
cvs rdiff -r1.36 -r1.37 src/usr.sbin/mtree/verify.c
cvs rdiff -r1.28 -r1.29 src/usr.sbin/pwd_mkdb/pwd_mkdb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index