History log of /freebsd-10.0-release/tools/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259128 09-Dec-2013 gjb

Remove svn:mergeinfo from the releng/10.0 branch.

After branch creation from stable/10, the stable/10 branch mergeinfo
was moved to the root of the branch.

Since there have not been any merges from stable/10 to releng/10.0
yet, we do not need to track any of the existing mergeinfo here.

Merges to releng/10.0 should now be done to the root of the branch.

For future branches during the release cycle, unless otherwise noted,
this change will be done as part of the stable/ and releng/ branch
creation.

Discussed with: peter
Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


/freebsd-10.0-release/MAINTAINERS
/freebsd-10.0-release/Makefile.inc1
/freebsd-10.0-release/ObsoleteFiles.inc
/freebsd-10.0-release/UPDATING
/freebsd-10.0-release/bin/df
/freebsd-10.0-release/bin/freebsd-version
/freebsd-10.0-release/cddl
/freebsd-10.0-release/cddl/contrib/opensolaris
/freebsd-10.0-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/print
/freebsd-10.0-release/cddl/contrib/opensolaris/cmd/zfs
/freebsd-10.0-release/cddl/contrib/opensolaris/lib/libzfs
/freebsd-10.0-release/contrib/apr
/freebsd-10.0-release/contrib/apr-util
/freebsd-10.0-release/contrib/atf
/freebsd-10.0-release/contrib/binutils
/freebsd-10.0-release/contrib/bmake
/freebsd-10.0-release/contrib/byacc
/freebsd-10.0-release/contrib/bzip2
/freebsd-10.0-release/contrib/com_err
/freebsd-10.0-release/contrib/compiler-rt
/freebsd-10.0-release/contrib/dialog
/freebsd-10.0-release/contrib/dtc
/freebsd-10.0-release/contrib/ee
/freebsd-10.0-release/contrib/expat
/freebsd-10.0-release/contrib/file
/freebsd-10.0-release/contrib/gcc
/freebsd-10.0-release/contrib/gdb
/freebsd-10.0-release/contrib/gdtoa
/freebsd-10.0-release/contrib/groff
/freebsd-10.0-release/contrib/ipfilter
/freebsd-10.0-release/contrib/ipfilter/ml_ipl.c
/freebsd-10.0-release/contrib/ipfilter/mlfk_ipl.c
/freebsd-10.0-release/contrib/ipfilter/mlh_rule.c
/freebsd-10.0-release/contrib/ipfilter/mli_ipl.c
/freebsd-10.0-release/contrib/ipfilter/mln_ipl.c
/freebsd-10.0-release/contrib/ipfilter/mls_ipl.c
/freebsd-10.0-release/contrib/ldns
/freebsd-10.0-release/contrib/less
/freebsd-10.0-release/contrib/libarchive
/freebsd-10.0-release/contrib/libarchive/cpio
/freebsd-10.0-release/contrib/libarchive/libarchive
/freebsd-10.0-release/contrib/libarchive/libarchive_fe
/freebsd-10.0-release/contrib/libarchive/tar
/freebsd-10.0-release/contrib/libc++
/freebsd-10.0-release/contrib/libc-vis
/freebsd-10.0-release/contrib/libcxxrt
/freebsd-10.0-release/contrib/libexecinfo
/freebsd-10.0-release/contrib/libpcap
/freebsd-10.0-release/contrib/libstdc++
/freebsd-10.0-release/contrib/llvm
/freebsd-10.0-release/contrib/llvm/tools/clang
/freebsd-10.0-release/contrib/mtree
/freebsd-10.0-release/contrib/ncurses
/freebsd-10.0-release/contrib/netcat
/freebsd-10.0-release/contrib/ntp
/freebsd-10.0-release/contrib/nvi
/freebsd-10.0-release/contrib/one-true-awk
/freebsd-10.0-release/contrib/openbsm
/freebsd-10.0-release/contrib/openpam
/freebsd-10.0-release/contrib/openresolv
/freebsd-10.0-release/contrib/pf
/freebsd-10.0-release/contrib/sendmail
/freebsd-10.0-release/contrib/serf
/freebsd-10.0-release/contrib/smbfs
/freebsd-10.0-release/contrib/subversion
/freebsd-10.0-release/contrib/tcpdump
/freebsd-10.0-release/contrib/tcsh
/freebsd-10.0-release/contrib/tnftp
/freebsd-10.0-release/contrib/top
/freebsd-10.0-release/contrib/top/install-sh
/freebsd-10.0-release/contrib/tzcode/stdtime
/freebsd-10.0-release/contrib/tzcode/zic
/freebsd-10.0-release/contrib/tzdata
/freebsd-10.0-release/contrib/unbound
/freebsd-10.0-release/contrib/wpa
/freebsd-10.0-release/contrib/xz
/freebsd-10.0-release/crypto/heimdal
/freebsd-10.0-release/crypto/openssh
/freebsd-10.0-release/crypto/openssl
/freebsd-10.0-release/etc
/freebsd-10.0-release/etc/rc.d
/freebsd-10.0-release/gnu/lib
/freebsd-10.0-release/gnu/usr.bin/binutils
/freebsd-10.0-release/gnu/usr.bin/cc/cc_tools
/freebsd-10.0-release/gnu/usr.bin/gdb
/freebsd-10.0-release/include
/freebsd-10.0-release/lib
/freebsd-10.0-release/lib/libc
/freebsd-10.0-release/lib/libc/stdtime
/freebsd-10.0-release/lib/libc_nonshared
/freebsd-10.0-release/lib/libfetch
/freebsd-10.0-release/lib/libiconv_modules
/freebsd-10.0-release/lib/libsmb
/freebsd-10.0-release/lib/libthr
/freebsd-10.0-release/lib/libutil
/freebsd-10.0-release/lib/libvmmapi
/freebsd-10.0-release/lib/libyaml
/freebsd-10.0-release/lib/libz
/freebsd-10.0-release/release
/freebsd-10.0-release/release/doc
/freebsd-10.0-release/sbin
/freebsd-10.0-release/sbin/camcontrol
/freebsd-10.0-release/sbin/dumpon
/freebsd-10.0-release/sbin/hastd
/freebsd-10.0-release/sbin/ifconfig
/freebsd-10.0-release/sbin/ipfw
/freebsd-10.0-release/sbin/nvmecontrol
/freebsd-10.0-release/share
/freebsd-10.0-release/share/examples/bhyve
/freebsd-10.0-release/share/i18n/csmapper/JIS
/freebsd-10.0-release/share/i18n/esdb/EUC
/freebsd-10.0-release/share/man
/freebsd-10.0-release/share/man/man4
/freebsd-10.0-release/share/man/man4/bhyve.4
/freebsd-10.0-release/share/man/man5
/freebsd-10.0-release/share/man/man7
/freebsd-10.0-release/share/man/man8
/freebsd-10.0-release/share/misc
/freebsd-10.0-release/share/mk
/freebsd-10.0-release/share/mk/bsd.arch.inc.mk
/freebsd-10.0-release/share/syscons
/freebsd-10.0-release/share/zoneinfo
/freebsd-10.0-release/sys
/freebsd-10.0-release/sys/amd64/include/vmm.h
/freebsd-10.0-release/sys/amd64/include/vmm_dev.h
/freebsd-10.0-release/sys/amd64/include/vmm_instruction_emul.h
/freebsd-10.0-release/sys/amd64/include/xen
/freebsd-10.0-release/sys/amd64/vmm
/freebsd-10.0-release/sys/boot
/freebsd-10.0-release/sys/boot/i386/efi
/freebsd-10.0-release/sys/boot/ia64/efi
/freebsd-10.0-release/sys/boot/ia64/ski
/freebsd-10.0-release/sys/boot/powerpc/boot1.chrp
/freebsd-10.0-release/sys/boot/powerpc/ofw
/freebsd-10.0-release/sys/cddl/contrib/opensolaris
/freebsd-10.0-release/sys/conf
/freebsd-10.0-release/sys/contrib/dev/acpica
/freebsd-10.0-release/sys/contrib/dev/acpica/changes.txt
/freebsd-10.0-release/sys/contrib/dev/acpica/common
/freebsd-10.0-release/sys/contrib/dev/acpica/compiler
/freebsd-10.0-release/sys/contrib/dev/acpica/components/debugger
/freebsd-10.0-release/sys/contrib/dev/acpica/components/disassembler
/freebsd-10.0-release/sys/contrib/dev/acpica/components/dispatcher
/freebsd-10.0-release/sys/contrib/dev/acpica/components/events
/freebsd-10.0-release/sys/contrib/dev/acpica/components/executer
/freebsd-10.0-release/sys/contrib/dev/acpica/components/hardware
/freebsd-10.0-release/sys/contrib/dev/acpica/components/namespace
/freebsd-10.0-release/sys/contrib/dev/acpica/components/parser
/freebsd-10.0-release/sys/contrib/dev/acpica/components/resources
/freebsd-10.0-release/sys/contrib/dev/acpica/components/tables
/freebsd-10.0-release/sys/contrib/dev/acpica/components/utilities
/freebsd-10.0-release/sys/contrib/dev/acpica/include
/freebsd-10.0-release/sys/contrib/dev/acpica/os_specific
/freebsd-10.0-release/sys/contrib/ipfilter
/freebsd-10.0-release/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
/freebsd-10.0-release/sys/contrib/ipfilter/netinet/ip_raudio_pxy.c
/freebsd-10.0-release/sys/contrib/libfdt
/freebsd-10.0-release/sys/contrib/octeon-sdk
/freebsd-10.0-release/sys/contrib/x86emu
/freebsd-10.0-release/sys/dev/bvm
/freebsd-10.0-release/sys/dev/fdt/fdt_ic_if.m
/freebsd-10.0-release/sys/dev/hyperv
/freebsd-10.0-release/sys/modules/hyperv
/freebsd-10.0-release/sys/modules/vmm
/freebsd-10.0-release/sys/x86/include/acpica_machdep.h
/freebsd-10.0-release/tools
build
build/options
tools/atsectl
/freebsd-10.0-release/usr.bin/calendar
/freebsd-10.0-release/usr.bin/csup
/freebsd-10.0-release/usr.bin/iscsictl
/freebsd-10.0-release/usr.bin/procstat
/freebsd-10.0-release/usr.sbin
/freebsd-10.0-release/usr.sbin/bhyve
/freebsd-10.0-release/usr.sbin/bhyvectl
/freebsd-10.0-release/usr.sbin/bhyveload
/freebsd-10.0-release/usr.sbin/bsdconfig
/freebsd-10.0-release/usr.sbin/bsdinstall
/freebsd-10.0-release/usr.sbin/ctladm
/freebsd-10.0-release/usr.sbin/ctld
/freebsd-10.0-release/usr.sbin/freebsd-update
/freebsd-10.0-release/usr.sbin/jail
/freebsd-10.0-release/usr.sbin/mergemaster
/freebsd-10.0-release/usr.sbin/mount_smbfs
/freebsd-10.0-release/usr.sbin/ndiscvt
/freebsd-10.0-release/usr.sbin/pkg
/freebsd-10.0-release/usr.sbin/rtadvctl
/freebsd-10.0-release/usr.sbin/rtadvd
/freebsd-10.0-release/usr.sbin/rtsold
/freebsd-10.0-release/usr.sbin/zic
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

258230 16-Nov-2013 gjb

MFC r257583, r258012, r258013:

r257583 (peter):
Remove the WITH_LIBICONV_COMPAT hack that seems to do more harm
than good. This caused libc to spoof the ports libiconv namespace
and provide a colliding libiconv.so.3 to fool rtld. This should
have been removed some time ago.

r258012:
Remove WITH_LIBICONV_COMPAT file to chase after r257583.

r258013:
Regenerate src.conf.5 after removal of WITH_LIBICONV_COMPAT.

Approved by: re (kib)
Sponsored by: The FreeBSD Foundation

Sponsored by: The FreeBSD Foundation


257573 03-Nov-2013 bdrewery

MFC r257378,r257400,r257402,r257440:

Add a pkg(7) manpage for bootstrap

Approved by: bapt
Approved by: re (gjb)


257460 31-Oct-2013 brooks

MFC r257138:

Switch the default mtree to nmtree our new NetBSD derived mtree.

Exp-runs by: bdrewery (ports/182438)
Sponsored by: DARPA/AFRL
Approved by: re (gjb)


257449 31-Oct-2013 brooks

MFC r256915

Stop conflating WITHOUT_CLANG with WITHOUT_CLANG_IS_CC. This allows
bootstrapping a copy of clang without building clang for the base system

which is useful for nanobsd and similar setups. It's still probably
wrong to conflate what is installed as /usr/bin/cc with the selection
of a bootstrap compiler under WITH*_CLANG_IS_CC, but that's for another
day.

Sponsored by: DARPA/AFRL
Approved by: re (gjb)


257447 31-Oct-2013 brooks

MFC r256752, r256946

MFP4: 221483, 221567, 221568, 221670, 221677, 221678, 221800, 221801,
221804, 221805, 222004, 222006, 222055, 222820, 1135077, 1135118,
1136259

Add atse(4), a driver for the Altera Triple Speed Ethernet MegaCore.

The current driver support gigabit Ethernet speeds only and works with
the MegaCore only in the internal FIFO configuration in the soon to be
open sourced BERI CPU configuration.

MFP4: 1187103, 222076, 222057, 222051, 221799

Add atsectl, a simple utility to read and update MAC addresses stored in

the default flash location on Altera DE4 boards. Typically used once
when setting up a board so leaving in tools rather than inflicting on
all users.

To build with world add LOCAL_DIRS=tools/tools/atsectl to the make
command line.

Submitted by: bz
Sponsored by: DARPA/AFRL
Approved by: re (glebius)


256998 23-Oct-2013 bdrewery

MFC r256450:

Rename libbsdyml to libyaml, make private, and bump
SHLIB_MAJOR to 1.0

Approved by: bapt
Approved by: re (glebius)


256366 12-Oct-2013 rpaulo

MFC 256365
Remove most of the ATF tools and the _atf user.

Approved by: re


256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


256198 09-Oct-2013 gjb

Revert r256095, r256120 (partial), r256121:

r256095:
- Add gnu/usr.bin/rcs back to the base system.

r256120:
- Add WITHOUT_RCS back to src.conf.5.

r256121:
- Remove UPDATING entry regarding gnu/usr.bin/rcs removal.

Requested by: many
Approved by: re (marius)
Discussed with: core


256130 07-Oct-2013 jmg

don't assert on bad args, instead return an error..

Since so many programs don't check return value, always NUL terminate
the buf...

fix rounding when using base 1024 (the bug that started it all)...

add a set of test cases so we can make sure that things don't break
in the future...

Thanks to Clifton Royston for testing and the test program...

Approved by: re (hrs, glebius)
MFC after: 1 week


256095 07-Oct-2013 eadler

Good bye RCS. You will be missed.

(devel/rcs and devel/rcs57 are available as alternatives)

Approved by: core
Approved by: re (hrs)


255974 01-Oct-2013 emaste

Remove long-unused GNU ar and ranlib

The libarchive-based replacements have been used since 2009; the GNU
ones were kept to support source upgrades from FreeBSD 6.

Approved by: re@ (delphij)


255964 01-Oct-2013 des

Have makeman always use the mk files from the source tree it's operating
on rather than those from the installed system.

Approved by: re (delphij)


255949 30-Sep-2013 des

Remove BIND.

Approved by: re (gjb)


255938 29-Sep-2013 des

Yet more BIND files that weren't listed in OptionalObsoleteFiles.

Approved by: re (blanket)


255914 27-Sep-2013 des

Remove duplicate entry for the host(1) man page.

Approved by: re (blanket)


255872 25-Sep-2013 des

Additional BIND files.

Submitted by: bdrewery
Approved by: re (blanket)


255850 24-Sep-2013 des

Flip the switch: disable BIND and enable LDNS_UTILS.

Approved by: re (blanket)


255809 23-Sep-2013 des

Add a setup script for unbound(8) called local-unbound-setup. It
generates a configuration suitable for running unbound as a caching
forwarding resolver, and configures resolvconf(8) to update unbound's
list of forwarders in addition to /etc/resolv.conf. The initial list
is taken from the existing resolv.conf, which is rewritten to point to
localhost. Alternatively, a list of forwarders can be provided on the
command line.

To assist this script, add an rc.subr command called "enabled" which
does nothing except return 0 if the service is enabled and 1 if it is
not, without going through the usual checks. We should consider doing
the same for "status", which is currently pointless.

Add an rc script for unbound, called local_unbound. If there is no
configuration file, the rc script runs local-unbound-setup to generate
one.

Note that these scripts place the unbound configuration files in
/var/unbound rather than /etc/unbound. This is necessary so that
unbound can reload its configuration while chrooted. We should
probably provide symlinks in /etc.

Approved by: re (blanket)


255802 22-Sep-2013 des

Remove drill(1) if MK_LDNS_UTILS is false.
Remove host(1) if both MK_BIND and MK_LDNS_UTILS are false.

Approved by: re (blanket)


255722 20-Sep-2013 emaste

Add LLDB bmake infrastructure

This connects LLDB to the build, but it is disabled by default. Add
WITH_LLDB= to src.conf to build it.

Note that LLDB requires a C++11 compiler so is disabled on platforms
using GCC.

Approved by: re (gjb)
Sponsored by: DARPA, AFRL


255637 17-Sep-2013 phk

Don't attempt to build ports with missing dependencies.

Approved by: re (gjb)


255597 15-Sep-2013 des

Build and install the Unbound caching DNS resolver daemon.

Approved by: re (blanket)


255591 15-Sep-2013 des

Tweak wording.

Approved by: re (blanket)


255590 15-Sep-2013 des

Complete the OPENSSH and LDNS sections.

Approved by: re (blanket)


255576 14-Sep-2013 ed

Properly remove c++filt.

The c++filt binary is only installed if ${MK_GCC} == yes && ${MK_CXX} ==
yes. This means that it should be removed if ${MK_GCC} == no ||
${MK_CXX} == no. In its current form, it actually uses a conjunction
instead of a disjunction.

As there is already a separate block for ${MK_CXX} == no listing
c++filt, simply remove the conditional entirely.

Approved by: re (gjb)


255570 14-Sep-2013 trasz

Bring in the new iSCSI target and initiator.

Reviewed by: ken (parts)
Approved by: re (delphij)
Sponsored by: FreeBSD Foundation


255487 12-Sep-2013 hiren

We are exceeding default limit (256) of bracket nesting and clang does not like
it. We should probably fix the code but appeasing clang with this fix for now.
gcc does not have such limit.

Reviewed by: jmg
Approved by: re (hrs), sbruno (mentor, implicit)


255455 10-Sep-2013 des

Clean up the Kerberos build by turning libheimipcc and libheimipcs into
private shared libraries, instead of hacked-together archives of PIC
objects. This makes it possible to build a static libkrb5 that works.

Reviewed by: stas
Approved by: re (gjb)


255454 10-Sep-2013 des

Make this more deterministic by sorting the libraries before processing
them and ensuring that we always use the samme collation rules.

Approved by: re (gjb)


255451 10-Sep-2013 emaste

Add a sendfile regression test for transmit length > file size.

This test identified the issue fixed in FreeBSD-SA-13:11.sendfile.

Sponsored by: The FreeBSD Foundation
Approved by: re (glebius)


255373 07-Sep-2013 antoine

Adjust optional obsolete files with new MK_GNUCXX


255357 07-Sep-2013 antoine

Do not try to remove directories that are part of BSD.include.dist


255354 07-Sep-2013 glebius

Add more leftovers from gcc.


255326 06-Sep-2013 zeising

Add WITH_GCC alongside WITHOUT_GCC.
Remove the comment from WITHOUT_GCC about this not working without an
alternate toolchain, we have clang now.


255325 06-Sep-2013 theraven

Don't delete c++filt when doing a make delete-old if GCC is not built but
C++ is.


255321 06-Sep-2013 theraven

On platforms where clang is the default compiler, don't build gcc or libstdc++.
To enable them, set WITH_GCC and WITH_GNUCXX in src.conf.
Make clang default to using libc++ on FreeBSD 10.
Bumped __FreeBSD_version for the change.

GCC is still enabled on PC98, because the PC98 bootloader requires GCC to build
(or, at least, hard-codes the use of gcc into its build).

Thanks to everyone who helped make the ports tree ready for this (and bapt
for coordinating them all). Also to imp for reviewing this and working on the
forward-porting of the changes in our gcc so that we're getting to a much
better place with regard to external toolchains.

Sorry to all of the people who helped who I forgot to mention by name.

Reviewed by: bapt, imp, dim, ...


255303 06-Sep-2013 jilles

libc/stdio: Allow fopen/freopen modes in any order (except initial r/w/a).

Austin Group issue #411 requires 'e' to be accepted before and after 'x',
and encourages accepting the characters in any order, except the initial
'r', 'w' or 'a'.

Given that glibc accepts the characters after r/w/a in any order and that
diagnosing this problem may be hard, change our libc to behave that way as
well.


255302 06-Sep-2013 jilles

libc/stdio: Run mkostemp test using prove.


255301 06-Sep-2013 jilles

libc/stdio: Provide proper TAP output for fmemopen/open_[w]memstream.

A *.t file should provide Test Anything Protocol output so that it can be
run using the Perl "prove" tool.


255215 04-Sep-2013 jilles

sh: Make return return from the closest function or dot script.

Formerly, return always returned from a function if it was called from a
function, even if there was a closer dot script. This was for compatibility
with the Bourne shell which only allowed returning from functions.

Other modern shells and POSIX return from the function or the dot script,
whichever is closest.

Git 1.8.4's rebase --continue depends on the POSIX behaviour.

Reported by: Christoph Mallon, avg


255122 01-Sep-2013 ian

Fix a compiler warning about signed vs unsigned compare.


255072 30-Aug-2013 jilles

sh: Recognize "--" as end of options in type builtin.

This implementation makes minimal changes: command names starting with "-"
(other than "--") can still be queried normally.


255018 29-Aug-2013 andreast

Remove GNU_PATCH leftover.


255014 29-Aug-2013 pfg

Drop build option switch for the older GNU patch.

As promised, drop the option to make the older GNU patch
the default.

GNU patch is still being built but something drastic may
happen to it to it before Release.


254962 27-Aug-2013 dteske

Formally remove WITH_BSDCONFIG build option and re-generate src.conf.5
NOTE: Should have been inline with revisions 252862 and 254958.


254921 26-Aug-2013 antoine

Add more obsolete files.


254919 26-Aug-2013 antoine

Document WITHOUT_ICONV, WITH_LIBICONV_COMPAT and WITH_USB_GADGET_EXAMPLES


254888 25-Aug-2013 jilles

Fix fcntl F_GETFL F_SETFL for files opened execute-only (O_EXEC).

The FFLAGS and OFLAGS now work correctly also for files opened with O_EXEC.
Except possibly fuse, the other users pass values without O_EXEC set. fuse
appears to assume O_EXEC is handled correctly.

Although F_SETFL may not be commonly used for execute-only file descriptors,
F_GETFL may be useful to find the access mode.


254885 25-Aug-2013 dumbbell

drm/radeon: Import the Radeon KMS driver

This driver is based on Linux 3.8 and a previous effort by kan@.

More informations about this project can be found on the FreeBSD wiki:
https://wiki.freebsd.org/AMD_GPU

The driver is split into:

sys/dev/drm2:
The driver sources.

sys/modules/drm2/radeonkmw:
The driver main kernel module's Makefile.

sys/modules/drm2/radeonkmsfw:
All firmware kernel module Makefiles. There's one directory and one
Makefile for each firmware.

sys/contrib/dev/drm2/radeonkmsfw:
All firmware binary sources.

tools/tools/drm/radeon
Tools to update firmwares or regenerate some headers.

Merging the driver to FreeBSD 9.x may be possible but not a priority for
now.

Help from: kib@, kan@
Tested by: avg@, kwm@, ray@,
Alexander Yerenkow <yerenkow@gmail.com>,
Anders Bolt-Evensen <andersbo87@me.com>,
Denis Djubajlo <stdedjub@googlemail.com>,
J.R. Oldroyd <fbsd@opal.com>,
Mikaël Urankar <mikael.urankar@gmail.com>,
Pierre-Emmanuel Pédron <pepcitron@gmail.com>,
Sam Fourman Jr. <sfourman@gmail.com>,
Wade <wade-is-great@live.com>,
(probably other I forgot...)
HW donations: kyzh, Yakaz


254852 25-Aug-2013 dumbbell

drm: Update drm_pciids.h based on Linux 3.8

This header can be easily updated using the new "gen-drm_pciids" script,
available in tools/tools/drm. The script uses the Linux' drm_pciids.h
header for new IDs, the FreeBSD's one because we add the name of the
device to each IDs, and the PCI IDs database (misc/pciids port) to fill
this name automatically for new IDS.

To call the script:
tools/tools/drm/gen-drm_pciids \
/path/to/linux/drm_pciids.h \
/path/to/freebsd/drm_pciids.h \
/path/to/pciids/pci.ids


254849 25-Aug-2013 jilles

sh: Recognize "--" as end of options in alias builtin.

Aliases starting with "-" (which are non-POSIX) will need to be preceded by
an alias not starting with "-" or the newly added "--".


254843 25-Aug-2013 jilles

sh: Disallow empty simple commands.

As per POSIX, a simple command must have at least one redirection,
assignment word or command word.

These occured in rare cases such as eval "f()" .

The extension of allowing no commands inside { }, if, while, for, etc.
remains.


254806 24-Aug-2013 jilles

sh: Reject ++ and -- in arithmetic.

POSIX does not require ++ and -- in arithmetic. It is probably more useful
to reject them than to treat ++x and --x as x silently.

Note that the behaviour of increment and decrement can be obtained via
(x+=1), ((x+=1)-1), (x-=1) and ((x-=1)+1).

PR: bin/176444


254604 21-Aug-2013 kib

Add simple test for the read/write/lseek on posix shm filedescriptor.

Tested by: pho
Sponsored by: The FreeBSD Foundation


254570 20-Aug-2013 bz

Catch up with various changes to if_data and make this compile again
on HEAD. Seems to be one of the the only tools giving us access to
ifi_baudrate and ifi_baudrate_pf values.

MFC after: 3 days


254413 16-Aug-2013 jilles

sh: Recognize "--" as end of options in bg/fg/jobid builtins.


254412 16-Aug-2013 jilles

sh: Add test for the non-standard jobid builtin.


254411 16-Aug-2013 jilles

Add tests for dup3().


254339 14-Aug-2013 jilles

sh: Recognize "--" as end of options in local builtin.


254335 14-Aug-2013 jilles

sh: Allow a lone redirection before '|', ';;' or ';&'.

Example: </dev/null | :

PR: 181240
MFC after: 1 week


254273 13-Aug-2013 peter

The iconv in libc did two things - implement the standard APIs, the GNU
extensions and also tried to be link time compatible with ports libiconv.
This splits that functionality and enables the parts that shouldn't
interfere with the port by default.

WITH_ICONV (now on by default) - adds iconv.h, iconv_open(3) etc.
WITH_LIBICONV_COMPAT (off by default) adds the libiconv_open etc API, linker
symbols and even a stub libiconv.so.3 that are good enough to be able
to 'pkg delete -f libiconv' on a running system and reasonably expect it
to work.

I have tortured many machines over the last few days to try and reduce
the possibilities of foot-shooting as much as I can. I've successfully
recompiled to enable and disable the libiconv_compat modes, ports that use
libiconv alongside system iconv etc. If you don't enable the
WITH_LIBICONV_COMPAT switch, they don't share symbol space.

This is an extension of behavior on other system. iconv(3) is a standard
libc interface and libiconv port expects to be able to run alongside it on
systems that have it.

Bumped osreldate.


254241 12-Aug-2013 hselasky

Fix some signed comparison compile warnings.


254231 11-Aug-2013 jilles

fnmatch(): Add test for r254091 (pattern with single backslash).

This test cannot be converted to an sh(1) test because the syntax would be
invalid.

PR: 181129
MFC after: 1 week


254159 09-Aug-2013 hselasky

Initial commit of my USB test code which can exercise connected USB
devices and the FreeBSD USB stack itself. This program can be used to
test compliance against well established usb.org standards, also
called chapter-9 tests. The host platform can act as either USB device
or USB host depending on the available hardware. The basic USB
communication happens through FreeBSD's own libusb v2, and some
sysctls are also used to invoke specific error conditions. This test
program can be used to verify correct operation of external USB
harddisks under heavy load and various other conditions. The software
is driven via a simple command line interface. Main supported USB host
classes are "USB mass storage" and "USB modems".


254151 09-Aug-2013 jilles

Add mkostemp() and mkostemps().

These are like mkstemp() and mkstemps() but allow passing open(2) flags like
O_CLOEXEC.


254147 09-Aug-2013 obrien

* Add random_adaptors.[ch] which is basically a store of random_adaptor's.
random_adaptor is basically an adapter that plugs in to random(4).
random_adaptor can only be plugged in to random(4) very early in bootup.
Unplugging random_adaptor from random(4) is not supported, and is probably a
bad idea anyway, due to potential loss of entropy pools.
We currently have 3 random_adaptors:
+ yarrow
+ rdrand (ivy.c)
+ nehemeiah

* Remove platform dependent logic from probe.c, and move it into
corresponding registration routines of each random_adaptor provider.
probe.c doesn't do anything other than picking a specific random_adaptor
from a list of registered ones.

* If the kernel doesn't have any random_adaptor adapters present then the
creation of /dev/random is postponed until next random_adaptor is kldload'ed.

* Fix randomdev_soft.c to refer to its own random_adaptor, instead of a
system wide one.

Submitted by: arthurmesh@gmail.com, obrien
Obtained from: Juniper Networks
Reviewed by: so (des)


254073 07-Aug-2013 obrien

Improve the sysctl symbol extraction from the kernel so that it find more
(all?) sysctl's. Previously some where missed, depending on how they were
defined.


254010 06-Aug-2013 sbruno

Adjust make knobs to know that WITH_ICONV installs a /usr/bin/iconv

Remove it if the knob isn't tweaked. Certain ports seem to think that
if /usr/bin/iconv exists, then libc has built in libiconv things and will
blow up pretty nicely when built.

Reviewed by: gjb@
MFC after: 2 weeks


253986 06-Aug-2013 ae

Fix formatting warning.

MFC after: 1 week


253870 01-Aug-2013 np

Teach cxgbetool to display T5 congestion manager context.


253845 31-Jul-2013 obrien

Back out r253779 & r253786.


253779 29-Jul-2013 obrien

Decouple yarrow from random(4) device.

* Make Yarrow an optional kernel component -- enabled by "YARROW_RNG" option.
The files sha2.c, hash.c, randomdev_soft.c and yarrow.c comprise yarrow.

* random(4) device doesn't really depend on rijndael-*. Yarrow, however, does.

* Add random_adaptors.[ch] which is basically a store of random_adaptor's.
random_adaptor is basically an adapter that plugs in to random(4).
random_adaptor can only be plugged in to random(4) very early in bootup.
Unplugging random_adaptor from random(4) is not supported, and is probably a
bad idea anyway, due to potential loss of entropy pools.
We currently have 3 random_adaptors:
+ yarrow
+ rdrand (ivy.c)
+ nehemeiah

* Remove platform dependent logic from probe.c, and move it into
corresponding registration routines of each random_adaptor provider.
probe.c doesn't do anything other than picking a specific random_adaptor
from a list of registered ones.

* If the kernel doesn't have any random_adaptor adapters present then the
creation of /dev/random is postponed until next random_adaptor is kldload'ed.

* Fix randomdev_soft.c to refer to its own random_adaptor, instead of a
system wide one.

Submitted by: arthurmesh@gmail.com, obrien
Obtained from: Juniper Networks
Reviewed by: obrien


253767 29-Jul-2013 ae

Include stdint.h to fix build.

Pointed by: Olivier Cochard-Labbé


253750 28-Jul-2013 avg

Revert r253748,253749

This WIP should not have been committed yet.

Pointyhat to: avg


253749 28-Jul-2013 avg

remove needless inclusion of machine/cpu.h in userland

MFC after: 21 days


253691 26-Jul-2013 np

Add support for packet-sniffing tracers to cxgbe(4). This works with
all T4 and T5 based cards and is useful for analyzing TSO, LRO, TOE, and
for general purpose monitoring without tapping any cxgbe or cxl ifnet
directly.

Tracers on the T4/T5 chips provide access to Ethernet frames exactly as
they were received from or transmitted on the wire. On transmit, a
tracer will capture a frame after TSO segmentation, hw VLAN tag
insertion, hw L3 & L4 checksum insertion, etc. It will also capture
frames generated by the TCP offload engine (TOE traffic is normally
invisible to the kernel). On receive, a tracer will capture a frame
before hw VLAN extraction, runt filtering, other badness filtering,
before the steering/drop/L2-rewrite filters or the TOE have had a go at
it, and of course before sw LRO in the driver.

There are 4 tracers on a chip. A tracer can trace only in one direction
(tx or rx). For now cxgbetool will set up tracers to capture the first
128B of every transmitted or received frame on a given port. This is a
small subset of what the hardware can do. A pseudo ifnet with the same
name as the nexus driver (t4nex0 or t5nex0) will be created for tracing.
The data delivered to this ifnet is an additional copy made inside the
chip. Normal delivery to cxgbe<n> or cxl<n> will be made as usual.

/* watch cxl0, which is the first port hanging off t5nex0. */
# cxgbetool t5nex0 tracer 0 tx0 (watch what cxl0 is transmitting)
# cxgbetool t5nex0 tracer 1 rx0 (watch what cxl0 is receiving)
# cxgbetool t5nex0 tracer list
# tcpdump -i t5nex0 <== all that cxl0 sees and puts on the wire

If you were doing TSO, a tcpdump on cxl0 may have shown you ~64K
"frames" with no L3/L4 checksum but this will show you the frames that
were actually transmitted.

/* all done */
# cxgbetool t5nex0 tracer 0 disable
# cxgbetool t5nex0 tracer 1 disable
# cxgbetool t5nex0 tracer list
# ifconfig t5nex0 destroy


253689 26-Jul-2013 pfg

Make the BSD-licensed patch the default.

The BSD-licensed patch(1) command has matured and it's behaviour
can be considered equivalent to the older version of GNU patch
in the tree.

The switch has been extensively tested [1] and only two ports
presented regressions, which have since been fixed.

For convenience a new WITH_GNU_PATCH option is available,
but it will likely be removed in the near future.

PR: 176313
Approved by: portmgr


253662 26-Jul-2013 zont

Remove define and documentation for vm_pageout_algorithm missed in r253587


253605 24-Jul-2013 avg

zfsboottest: remove explicit -Werror

Unfortunately sys/boot is compliled without -Werror at the moment.

MFC after: 7 days


253581 23-Jul-2013 jilles

wordexp(): Fix syntax validation for backslashes in single-quotes.


253526 21-Jul-2013 kib

Fix several warnings.
Fix crash in aio_pty_cleanup() by initializing the pointer before
dereferencing.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week


253447 18-Jul-2013 kevlo

Include stdint.h when use intmax_t.

Reported by: bde


253442 18-Jul-2013 kevlo

Replace PRId64 with "jd" in a printf call. Cast the corresponding value to
intmax_t, because the original type is off_t.

Reported by: bde


253403 17-Jul-2013 kevlo

Add missing headers.


253402 17-Jul-2013 kevlo

Use PRId64 instead of %gd to print an int64_t.


253396 16-Jul-2013 andrew

2 years, 10 months, 22 days after the projects/arm_eabi branch was created
make the ARM EABI the default ABI on arm, armeb, armv6 and armv6eb.

This is intended to be the default ABI from now on with the old ABI to be
retired. Because of this all users are strongly suggested to upgrade to the
ARM EABI.

As the two ABIs are incompatible it is unlikely upgrading in place will
work. Users should perform a full backup and either use an external machine
to upgrade, or install to an alternative location on their media. They
should also reinstall all ports or packages when these are available.

The only known issues are:
- pkg incorrectly detects the ABI. This is fixed upstream, and will a
patch will be made to the port.
- GDB can have issues with executables built with clang.

__FreeBSD_version has been bumped.


253386 16-Jul-2013 kevlo

Need to define NO_MAN here.


253385 16-Jul-2013 kevlo

Use MAN= instead of NO_MAN=

For some reason it still tries to install a priv.1 when using NO_MAN,
even though there isn't one yet.


253384 16-Jul-2013 kevlo

Add missing header needed by sleep(3).


253305 12-Jul-2013 bapt

Disable building of pkg_install by default
If people still want to have pkg_install they can specify WITH_PKGTOOLS when building world


253304 12-Jul-2013 bapt

Ensure the locale is LC_ALL=C when regenerating src.conf.5

MFC after: 3 days


253271 12-Jul-2013 jilles

sh: Do not read from stdin if an error occurs during -i -c cmd.

Although using -i with -c does not seem very useful, it seems inappropriate
to read commands from the terminal in this case.

Side effect: if the -s -c extension is used and the -s option is turned off
using 'set +s' during the interactive part, the shell now exits after an
error or interrupt. Note that POSIX only specifies -s as option to sh, not
to set.

See also Austin Group issue #718.


253258 12-Jul-2013 des

Remove authpf-noip along with authpf.

Reminded by: delphij@


253081 09-Jul-2013 ae

Prepare network statistics structures for migration to PCPU counters.
Use uint64_t as type for all fields of structures.

Changed structures: ahstat, arpstat, espstat, icmp6_ifstat, icmp6stat,
in6_ifstat, ip6stat, ipcompstat, ipipstat, ipsecstat, mrt6stat, mrtstat,
pfkeystat, pim6stat, pimstat, rip6stat, udpstat.

Discussed with: arch@


253068 09-Jul-2013 avg

zfsboottest.sh: remove checks for things that are not strictly required

MFC after: 10 days


253067 09-Jul-2013 avg

zfsboottest: sync with changes in zfs boot code

- spa status can not be called before spa init
- libzfs.h inclusion is now required
- fix alternative code for explicit root dataset lookup

MFC after: 10 days


252561 03-Jul-2013 zeising

Document WITHOUT_SVNLITE and WITH_SVN.

PR: docs/180025
Submitted by: Garrett Cooper <yaneurabeya@gmail.com>


252470 01-Jul-2013 np

Count the number of hits for a filter by default.

MFC after: 3 days


252207 25-Jun-2013 adrian

Add include path to the ar9300 HAL.


252175 24-Jun-2013 eadler

Add missing Obsolete Files

Submitted by: Kurt Lidl <lidl@pi-coral.com>


251966 18-Jun-2013 peter

Teach delete-old how to clean up after WITH/WITHOUT_SVN{LITE} permutations.


251867 17-Jun-2013 eadler

Restore "all rights reserved" (spelled correctly). This was actually part of the standard text of the license which I did not realize prior.

Approved by: bushman


251818 16-Jun-2013 eadler

Remove lines declaring "All rights reserved" or similar comments: they
are not true as the files are actually under the BSD-2 license

Approved by: bushman


251797 15-Jun-2013 jilles

sh: Add tests for 'local -' (save shell options).


251794 15-Jun-2013 eadler

Remove CVS from the base system.

Discussed with: many
Reviewed by: peter, zi
Approved by: core


251739 14-Jun-2013 adrian

Link the AR9300 EEPROM dump tool into the build.


251738 14-Jun-2013 adrian

Begin fleshing out an AR9300 EEPROM dump helper utility.


251737 14-Jun-2013 adrian

Add missing formatting strings.

Thanks to: clang


251685 13-Jun-2013 emaste

Use portable string comparison

We support == in /bin/sh now, but it ought to be avoided, and my use of
it was accidental.


251601 10-Jun-2013 emaste

Handle options that override other options

This is a workaround for WITH_LDNS_UTILS forcing BIND_UTILS off. It can
be reverted when we no longer have these conflicting options, or made more
general if we grow more cases like this.


251598 10-Jun-2013 das

Fix some bugs in the complex trig tests so that they test both double
and float precision properly.


251563 09-Jun-2013 gjb

Add freebsd-update.conf(5) to OptionalObsoleteFiles.inc

PR: 179437
Approved by: kib (mentor)
MFC after: 1 week


251558 08-Jun-2013 ed

Add testing utility for behavior of atomic ops.

This small utility performs a sequence of atomic operations with random
parameters on an atomic variable. For every type, we also create 16
variables, to ensure that we test the correctness at different
alignments.


251512 07-Jun-2013 emaste

Add a new knob WITH_DEBUG_FILES to control the building of standalone
debug files for userland programs and libraries. The "-g" debug flag
is automatically applied when WITH_DEBUG_FILES is set.

The debug files are now named ${prog}.debug and ${shlib}.debug for
consistency with other systems and documentation. In addition they are
installed under /usr/lib/debug, to simplify the process of installing
them if needed after a crash. Users of bsd.{prog,lib}.mk outside of the
base system place the standalone debug files in a .debug subdirectory.
GDB automatically searches both of these directories for standalone
debug files.

Thanks to everyone who contributed changes, review, and testing during
development.


251475 06-Jun-2013 emaste

Switch to 2-clause license and standard text

Approved by: bms@


251430 05-Jun-2013 jilles

sh: Return status 127 for unknown jobs in wait builtin.

This is required by POSIX, at least for pids that are not known child
processes.

Other problems with job specifications still cause wait to abort with
exit status 2.

PR: 176916


251429 05-Jun-2013 jilles

sh: Allow multiple operands in wait builtin.

This is only part of the PR; the behaviour for unknown/invalid pids/jobs
remains unchanged (aborts the builtin with status 2).

PR: 176916
Submitted by: Vadim Goncharov


251426 05-Jun-2013 luigi

new features (mostly for testing netmap capabilities)

+ pkt-gen -f rx now remains active even when traffic stops
Previous behaviour (exit after 1 second of silence) can be
restored with the -W option

+ the -X option does a hexdump of the content of a packet (both tx and rx).
This can be useful to check what goes in and out.

+ the -I option instructs the sender to use indirect buffers
(not really useful other than to test the kernel module in the
VALE switch)


251398 04-Jun-2013 adrian

Add RX STBC statistics.


251368 04-Jun-2013 obrien

Match the options of the kernel.


251314 03-Jun-2013 ed

Add libiconv based versions of *c16*() and *c32*().

I initially thought wchar_t was locale independent, but this seems to be
only the case on Linux. This means that we cannot depend on the *wc*()
routines to implement *c16*() and *c32*(). Instead, use the Citrus
libiconv that is part of libc.

I'll see if there is anything I can do to make the existing functions
somewhat useful in case the system is built without libiconv in the
nearby future. If not, I'll simply remove the broken implementations.

Reviewed by: jilles, gabor


251293 03-Jun-2013 das

Add more tests for log functions. A few are commented out because the
long double versions don't pass yet. (They are rather nit-picky cases,
so there's ongoing discussion with Bruce about whether it is worth the
performance cost.)


251241 02-Jun-2013 das

Factor out some common code from the libm tests. This is a bit messy
because different tests have different ideas about what it means to be
"close enough" to the right answer, depending on the properties of the
function being tested. In the process, I fixed some warnings and
added a few more 'volatile' hacks, which are sufficient to make all
the tests pass at -O2 with clang.


251239 02-Jun-2013 markj

This test is working now, so remove it from NOTWORK.


251208 31-May-2013 jilles

test: Remove -ntXY and -otXY primaries.

This reverts commit r247274.

As maintainer of sh, I disapprove of this feature addition.

It is too specific and can be done without easily using find(1) or stat(1).
I will add some hints to the test(1) man page shortly.

In general, FreeBSD sh is not the place to invent new shell language
features. This is how it has been maintained and adding features randomly
does not work with that.

The new syntax (e.g. [ FILE1 -ntca FILE2 ]) looks cryptic to me.


251180 31-May-2013 jilles

sh: Add test cases for break outside a loop.

In most shells (including our sh), break outside a loop does nothing with
status 0, or at least does not abort. Therefore, scripts sometimes (buggily)
depend on this.


251174 31-May-2013 obrien

Different approach to making all compilers happy.


251173 31-May-2013 obrien

Allow building with clang (which is being really stupid here...).


251139 30-May-2013 luigi

Bring in a number of new features, mostly implemented by Michio Honda:

- the VALE switch now support up to 254 destinations per switch,
unicast or broadcast (multicast goes to all ports).

- we can attach hw interfaces and the host stack to a VALE switch,
which means we will be able to use it more or less as a native bridge
(minor tweaks still necessary).
A 'vale-ctl' program is supplied in tools/tools/netmap
to attach/detach ports the switch, and list current configuration.

- the lookup function in the VALE switch can be reassigned to
something else, similar to the pf hooks. This will enable
attaching the firewall, or other processing functions (e.g. in-kernel
openvswitch) directly on the netmap port.

The internal API used by device drivers does not change.

Userspace applications should be recompiled because we
bump NETMAP_API as we now use some fields in the struct nmreq
that were previously ignored -- otherwise, data structures
are the same.

Manpages will be committed separately.


251132 30-May-2013 luigi

add support for rate-limiting in the sender (-R ...)

Obtained from: Giuseppe Lettieri


251131 30-May-2013 luigi

add a compile-time option to copy packets instead of doing
the buffer swapping.


251130 30-May-2013 luigi

remove use of deprecated ioctl()


251120 30-May-2013 das

Fix some harmless bugs in a test.


251119 30-May-2013 das

Basic tests for complex inverse trig and hyperbolic functions.


251056 28-May-2013 joel

mdoc: silence a few mandoc lint warnings.


251053 28-May-2013 tijl

Fix cexp regression tests that have an infinite real part. The signs of the
result depend on the cosine and sine of the imaginary part.
Small values are used in the new tests such that cosine and sine are well
defined.

Reviewed by: das


251024 27-May-2013 das

Fix some regressions caused by the switch from gcc to clang. The fixes
are workarounds for various symptoms of the problem described in clang
bugs 3929, 8100, 8241, 10409, and 12958.

The regression tests did their job: they failed, someone brought it
up on the mailing lists, and then the issue got ignored for 6 months.
Oops. There may still be some regressions for functions we don't have
test coverage for yet.


250989 25-May-2013 ed

Add missing #includes, to keep Clang silent.


250899 22-May-2013 adrian

Implement beacon event debugging in athalq.


250883 21-May-2013 ed

Add <uchar.h>.

The <uchar.h> header, part of C11, adds a small number of utility
functions for 16/32-bit "universal" characters, which may or may not be
UTF-16/32. As our wchar_t is already ISO 10646, simply add light-weight
wrappers around wcrtomb() and mbrtowc().

While there, also add (non-yet-standard) _l functions, similar to the
ones we already have for the other locale-dependent functions.

Reviewed by: theraven


250839 21-May-2013 delphij

BMAKE is now being built by default.


250830 20-May-2013 brooks

Cleanups and markup improvements suggested by trociny and joel.


250827 20-May-2013 jilles

popen(): Add 'e' mode character to set close-on-exec on the new fd.

If 'e' is used, the kernel must support the recently added pipe2() system
call.

The use of pipe2() with O_CLOEXEC also fixes race conditions between
concurrent popen() calls from different threads, even if the close-on-exec
flag on the fd of the returned FILE is later cleared (because popen() closes
all file descriptors from earlier popen() calls in the child process).
Therefore, this approach should be used in all cases when pipe2() can be
assumed present.

The old version of popen() rejects "re" and "we" but treats "r+e" like "r+".


250825 20-May-2013 jilles

Add a test program for popen().


250717 16-May-2013 joel

Minor mdoc improvements.


250698 16-May-2013 brooks

Add a sample script to create filesystem images from an installed tree
created by installworld+distribution with the -DNO_ROOT option.


250659 15-May-2013 brooks

Add support for an external cross compiler. The cross compiler is
specified by passing the XCC, XCXX, and XCPP variables (corresponding to
CC, CXX, and CPP) to buildworld/buildkernel. The compiler must be clang
or be configured to target the appropriate architecture.

To speed build times, if XCC is an absolute path or
WITHOUT_CROSS_COMPILER is defined then no cross compiler will be built
during the cross-tools stage.

Limited documentation of this feature can currently be found at:

https://wiki.freebsd.org/ExternalToolchain

This functionality should be considered experimental and is subject to
change without notice.

Sponsored by: DARPA, AFRL
Discussed with: imp, sjg


250658 15-May-2013 brooks

Add a new option WITHOUT_FORMAT_EXTENSIONS to disable flags related to
checking our kernel printf extensions. This is useful to allow
compilers without these extensions to build kernels.

Sponsored by: DARPA, AFRL


250612 13-May-2013 hiren

As python3 does not have raw_input(), convert it to input() when we
are using python3.

PR: 177214
Reviewed by: gnn
Approved by: sbruno (mentor)


250544 12-May-2013 peter

Tidy up some CVS workarounds.


250533 12-May-2013 eadler

Unconditionally install 210.backup-aliases as many MTAs other than
sendmail support the use of /etc/aliases.

PR: conf/176098
Submitted by: ak
MFC after: 2 weeks


250530 11-May-2013 jilles

Add simple testcases for fcntl(F_DUP2FD_CLOEXEC).


250513 11-May-2013 jilles

Add simple testcases for fcntl(F_DUPFD_CLOEXEC).


250512 11-May-2013 jilles

Add missing argument to fcntl(F_DUPFD) in regression test.


250266 05-May-2013 adrian

Add the AR9300 descriptor decoding code.


250265 05-May-2013 adrian

This is a simple script to output the delta between each TX and TXSTATUS.

Useful for debugging TDMA.


250242 04-May-2013 stefanf

Add a few xargs tests related to -0, -n and quoting.


250222 03-May-2013 jilles

sh: Remove racy test case for read builtin.

This test case sometimes fails because of an EINTR-related race condition.
Fixing this race condition likely requires an extra system call per byte,
which would make the read builtin even slower than it already is, or very
complicated trickery. Therefore, remove the test case for now.


250214 03-May-2013 jilles

sh: Improve error handling in read builtin:

* If read -t times out, return status as if interrupted by SIGALRM
(formerly 1).
* If a trapped signal interrupts read, return status 128+sig (formerly 1).
* If [EINTR] occurs but there is no trap, retry the read (for example
because of a SIGWINCH in interactive mode).
* If a read error occurs, write an error message and return status 2.

As before, a variable assignment error returns 2 and discards the remaining
data read.


250099 30-Apr-2013 luigi

sync with my local copy (this file may go away, eventually)


250036 28-Apr-2013 n_hibma

Replace a silly command sequence with a proper if-then-else.
Generate images sparsely. This saves space and time, especially when
generating images inside a VM (PR 173482).
Add a 'true' statement to last_orders to prevent some version of sh from
tripping over an empty function.


250034 28-Apr-2013 n_hibma

Doing a cpio from /var/empty if dir was not specified or non-existent
copies its mode to the destination. This is not desirable.
Rephrase this code to be more sensible.

PR: 173483
MFC after: 1 week


250024 28-Apr-2013 eadler

When the world is built WITHOUT_OPENSSH also don't
install ssh-copy-id.

PR: misc/177590
Submitted by: Oleg Ginzburg <olevole@olevole.ru>
Reviewed by: imp


249966 27-Apr-2013 eadler

Add a comma to satisfy Igor.


249960 27-Apr-2013 eadler

Remove IDEA from OptionalObsoleteFiles.inc

Also add an UPDATING entry (requsted by gjb)


249959 26-Apr-2013 eadler

Remove the WITH_IDEA option and build it unconditionally.
The European version of the patent expired in 2011.
The US version of the patent expired in 2012 or prior.

Reviewed by: des
No objection from: cperciva, ehaupt


249594 17-Apr-2013 pjd

Style cleanups.


249587 17-Apr-2013 gabor

- Correct mispellings of word and

Submitted by: Christoph Mallon <christoph.mallon@gmx.de> (via private mail)


249582 17-Apr-2013 gabor

- Correct mispellings of the word occurrence

Submitted by: Christoph Mallon <christoph.mallon@gmx.de> (via private mail)


249430 12-Apr-2013 pluknet

Fix build.
- pass a format string to printf
- catch up with constifying uz_name

MFC after: 3 days


249423 12-Apr-2013 dim

Upgrade our copy of llvm/clang to trunk r178860, in preparation of the
upcoming 3.3 release (branching and freezing expected in a few weeks).

Preliminary release notes can be found at the usual location:
<http://llvm.org/docs/ReleaseNotes.html>

An MFC is planned once the actual 3.3 release is finished.


249407 12-Apr-2013 jilles

sh: Don't modify exit status when break/continue/return passes !.

This matches what would happen if ! P were to be replaced with
if P; then false; else true; fi.

Example:
f() { ! return 0; }; f


249368 11-Apr-2013 np

Set and display the IP fragment bit correctly when dealing with
the filter mode.

MFC after: 3 days.


249220 06-Apr-2013 jilles

sh: Add a variation on builtins/eval4.0 where the cmdsubst returns 0.


248987 01-Apr-2013 jilles

wordexp(): Remove wrong IFS usage.

Words in shell script are separated by spaces or tabs independent of the
value of IFS. The value of IFS is only relevant for the result of
substitutions. Therefore, there should be a space between 'wordexp' and the
words to be expanded, not an IFS character.

Paranoia might dictate that the shell ignore IFS from the environment (even
though our sh currently uses it), so do not depend on it in the new test
case.


248925 30-Mar-2013 np

cxgbe(4): Add support for Chelsio's Terminator 5 (aka T5) ASIC. This
includes support for the NIC and TOE features of the 40G, 10G, and
1G/100M cards based on the T5.

The ASIC is mostly backward compatible with the Terminator 4 so cxgbe(4)
has been updated instead of writing a brand new driver. T5 cards will
show up as cxl (short for cxlgb) ports attached to the t5nex bus driver.

Sponsored by: Chelsio


248798 27-Mar-2013 rene

Properly spell "Class Based Queueing"

PR: www/177412
Submitted by: Oliver Loch <grimeton@gmx.net>
Approved by: cognet


248693 25-Mar-2013 gleb

Add shlib-compat under tools.

shlib-compat is ABI compatibility checker for shared libraries with
symbol versioning.


248669 23-Mar-2013 adrian

More indentation fixes.


248668 23-Mar-2013 adrian

Expose the beacon miss counter.


248632 23-Mar-2013 adrian

Add AR9300 descriptor decoding.


248603 21-Mar-2013 pjd

Update regression tests after adding chflagsat(2).

Sponsored by: The FreeBSD Foundation


248597 21-Mar-2013 pjd

- Make 'flags' argument to chflags(2), fchflags(2) and lchflags(2) of type
u_long. Before this change it was of type int for syscalls, but prototypes
in sys/stat.h and documentation for chflags(2) and fchflags(2) (but not
for lchflags(2)) stated that it was u_long. Now some related functions
use u_long type for flags (strtofflags(3), fflagstostr(3)).
- Make path argument of type 'const char *' for consistency.

Discussed on: arch
Sponsored by: The FreeBSD Foundation


248564 20-Mar-2013 neel

Set WARNS=3 so this actually compiles.


248396 16-Mar-2013 pjd

Update the tests now that absence of the O_APPEND flag requires CAP_SEEK
capability. Add some more tests.

Sponsored by: The FreeBSD Foundation


248394 16-Mar-2013 pjd

The mode argument for open(2)/openat(2) only makes sense if the O_CREAT flag
was given.

Sponsored by: The FreeBSD Foundation


248349 15-Mar-2013 jilles

sh: Recognize "--" and explicitly reject options in wait builtin.

If syntactically invalid job identifiers are to be taken as jobs that exited
with status 127, this should not apply to options, so that we can add
options later if need be.


248304 15-Mar-2013 pjd

Make file name generation to work with both new and old versions of OpenSSL.

Sponsored by: The FreeBSD Foundation


247854 05-Mar-2013 np

Fix compile warning by including ctype.h for isdigit().

MFC after: 1 day


247779 04-Mar-2013 bapt

Import libyaml as libbsdyml (private brand name)

LibYAML is a YAML 1.1 parser and emitter under MIT license which will
soon be used by the pkg boostrap (usr.bin/pkg) and bhyve

Reviewed by: roberto, antoine


247720 03-Mar-2013 jilles

sh: When executing a trap, keep exit status along with evalskip.

This ensures 'return' in a trap returns the correct status to the caller.

If evalskip is not set or if it is overridden by a previous evalskip, keep
the old behaviour of restoring the exit status from before the trap.


247676 02-Mar-2013 pjd

If all ioctls are allowed, cap_ioctls_get(2) will return CAP_IOCTLS_ALL.
Update regression tests.


247669 02-Mar-2013 pjd

Add support for bindat(2) and connectat(2).

Sponsored by: The FreeBSD Foundation


247606 02-Mar-2013 pjd

Add regression tests for the new Capsicum system calls.

Sponsored by: The FreeBSD Foundation


247605 02-Mar-2013 pjd

Update existing regression tests after Capsicum overhaul.


247414 27-Feb-2013 jmg

fix this script so we don't expand the second $FreeBSD since svn thinks
the $ in $1 ends the keyword, and expands it...


247411 27-Feb-2013 jhb

Add an implementation of open_memstream() and open_wmemstream(). These
routines provide write-only stdio FILE objects that store their data in a
dynamically allocated buffer. They are a string builder interface somewhat
akin to a completely dynamic sbuf.

Reviewed by: bde, jilles (earlier versions)
MFC after: 1 month


247274 25-Feb-2013 peterj

Enhance test(1) by adding provision to compare any combination of the
access, birth, change and modify times of two files, instead of only
being able to compare modify times. The builtin test in sh(1) will
automagically acquire the same expansion.

Approved by: grog
MFC after: 2 weeks


247206 23-Feb-2013 jilles

sh: If a SIGINT or SIGQUIT interrupts "wait", return status 128+sig.


247190 23-Feb-2013 jilles

sh: Test that the exit status is 1 if read encounters EOF.


246979 19-Feb-2013 adrian

Print out the RTS/CTS rate in the TX descriptor.


246935 18-Feb-2013 adrian

* Add initial debugging of the interrupt status entry
* Add in the TDMA debugging entries that I added a while ago


246934 18-Feb-2013 adrian

Make this output more terse.


246896 17-Feb-2013 luigi

update the netmap example programs merging some common code in nm_util.c

pkt-gen now implements several functions (unlimited transmit, receive,
ping-pong) and can operate on a 'tap' device.


246830 15-Feb-2013 des

Oops, I flipped LDNS_UTILS but forgot to update the description.


246827 15-Feb-2013 des

Import LDNS and build it as an internal library.


246670 11-Feb-2013 pluknet

Major update for unix_cmsg from Andrey Simonenko.

Quoting the submitter:
- Added tests for SCM_BINTIME, LOCAL_PEERCRED, cmsghdr.cmsg_len
- Code that checks correctness of groups was corrected (getgroups(2) change)
- unix_cmsg.c was completely redesigned and simplified
- Use less timeout value in unix_cmsg.c for faster work
- Added support for not sending data in a message, not sending data and
data array associated with a cmsghdr structure in a message
- Existent tests were improved
- unix_cmsg.t was redesigned and simplified

Correctness of unix_cmsg verified on 7.1-STABLE, 9.1-STABLE and 10-CURRENT.

PR: bin/131567
Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
MFC after: 2 weeks


246649 11-Feb-2013 adrian

Teach athalq about the recent if_ath_alq timestamp format change.


246262 02-Feb-2013 dim

Add missing src.conf(5) fragments for WITHOUT_LIBCPLUSPLUS and WITH_GPL_DTC.


246259 02-Feb-2013 dim

Pull in r170135 from upstream clang trunk:

Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user
specifies not to. Dont build ASTMatchers with Rewriter disabled and
StaticAnalyzer when it's disabled.

Without all those three, the clang binary shrinks (x86_64) from ~36MB
to ~32MB (unstripped).

To disable these clang components, and get a smaller clang binary built
and installed, set WITHOUT_CLANG_FULL in src.conf(5). During the
initial stages of buildworld, those extra components are already
disabled automatically, to save some build time.

MFC after: 1 week


246206 01-Feb-2013 gahr

- Fix more style(9)-related issues (copyright header, spaces after function
names, unnecessary casts)
- Change type of boolean variable from char to bool

Suggested by: jhb, zont, jmallett
Reviewed by: cognet
Approved by: cognet


246148 31-Jan-2013 gahr

- Remove underscores from the internal structure name, as it doesn't collide
with the user's namespace.

- Correct size and position variables type from long to size_t.

- Do not set errno to ENOMEM on malloc failure, as malloc already does so.

- Implement the concept of "buffer data length", which mandates what SEEK_END
refers to and the allowed extent for a read.

- Use NULL as read-callback if the buffer is opened in write-only mode.
Conversely, use NULL as write-callback when opened in read-only mode.

- Implement the handling of the ``b'' character in the mode argument. A binary
buffer differs from a text buffer (default mode if ``b'' is omitted) in that
NULL bytes are never appended to writes and that the "buffer data length"
equals to the size of the buffer.

- Remove shall from the man page. Use indicative instead. Also, specify that
the ``b'' flag does not conform with POSIX but is supported by glibc.

- Update the regression test so that the ``b'' functionality and the "buffer
data length" concepts are tested.

- Minor style(9) corrections.

Suggested by: jilles
Reviewed by: cognet
Approved by: cognet


246120 30-Jan-2013 gahr

Add fmemopen(3), an interface to get a FILE * from a buffer in memory, along
with the respective regression test.
See http://pubs.opengroup.org/onlinepubs/9699919799/functions/fmemopen.html

Reviewed by: cognet
Approved by: cognet


246119 30-Jan-2013 kib

Rework the handling of the children for the pthread_vfork_test. The
trivial handler for SIGCHLD is installed, and SIGCHLD is blocked, to
not abandon our zombies to init(8). This way, the zombies are around
slightly longer, allowing to actually exercise the logic for p_pwait
use by the test.

MFC after: 1 week


246074 29-Jan-2013 gabor

- Add a BSD-licensed patch, ported by Pedro F. Giffuni (pfg) from
DragonflyBSD and install it as bsdpatch. WITH_BSD_PATCH makes it
default and installs GNU patch as gnupatch.

Submitted by: pfg
Obtained from: The DragonflyBSD Project


245893 24-Jan-2013 brooks

Use = not == in test arguments.

Submitted by: Christoph Mallon <christoph.mallon@gmx.de>


245804 22-Jan-2013 emaste

Restore Python 2.6+ compatibility

SVN r245536 ported this to Python 3. The major change was the use of the
print function. Unfortunately this is incompatible with Python 2, which
is still the default version in the ports tree.

Use a __future__ import to make this compatible with Python 2.6 and later.


245751 21-Jan-2013 brooks

Implement the -l option using ln(1) to facilitate boostrapping.

Ignore the new options -D, -h, -T, and -U. Adjust -M support to ignore
an argument.

Sponsored by: DARPA, AFRL
Reviewed by: ian, ray, rpaulo


245606 18-Jan-2013 eadler

Add option to make pc-sysinstall optional

Approved by: cperciva


245560 17-Jan-2013 adrian

Add extra debugging fields.


245539 17-Jan-2013 andrew

Add compiler support for the ARM EABI.

ARM EABI support is disabled by default and can be enabled by setting
WITH_ARM_EABI when building, however only the kernel-toolchain target will
work with this flag until the rest of the support is added.


245536 17-Jan-2013 eadler

Convert to Python 3

Approved by: cperciva


245527 17-Jan-2013 bz

Add a src.conf(5) option to allow users to compile in the "NONE cipher",
which, only after authentication, disables crypto, and only for sessions
without a terminal.

Submitted by: Jeremy Chadwick (freebsd jdc.parodius.com)
PR: bin/163095
MFC after: 10 days


245520 17-Jan-2013 np

Allow "ivlan" (inner VLAN) to be used as an alias for "vlan" when
specifying match criteria. "vlan" continues to be valid here, and it
continues to be valid when deleting, rewriting, inserting, or stacking
an 802.1q tag to a matching packet.

MFC after: 3 days


245435 14-Jan-2013 brooks

Remember the . in .\" in the WITH_NMTREE file and regenerate the output.

Reported by: joeld


245422 14-Jan-2013 jilles

sh: Pass $? to command substitution containing compound/multiple commands.

Example:
false; echo $(echo $?; :)


245392 13-Jan-2013 jilles

sh: Add testcase that $? is preserved into a simple command substitution.

The test builtins/trap6.0 already uses this but having it separate eases
diagnosis if this would break.


245383 13-Jan-2013 jilles

sh: Add some testcases related to subshells.

These failed in earlier attempts to execute more subshells without forking.
The patches are uncommitted.


245382 13-Jan-2013 jilles

sh: Fix crash when parsing '{ } &'.

MFC after: 1 week


245381 13-Jan-2013 jilles

sh: Don't lose $? when backquoted command ends with semicolon or newline.

An empty simple command was added and overwrote the exit status with 0.

This affects `...` but not $(...).

Example:
v=`false;`; echo $?


245311 11-Jan-2013 brooks

Add pwcache(3) and vis(3) to libegacy as install(1) is about to grow a
dependency on them.

Sponsored by: DARPA, AFRL


245241 09-Jan-2013 brooks

Always install our mtree as /usr/sbin/fmtree and link it as
/usr/sbin/mtree by default.

Add a src.conf option WITH_NMTREE that causes NetBSD's mtree to be linked
as /usr/sbin/mtree as well as /usr/sbin/nmtree.


245231 09-Jan-2013 adrian

Add the "enable at reset" functionality to trigger spectral scan upon
a channel change/reset.


245171 08-Jan-2013 obrien

Following r226271, allow disabling lzma support with "WITHOUT_LZMA_SUPPORT".
Correct r226271 which should have used WITHOUT_BZIP2_SUPPORT per r166255.

Obtained from: Juniper Networks


244970 02-Jan-2013 adrian

Disable clang for athstats for now.


244969 02-Jan-2013 adrian

Add missing err() format string.


244968 02-Jan-2013 adrian

Fix missing err() format string.


244967 02-Jan-2013 adrian

Fix some conversions to keep clang happy.


244966 02-Jan-2013 adrian

Fix some clang warnings!


244965 02-Jan-2013 adrian

Fix up some warnings from clang.

This still triggers a bug in clang..


244964 02-Jan-2013 adrian

Add missing err() format strings.

Thanks to: clang


244963 02-Jan-2013 adrian

* Add missing err() string formats;
* Fix up a printf() type mismatch.

Thanks to: clang


244962 02-Jan-2013 adrian

* Add missing format specifier for err()
* add missing exit(0)
* Fix some operator evaluation complaints.

Thanks to: clang


244961 02-Jan-2013 adrian

Fix some printf() formats.

Found by: clang


244960 02-Jan-2013 adrian

Fix incorrect format string.


244953 02-Jan-2013 adrian

Add a very skeletal spectral scan control application.

The main use for this is to manually trigger spectral scan operations
(athspectral -i athX start) whilst doing debugging.


244924 01-Jan-2013 jilles

sh: Fix a Subversion property.

Test scripts should have keywords; only pure output that must match exactly
should have keywords disabled.


244731 27-Dec-2012 luigi

use nanosecond resolution, make sure gettimeofday
is called at most every 100 packets.


244672 25-Dec-2012 luigi

various connections to last commit


244644 23-Dec-2012 luigi

small cleanup of the code, and add support for running multiple
threads on each socket.


244512 20-Dec-2012 bapt

Add etc/periodic/daily/220.backup-pkgdb to OptionalObsoleteFiles.inc


244409 18-Dec-2012 eadler

Add an additional regression tests for other cases to ensure these do not get fixed by accident.


244407 18-Dec-2012 eadler

POSIX requires that non-existent or null arguments be treated as if a
zero argument were supplied.

Add a regression test to catch this case as well.

PR: bin/174521
Submitted by: Daniel Shahaf <danielsh@elego.de> (pr)
Submitted by: Mark Johnston <markjdb@gmail.com> (initial patch)
Reviewed by: jilles
Approved by: cperciva (implicit)
MFC after: 3 weeks


244269 15-Dec-2012 phk

Update to the new and brighter pkg world


244162 12-Dec-2012 jilles

sh: Detect and flag write errors on stdout in builtins.

If there is a write error on stdout, a message will be printed (to stderr)
and the exit status will be changed to 2 if it would have been 0 or 1.

PR: bin/158206


244040 08-Dec-2012 eadler

A number of places in the source tree still reference cuad.* after
sio(4) was deprecated by uart(4).

s/cuad/cuau/g/

PR: docs/171533
Reviewed by: imp
Approved by: cperciva (implicit)
MFC after: 3 weeks


244038 08-Dec-2012 jilles

libc: Add a missing header to a test program.

Usage of dup(), mkstemp() and unlink() needs <unistd.h>.


243830 03-Dec-2012 dim

Upgrade our copy of llvm/clang to r168974, from upstream's release_32
branch. This is effectively llvm/clang 3.2 RC2; the 3.2 release is
coming soon.


243593 27-Nov-2012 adrian

Add in a totally hacked up copy of the AR5416 descriptor decoding stuff,
as well as TDMA related things.

I used this to debug TDMA related issues in -HEAD.


243346 20-Nov-2012 emaste

Non-void function should return a value.

Found by: clang


243319 20-Nov-2012 emaste

Remove unused variable.


243316 19-Nov-2012 emaste

Use '%zu' and '%zd' as appropriate for size_t / ssize_t.


243314 19-Nov-2012 emaste

Zero the whole struct not just the size of a pointer.

Found by: clang


243313 19-Nov-2012 emaste

Use '%zd' format specifier for ssize_t

Found by: clang


243312 19-Nov-2012 emaste

Use '%zd' printf format for ssize_t.


243252 18-Nov-2012 jilles

sh: Apply rlimits to parser/alias10.0 so it fails fast.

Requested by: uqs


243172 17-Nov-2012 adrian

Make this a flag.


243171 17-Nov-2012 adrian

Implement AR5210 descriptor decoding.


243170 17-Nov-2012 adrian

Add AR5211 descriptor decoding support.


243167 17-Nov-2012 adrian

Add AR5212 frame decoding support.


243166 17-Nov-2012 adrian

Implement a basic data decoder for the data produced by if_ath_alq.

This decodes the AR5416 family 11n TX and RX descriptors.


243053 15-Nov-2012 marcel

Don't install atf.test.mk if MK_ATF == no.

Submitted by: Garrett Cooper <yanegomi@gmail.com>


242767 08-Nov-2012 jilles

sh: Add tests for modifying an alias (r242766).

Note: parser/alias10.0 will eat a lot of memory/cpu time when it fails (with
the old sh).


242721 07-Nov-2012 jilles

sh: Test that a redefined alias works.


242629 05-Nov-2012 brooks

Add a description of WITHOUT_CLANG_IS_CC.


242157 26-Oct-2012 obrien

Test both active and non-active cases.


242137 26-Oct-2012 obrien

Iterate rather than use recursion. We can blow out the kernel stack if there
is a long chain of fork(2)s.


241844 22-Oct-2012 eadler

remove duplicate semicolons where possible.

Approved by: cperciva
MFC after: 1 week


241832 22-Oct-2012 eadler

Covert regression test to python 3

Approved by: cperciva
MFC after: 3 days


241828 22-Oct-2012 eadler

Finish migration of MAINTAINER entries

Approved by: cperciva
MFC after: 3 days


241826 22-Oct-2012 eadler

Covert to python 3

Approved by: cperciva
MFC after: 3 days


241823 22-Oct-2012 marcel

Add ATF to the build. This is may be a bit rought around the egdes,
but committing it helps to get everyone on the same page and makes
sure we make progress.

Tinderbox breakages that are the result of this commit are entirely
the committer's fault -- in other words: buildworld testing on amd64
only.

Credits follow:

Submitted by: Garrett Cooper <yanegomi@gmail.com>
Sponsored by: Isilon Systems
Based on work by: keramida@
Thanks to: gnn@, mdf@, mlaier@, sjg@
Special thanks to: keramida@


241645 17-Oct-2012 andreast

Remove the netncp and nwfs files from here. They will be moved to the
ObsoleteFiles.inc file later.

Discussed with: attilio


241511 13-Oct-2012 gabor

- Remove GNU sort and the WITH_GNU_SORT knob


241464 11-Oct-2012 emaste

Make local function static.


241416 10-Oct-2012 np

Add a "clearstats" subcommand to cxgbetool that lets you clear the
MAC statistics for any port.

For example:
# cxgbetool t4nex0 clearstats 0

Submitted by: gnn@
MFC after: 3 days


241401 10-Oct-2012 np

Add an "i2c" subcommand to cxgbetool. You can use this to read
information from the transceivers connected to the ports of a
cxgbe(4) based card.

# cxgbetool t4nex0 i2c <port_id> <dev_addr> <addr> [<count>]

For example:
# cxgbetool t4nex0 i2c 0 0xa0 3
0x10 [16]

(As per SFF-8472 the SFP+ module is at 0xa0 and bit 4 in the value at
address 3 indicates it's a 10Gbase-SR module, which it is.)


241394 10-Oct-2012 kevlo

Revert previous commit...

Pointyhat to: kevlo (myself)


241370 09-Oct-2012 kevlo

Prefer NULL over 0 for pointers


241298 06-Oct-2012 marcel

Add support for bmake. This includes:
1. Don't do upgrade_checks when using bmake. As long as we have WITH_BMAKE,
there's a bootstrap complication in ths respect. Avoid it. Make the
necessary changes to have upgrade_checks work wth bmake anyway.
2. Remove the use of -E. It's not needed in our build because we use ?= for
the respective variables, which means that we'll take the environment
value (if any) anyway.
3. Properly declare phony targets as phony as bmake is a lot smarter (and
thus agressive) about build avoidance.
4. Make sure CLEANFILES is complete and use it on .NOPATH. bmake is a lot
smarter about build avoidance and should not find files we generate in
the source tree. We should not have files in the repository we want to
generate, but this is an easier way to cross this hurdle.
5. Have behavior under bmake the same as it is under make with respect to
halting when sub-commands fail. Add "set -e" to compound commands so
that bmake is informed when sub-commands fail.
6. Make sure crunchgen uses the same make as the rest of the build. This
is important when the make utility isn't called make (but bmake for
example).
7. While here, add support for using MAKEOBJDIR to set the object tree
location. It's the second alternative bmake looks for when determining
the actual object directory (= .OBJDIR).

Submitted by: Simon Gerraty <sjg@juniper.net>
Submitted by: John Van Horne <jvanhorne@juniper.net>


241279 06-Oct-2012 marcel

Add bmake to the build and allow it to be installed as make(1) instead
of FreeBSD's make by setting WITH_BMAKE. The WITH_BMAKE build makes it
easy for people to switch while working out the kinks -- think ports
tree here. The option will be removed in due time.

Submitted by: Simon Gerraty (sjg@juniper.net)


241169 03-Oct-2012 emaste

Clean up compiler warnings.

More work is needed here but this now builds with WARNS=6.

Sponsored by: ADARA Networks
MFC after: 2 weeks


240944 26-Sep-2012 emaste

Add regression test for kern/172075.

Sponsored by: ADARA Networks
PR: kern/172075


240825 22-Sep-2012 jilles

sh: Add some tests for aliasing a utility to itself.


240690 19-Sep-2012 zeising

Add documentation for the WITHOUT_KDUMP switch.
This swtich was introduced in r240404

Approved by: joel (mentor)


240518 14-Sep-2012 eadler

Correct double "the the"

Approved by: cperciva
MFC after: 3 days


240470 13-Sep-2012 eadler

Remove scripts and tools which only functioned when src was using CVS

Approved by: cperciva
MFC after: 1 week


240377 11-Sep-2012 obrien

r235638 is not the clean way to add support for building on ancient FreeBSD
versions. Instead use Imp's good work on "legacy" and follow the outcome
of the previous TRB discussions on this topic.

Now use the libc getline() if it exists, and only where it doesn't
create a bootstraping version.


240323 10-Sep-2012 fabient

Add SOFT as a possible section to exclude from counter list.


240298 10-Sep-2012 adrian

Add some colour to make it easy (well, easier) to see what the current
selected rates and current sample rates are.

(Note: when run under high traffic and with -s 0.1 the display becomes very
mesmerising. You've been warned.)


240223 08-Sep-2012 adrian

Add a '-s <timeout>' option which will display live rate control
statistics.


240184 07-Sep-2012 adrian

Tidy up the output quite substantially, making it fit well within
80 columns.

This makes it much easier to use in a shell script, to display a "top"
style output with live rate control data.


240183 07-Sep-2012 adrian

Make this build again!


240103 04-Sep-2012 emaste

Failure to open netmap device is unrecoverable.

There's no reason to "fail later" since there's nothing this tool can do in
netmap mode without /dev/netmap open.


240101 04-Sep-2012 gnn

Add a reasonable error message telling the caller to specify a program
to be executed under hwpmc. If there is no program to run then
exit.


239970 01-Sep-2012 joel

Minor mdoc fix.


239927 30-Aug-2012 des

The error syntax has changed.


239887 29-Aug-2012 adrian

Do a bunch of fixing and refactoring.

Fix up gzip to crunch right.

Add kenv, although I'm not yet sure why it isn't working on my MIPS
boards (reading kenv always returns blank.)


239886 29-Aug-2012 adrian

Disable fsck_ffs for now, 4MB target size issues.


239885 29-Aug-2012 adrian

Disable building textproc for now, it doesn't fit on my 4MB flash
partition.

Add -lcrypt as a dynamic target.


239884 29-Aug-2012 adrian

For now, disable building wpa_supplicant.

My 4MB flash builds can't handle the bloat.


239715 26-Aug-2012 dim

Add libc++ and libcxxrt related files to OptionalObsoleteFiles.inc.

MFC after: 1 week


239469 20-Aug-2012 dim

Add three additional clang intrinsics headers, which I missed in the
previous import.


239462 20-Aug-2012 dim

Upgrade our copy of llvm/clang to trunk r162107. With thanks to
Benjamin Kramer and Joerg Sonnenberger for their input and fixes.


239162 09-Aug-2012 adrian

Add a missing HAL_DMA_ADDR definition.


239161 09-Aug-2012 adrian

Add HAL_DMA_ADDR.


239160 09-Aug-2012 jilles

nftw(): POSIX says directories causing loops should be silently skipped.

Formerly, loops caused nftw() to abort the traversal with ELOOP.


239145 08-Aug-2012 emaste

Be more descriptive about poll error / timeout when transmitting.


239139 08-Aug-2012 emaste

Round displayed pps (instead of truncating)


239087 06-Aug-2012 ae

Add to the debug output the offset from the parent partitioning scheme.


239070 05-Aug-2012 ae

Add simple test program that uses the partition tables handling code.
It is useful to test and debug how boot loader handles partition tables
metadata.


238893 30-Jul-2012 adrian

Break out the parsing code from main() and modularise things a little.

The eventual aim will be to support listing "one" and "all" stations for
the given ath device.


238721 23-Jul-2012 dim

When WITHOUT_CLANG is being used, also clean out the clang 3.1 headers
in OptionalObsoleteFiles.inc.

PR: misc/169902
Submitted by: Thomas Eberhardt <sneakywumpus@googlemail.com>
MFC after: 3 days


238704 22-Jul-2012 phk

Derive FREEBSD_PART from /etc/fstab, and make it full device name.

Give suggestion for next steps when done.

Inspired by patches from: Flemming "F3" Jacobsen


238702 22-Jul-2012 phk

Replace hardcoded /mnt with ${SBMNT} which defaults to /mnt.sysbuild

Submitted by: Flemming "F3" Jacobsen


238651 20-Jul-2012 adrian

Add a needed #include due to my recent change.


238650 20-Jul-2012 adrian

Add missing SRCS.


238648 20-Jul-2012 adrian

Add the new athratestats tool.


238646 20-Jul-2012 adrian

Tidy things up substantially:

* remove some debugging;
* introduce command line arguments;
* introduce support for non-ath0 interfaces.


238639 20-Jul-2012 adrian

Use the rate control table to display the rate rather than the rix,
making the output of this program much more meaningful.


238635 20-Jul-2012 adrian

Implement a first cut of the 'sample' rate statistics userland utility.

This outputs almost exactly the same information as the kernel sysctl does,
however the rix -> rate mapping isn't yet available as a TLV.


238469 15-Jul-2012 jilles

sh: Add a simple test for the "local" builtin.


238468 15-Jul-2012 jilles

sh: Expand assignment-like words specially for export/readonly/local.

Examples:
export x=~
now expands the tilde
local y=$1
is now safe, even if $1 contains IFS characters or metacharacters.

For a word to "look like an assignment", it must start with a name followed
by an equals sign, none of which may be quoted.

The special treatment applies when the first word (potentially after
"command") is "export", "readonly" or "local". There may be quoting
characters but no expansions. If "local" is overridden with a function there
is no special treatment ("export" and "readonly" cannot be overridden with a
function).

If things like
local arr=(1 2 3)
are ever allowed in the future, they cannot call a "local" function. This
would either be a run-time error or it would call the builtin.

This matches Austin Group bug #351, planned for the next issue of POSIX.1.

PR: bin/166771


238448 14-Jul-2012 zeising

Change language in WITH_BSDCONFIG to match other options, and regen
src.conf(5), which was missed in r238438.

Approved by: joel (mentor)


238438 14-Jul-2012 dteske

Import bsdconfig(8) as a replacement for the post-install abilities of
deprecated sysinstall(8). NOTE: WITH_BSDCONFIG is currently required.

Submitted by: Devin Teske (dteske), Ron McDowell <rcm@fuzzwad.org>
Reviewed by: Ron McDowell <rcm@fuzzwad.org>
Approved by: Ed Maste (emaste)


238430 13-Jul-2012 jilles

sh: Add tests where "export" does not parse differently.

It is planned to expand variable assignments as assignments (no word
splitting, different tilde expansion) when they follow a "declaration
utility" (export, readonly or local). However, a quoted character cannot be
part of a "name" so things like \v=~ are not assignments, and the existing
behaviour applies.


238423 13-Jul-2012 jhb

The etcupdate utility is a tool for managing updates to files that are
not updated as part of `make installworld' such as files in /etc. It
manages updates by doing a three-way merge of changes made to these files
against the local versions. It is also designed to minimize the amount
of user intervention with the goal of simplifying upgrades for clusters
of machines.

The primary difference from mergemaster is that etcupdate requires less
manual work. The primary difference from etcmerge is that etcupdate
updates files in-place similar to mergemaster rather than building a
separate /etc tree.

Requested by: obrien, kib, theraven, joeld (among others)


238374 11-Jul-2012 kib

Add a test program, written by Stephan Uphoff, which demonstrates the
deadlock due to i/o performed over the buffers backed by file mappings.

MFC after: 2 weeks
Approved by: ups


238175 06-Jul-2012 emaste

Allow continuous packet transmission (via -t 0)

Also add a missing check for the cancel flag while waiting for the first
packet in receive mode.


238170 06-Jul-2012 emaste

Also report tx bandwidth with Ethernet overhead


238165 06-Jul-2012 emaste

Allow threads to finish up when terminated by user

Set a flag and allow worker threads to finish upon ^C, instead of
immediately cancelling them, so that final packet count and rate
stats can be displayed.


238143 05-Jul-2012 obrien

Remove the "funny targets" make check. We no longer need embedded :: targets
to build FreeBSD (they are used in Perl man pages). We never needed embedded
"!" in targets that I can find.

We got this from OpenBSD and I cannot find any other make that supports
such things -- contrary to their commit message claim: "This behaviour
is also consistent with other versions of make.".


238110 04-Jul-2012 pjd

Recognize 'none' or '0' as no flags.


238081 03-Jul-2012 emaste

Update comment to reflect function's actual operation


238023 02-Jul-2012 marcel

A cross-reference takes a man page section as well. Assume pkg(1),
based on pkg_add(1).


238021 02-Jul-2012 marcel

Add description for INSTALL_AS_USER


238018 02-Jul-2012 marcel

Fix typo in option description file (using svn move).


237997 02-Jul-2012 bapt

New build KNOB: WITHOUT_PKGBOOTSTRAP to condition building of usr.sbin/pkg
Do not condition usr.sbin/pkg building on WITHOUT_PKGTOOLS anymore, so that users can
remove the old pkg_* tools without removing the pkgng boostrap

Approved by: des (mentor)
MFC after: 1 month


237830 30-Jun-2012 adrian

Bump this up - that way the AR9300 and later MACs get covered (for now)
by the AR5416 register map.


237794 29-Jun-2012 obrien

Support also running a 32-bit test on 64-bit platforms.


237729 28-Jun-2012 emaste

Fix ioctl type for compiling with clang


237661 27-Jun-2012 kib

Add a test for number of CPUs configured/online.

MFC after: 1 week


237629 27-Jun-2012 gabor

- Switch to BSD sort as default sort. GNU sort will still be installed as
"gnusort". Most of the BSD sort development work was done by
Oleg Moskalenko <oleg.moskalenko@citrix.com>.
- GNU grep can be set to default by setting WITH_GNU_GREP. It will cause
BSD sort to be installed as "bsdsort".

Portbuild tested by: linimon


237546 25-Jun-2012 kevlo

Correct sizeof usage

Obtained from: DragonFly


237344 20-Jun-2012 obrien

Provide a mechanism to not clear out the work and output dirs when
developing tests.


237143 15-Jun-2012 adrian

Convert athdebug to use the 64 bit dev.ath.X.debug sysctl.


237129 15-Jun-2012 adrian

Add the AMPDU BAR TX statistics to the "ampdu" tag.


236977 12-Jun-2012 obrien

Add a test for the :tl & :tu modifiers.


236835 10-Jun-2012 adrian

Add athaggrstats to the ath(4) tools build.


236834 10-Jun-2012 adrian

Flesh out 'athaggrstats', a utility which will display the aggregation
specific statistics for ath(4).


236771 08-Jun-2012 jilles

sh: Do not assume that SIGPIPE will only kill a subshell in builtins/wait3.0
test.

POSIX says that SIGPIPE affects a process and therefore a SIGPIPE caused and
received by a subshell environment may or may not affect the parent shell
environment.

The change assumes that ${SH} is executed in a new process. This must be the
case if it contains a slash and everyone appears to do so anyway even though
POSIX might permit otherwise.

This change makes builtins/wait3.0 work in ksh93.


236707 07-Jun-2012 bz

TinyBSD now seems to be hosted elsewhere.


236690 06-Jun-2012 kib

Do not execute a needed statement with side-effect in assert().

MFC after: 3 days


236686 06-Jun-2012 kib

Add gettimeofday() test.

MFC after: 3 days


236645 05-Jun-2012 emax

Fix license

Pointed by: brueffer


236644 05-Jun-2012 emax

Add a very simple debug tool that would dump list of interfaces,
addresses on each interface, and, associated refcounter. I found
it handy to check for address refcounter leaks.


236620 05-Jun-2012 obrien

Correct examples to the latest version I had.


236594 04-Jun-2012 obrien

Add a regression test for filemon(4) [r236592].


236347 31-May-2012 obrien

Add regression test for '-V' command line option (requires r236346).


236340 30-May-2012 obrien

make it easier to check newly-built make


236339 30-May-2012 obrien

make it easier to test newly-built make.


236279 30-May-2012 gjb

Add '-width Pa' to src.conf.5 for mdoc(7) style consistency.

MFC after: 3 days


235723 21-May-2012 bapt

Import byacc from invisible island, it brings us lots of compatibilities with
bison, keeping full compatibility with our previous yacc implementation.

Also bring the ability to create reentrant parser

This fix bin/140309 [1]

PR: bin/140309 [1]
Submitted by: Philippe Pepiot <ksh@philpep.org> [1]
Approved by: des (mentor)
MFC after: 1 month


235719 21-May-2012 kevlo

According to shared memory man pages, advice including <sys/types.h>
instead of <sys/param.h>


235660 19-May-2012 marcel

Document the ED_CRYPTO and LS_COLORS options.

Obtained from: Juniper Networks, Inc.


235537 17-May-2012 gber

Import work done under project/nand (@235533) into head.

The NAND Flash environment consists of several distinct components:
- NAND framework (drivers harness for NAND controllers and NAND chips)
- NAND simulator (NANDsim)
- NAND file system (NAND FS)
- Companion tools and utilities
- Documentation (manual pages)

This work is still experimental. Please use with caution.

Obtained from: Semihalf
Supported by: FreeBSD Foundation, Juniper Networks


235392 13-May-2012 avg

zfsboottest: update for the recent zfs boot code changes

MFC after: 1 month


235342 12-May-2012 gjb

Regenerate src.conf(5) for mdoc(7) and typo corrections.

PR: 167804
Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org)
MFC after: 3 days


235274 11-May-2012 gabor

- Add regression tests for BSD sort


235268 11-May-2012 gabor

- Hook up BSD sort to the build. By default, it will be installed as
"bsdsort" and GNU sort will be the default "sort". When WITH_BSD_SORT
is set, BSD sort will be the default "sort" and GNU sort will be installed
as "gnusort".


235204 09-May-2012 eadler

Add some missing files to OLD_FILES

PR: conf/166460
Submitted by: Jeremy Chadwick <freebsd@jdc.parodius.com>
Reviewed by: stable@
Approved by: cperciva
MFC after: 2 weeks


235130 07-May-2012 avg

zfsboottest.sh: correctly check and suggest value of vfs.root.mountfrom

... it was missing "zfs:" prefix.

Reported by: theraven
MFC after: 10 days


235129 07-May-2012 avg

zfsboottest.sh: gracefully handle default value of bootfs property

Reported by: theraven
MFC after: 10 days


234984 03-May-2012 luigi

indicate the time per packet in nanoseconds.


234975 03-May-2012 luigi

add support for pcap receive statistics (used by net-mgmt/darkstat)


234962 03-May-2012 luigi

add some performance data


234956 03-May-2012 luigi

- add code to run pkt-gen on top of libpcap so we can see the
difference from a native API

- add some testing options, such as conditional prefetching and
packet copy.


234955 03-May-2012 luigi

- correct a bug in pcap_dispatch(): a count of 0 means infinity.

- in pcap_dispatch(), issue a prefetch on the buffer before the
callback, this may save a little bit of time if the client
is very fast.

- in pcap_inject(), use a fast copy routine, which also helps
saving a few nanoseconds with fast clients.


234852 30-Apr-2012 bapt

Import m4 regression tests from OpenBSD

Obtained from: OpenBSD
Approved by: des (mentor)


234782 29-Apr-2012 kib

Add src.conf option WITH_SHARED_TOOLCHAIN to enable building the
toolchain binaries as dynamically linked. Option is disabled by
default.

Reviewed by: ru (previous version)
MFC after: 2 weeks


234777 28-Apr-2012 adrian

Change cc -> bc : "bc" is "busy count", which is the % of time the channel
is considered "busy but not doing any active TX or frame RX."

Just keep in mind that "frame RX" is "decoding what looks like a wifi
signal", not necessarily "frame successfully decoded for this particular
device."


234751 28-Apr-2012 adrian

Add a tool to print out min, average and max channel survey information
from the current channel.

There seem to be some occasional issues with the extension channel
counters reporting more than 100% of use. I'll investigate that
soon.


234289 14-Apr-2012 dim

Add files and directories to be cleaned up if WITHOUT_GCC is in effect
to OptionalObsoleteFiles.inc.

MFC after: 1 week


234227 13-Apr-2012 luigi

A bit of cleanup in the names of fields of netmap-related structures.
Use the name 'ring' instead of 'queue' in all fields.
Bump NETMAP_API.


234168 12-Apr-2012 luigi

use getopt to parse options, add one option to set
the wait time for link-up events


234019 08-Apr-2012 adrian

Teach wlanstats about the new BAR TX statistics.


234015 08-Apr-2012 adrian

Add AR_ISR_S5 and AR_ISR_S5_S.


233974 07-Apr-2012 das

Add some tests from PR 166463. Also make sure that all of the tests,
old and new, check the sign bits of both the remainder and the
quotient.


233947 06-Apr-2012 luigi

we need to specify a NETMAP_API version or the ioctl() will fail.


233887 04-Apr-2012 adrian

Add a threadid to the ah_decode API.

This adds the current thread ID to each logged register and mark entry,
allowing for easier debugging of concurrent/overlapping NIC operations.


233648 29-Mar-2012 eadler

Remove trailing whitespace per mdoc lint warning

Disussed with: gavin
No objection from: doc
Approved by: joel
MFC after: 3 days


233338 23-Mar-2012 stas

- Add new kerberos libraries to the list of optional obsolete files.


233337 23-Mar-2012 stas

- Do not build libcom_err and compile_et when kerberos is disabled. They
depends on several heimdal libraries and not used by anything but kerberos
tools.


233294 22-Mar-2012 stas

- Update FreeBSD Heimdal distribution to version 1.5.1. This also brings
several new kerberos related libraries and applications to FreeBSD:
o kgetcred(1) allows one to manually get a ticket for a particular service.
o kf(1) securily forwards ticket to another host through an authenticated
and encrypted stream.
o kcc(1) is an umbrella program around klist(1), kswitch(1), kgetcred(1)
and other user kerberos operations. klist and kswitch are just symlinks
to kcc(1) now.
o kswitch(1) allows you to easily switch between kerberos credentials if
you're running KCM.
o hxtool(1) is a certificate management tool to use with PKINIT.
o string2key(1) maps a password into key.
o kdigest(8) is a userland tool to access the KDC's digest interface.
o kimpersonate(8) creates a "fake" ticket for a service.

We also now install manpages for some lirbaries that were not installed
before, libheimntlm and libhx509.

- The new HEIMDAL version no longer supports Kerberos 4. All users are
recommended to switch to Kerberos 5.

- Weak ciphers are now disabled by default. To enable DES support (used
by telnet(8)), use "allow_weak_crypto" option in krb5.conf.

- libtelnet, pam_ksu and pam_krb5 are now compiled with error on warnings
disabled due to the function they use (krb5_get_err_text(3)) being
deprecated. I plan to work on this next.

- Heimdal's KDC now require sqlite to operate. We use the bundled version
and install it as libheimsqlite. If some other FreeBSD components will
require it in the future we can rename it to libbsdsqlite and use for these
components as well.

- This is not a latest Heimdal version, the new one was released while I was
working on the update. I will update it to 1.5.2 soon, as it fixes some
important bugs and security issues.


233110 18-Mar-2012 hselasky

Use new -n option when executing kldload, to
not warn about already loaded module(s).

MFC after: 1 week


232940 13-Mar-2012 adrian

Add a BINDIR so "make install" works.


232839 11-Mar-2012 jilles

sh: Add a test for variables with underscores in arithmetic.

Things like $((_x+1)) are broken in stable/8 sh but work in stable/9 and
head.


232807 11-Mar-2012 adrian

Stop some of the output from wrapping at 80 characters.


232609 06-Mar-2012 bz

Use = rather than == for expressions to test(1) builtin(1) in sh(1) to
comply with standards.

On modern branches there is an undocumented alias (see r219084) but on
stable/7 this is still an error.

Sponsored by: Cisco Systems, Inc.
MFC after: 3 days


232364 01-Mar-2012 hselasky

Add regression test for USB enumeration.

MFC after: 1 week


232322 29-Feb-2012 dim

Add a WITH_CLANG_IS_CC option for src.conf(5), disabled by default, that
installs clang as /usr/bin/cc, /usr/bin/c++ and /usr/bin/cpp.

Note this does *not* disable building and installing gcc, which will
still be available as /usr/bin/gcc, /usr/bin/g++ and /usr/bin/gcpp. If
you want to disable gcc completely, you must use WITHOUT_GCC.

MFC after: 2 weeks


232312 29-Feb-2012 brueffer

Fix order of arguments to lseek().

PR: 160867
Submitted by: Henning Petersen <henning.petersen@t-online.de>
MFC after: 1 week


232245 28-Feb-2012 adrian

Add is_beacon_bad.

PR: kern/165517


232238 27-Feb-2012 luigi

A bunch of netmap fixes:

USERSPACE:
1. add support for devices with different number of rx and tx queues;

2. add better support for zero-copy operation, adding an extra field
to the netmap ring to indicate how many buffers we have already processed
but not yet released (with help from Eddie Kohler);

3. The two changes above unfortunately require an API change, so while
at it add a version field and some spares to the ioctl() argument
to help detect mismatches.

4. update the manual page for the two changes above;

5. update sample applications in tools/tools/netmap

KERNEL:

1. simplify the internal structures moving the global wait queues
to the 'struct netmap_adapter';

2. simplify the functions that map kring<->nic ring indexes

3. normalize device-specific code, helps mainteinance;

4. start exploring the impact of micro-optimizations (prefetch etc.)
in the ixgbe driver.
Use 'legacy' descriptors on the tx ring and prefetch slots gives
about 20% speedup at 900 MHz. Another 7-10% would come from removing
the explict calls to bus_dmamap* in the core (they are effectively
NOPs in this case, but it takes expensive load of the per-buffer
dma maps to figure out that they are all NULL.

Rx performance not investigated.

I am postponing the MFC so i can import a few more improvements
before merging.


232184 26-Feb-2012 jilles

Check fchmod()/fchown() in fifo_misc test.


232114 24-Feb-2012 bz

Update scripts to work around two sh(1) bugs found in stable/8:
1) _x=$((_x + 1)) does not work while x=$((x + 1)) does.
2) Parameter Expansion, esp. "${x%%bar}" does not work if quoted.

Correct typos and improve some details forwarding.sh already
had in initiator, esp. related to ipfw accepting if the default
is deny.

Add an extra stat call to the "delay" function in addition to the
touch which together is still a lot faster than sleep 1 but seems
to help a lot more to mitigate the unrelated kernel race seen.

Sponsored by: Cisco Systems, Inc.


231984 21-Feb-2012 jilles

libc: Add some tests for fmtmsg().


231863 17-Feb-2012 adrian

Fix up this local copy of statfoo to support > 128 statistics.

This allows all of the athstats statistics to work again.

Specifics:

* The previous code used chars < 0x80 as printable, and chars >= 0x80
as "statistics"
* .. which meant any statistic above 127 would wrap around to 0;
* .. so once I added the 802.11n TX/RX statistics to athstats, the tail
end of the statistics list weren't accessible.

This patch:

* adds a define which represents the magic character, rather than a hard
coded one
* the statistic in question is little endian encoded after the magic
character.

Notes:

* statfoo is useful enough to possibly warrant turning into a library API.


231858 17-Feb-2012 bz

Add regression tests scripts for multi-IP FIBs exercising the send,
receive and forward path tagging packets with both the ifconfig fib
option or using ipfw, running ICMP6, TCP/v6 and UDP/v6 tests and
testing both setfib(2) as well as the SO_SETFIB socket option.

At 16 FIBs a total of over 64k return codes/replies/stati are checked,
sometimes multiple times (in different ways, e.g. the reflected request
as well as ipfw counter values).

The scripts need two or three machines to run and are thus not added
to the tools/regression framework but only to tools/test.

Sponsored by: Cisco Systems, Inc.


231855 17-Feb-2012 bz

Add regression tests for the setsockopt(2) SO_SETFIB socket option.

Check that the expected domain(9) families all handle the socket option
correctly and do proper bounds checks. This would catch bugs as fixed
in (r230938,)r230981.

Sponsored by: Cisco Systems, Inc.


231710 14-Feb-2012 adrian

Add some missing radar config parameters.


231699 14-Feb-2012 gnn

Remove UCP from the list of counters


231698 14-Feb-2012 gnn

Add options for program (-p) and to turn off waiting (-w) which is now
on by default.

The default is to wait after each counter is tested. Since the prompt
would go to stdout you won't see it if you're redirecting the output
of the executed sub-program to /dev/null, so just press return to
continue or Ctrl-D to stop.


231634 14-Feb-2012 gnn

Add a rudimentary test to run through all the available counters on a
system and then execute a program with pmcstat in counting mode.

The program will verify that all counters fire and that the code neither
panics the system nor locks it up. This should be considered a first pass
conformance test for new sets of counters being added to hwpmc(4).


231544 12-Feb-2012 fjoe

Include target names in diagnostic output.

Submitted by: Garrett Cooper


231535 11-Feb-2012 jilles

sh: Make 'hash' return 1 if at least one utility is not found.

Reported by: lme


231530 11-Feb-2012 ed

Replace utxrm(8) by utx(8).

At first, I added a utility called utxrm(8) to remove stale entries from
the user accounting database. It seems there are cases in which we need
to perform different operations on the database as well. Simply rename
utxrm(8) to utx(8) and place the old code under the "rm" command.

In addition to "rm", this tool supports "boot" and "shutdown", which are
going to be used by an rc-script which I am going to commit separately.


231443 10-Feb-2012 kib

Add a test program for recently added ptrace(2) interfaces.

MFC after: 1 week


231198 08-Feb-2012 luigi

- change the buffer size from a constant to a
TUNABLE variable (hw.netmap.buf_size) so we can experiment
with values different from 2048 which may give better cache performance.

- rearrange the memory allocation code so it will be easier
to replace it with a different implementation. The current code
relies on a single large contiguous chunk of memory obtained through
contigmalloc.
The new implementation (not committed yet) uses multiple
smaller chunks which are easier to fit in a fragmented address
space.


231098 06-Feb-2012 ed

Add a `fix' for another whitespace bug.

If the sentence starts with a multiple of eight spaces, the sentence
should in almost all practical cases have started with tabs instead.
Replace these spaces by tabs.


231071 06-Feb-2012 ed

Add fixwhite(1).

This small utility can be used to `sanitize' the whitespace in source
code. It does the following things:

Global:
- Remove empty lines at the beginning and the end of a file.
- Merge successive empty lines into a single empty line.

Per-line:
- Remove trailing whitespace.
- Merge spaces preceeding tabs into the tabs.

It operated on stdin/stdout. This means that if you use vi(1), you can
just run :%!fixwhite to reorganize the file.


231057 06-Feb-2012 dim

Add a WITH_CLANG_EXTRAS option for src.conf(5), disabled by default,
that builds the following additional llvm/clang tools:

- bugpoint
- llc
- lli
- llvm-ar
- llvm-as
- llvm-bcanalyzer
- llvm-diff
- llvm-dis
- llvm-extract
- llvm-ld
- llvm-link
- llvm-mc
- llvm-nm
- llvm-objdump
- llvm-prof
- llvm-ranlib
- llvm-rtdyld
- llvm-stub
- macho-dump
- opt

These tools are mainly useful for people that want to manipulate llvm
bitcode (.bc) and llvm assembly language (.ll) files, or want to tinker
with llvm and clang themselves.

MFC after: 2 weeks


230972 04-Feb-2012 rmh

Add MK_SOURCELESS build option. Setting MK_SOURCELESS to "no" will disable
kernel modules that include binary-only code.

More fine-grained control is provided via MK_SOURCELESS_HOST (for native code
that runs on host CPU) and MK_SOURCELESS_UCODE (for microcode).

Reviewed by: julian, delphij, freebsd-arch
Approved by: kib (mentor)
MFC after: 2 weeks


230923 02-Feb-2012 adrian

Add some missing radar config parameters to athradar.


230862 01-Feb-2012 netchild

- remove non-existent input directories from the configs
- add the target-arch to the project name where applicable (arch dependend code)
- fix comment for __FreeBSD__ [1]

Noticed by: bz [1]


230591 26-Jan-2012 trasz

More mdconfig(8) tests.


230533 25-Jan-2012 trasz

Move mdconfig(8) tests under regression/sbin/, where they belong.

Submitted by: jh@


230509 24-Jan-2012 netchild

Just define __FreeBSD__ to 1 instead of doing what the compiler does.
The kernel is supposed to DTRT based upon the __FreeBSD_version value,
not the value of __FreeBSD__.

Discussed with: bz


230505 24-Jan-2012 trasz

Add some basic regression tests for mdconfig(8).


230500 24-Jan-2012 netchild

We are in FreeBSD 10 now: define __FreeBSD__ to 10.


230479 23-Jan-2012 netchild

Mechanically add a config for all missing drivers.

No cross-referencing was added to the configs, so no
automatic linking to the documentation of other subsystems.

Drivers which already contain doxygen markup:
agp ath bktr bxe cxgb cxgbe dpt drm e1000 iir
ixgbe mwl nxge ofw pccard siba wpi xen


230463 22-Jan-2012 jilles

sh: Fix $? in the first command of a 'for'.

In the first command of a 'for', $? should be the exit status of the last
pipeline (command substitution in the word list or command before 'for'),
not always 0.


230445 22-Jan-2012 adrian

Bring over the visibility control tool for Monthadar's wtap project.

This allows basic control over which wtap nodes can see which other
wtap nodes.


230368 20-Jan-2012 das

These tests check whether the compiler evaluates floating-point
expressions properly. Some of the tests depend on the compiler
implementing C99's FENV_ACCESS pragma, and only commercial compilers
do; those tests are currently skipped. If any of the enabled tests
fail, then odds are the libm regression tests will fail also.
This should make it easier to diagnose reported problems on platforms
I don't have.

Currently, gcc passes all the tests that don't depend on FENV_ACCESS
on amd64 and sparc64. Clang fails a few on amd64 (see clang bug
11406). Both gcc and clang fare poorly on i386, which has well-known
issues.


230212 16-Jan-2012 dumbbell

sh: Fix execution of multiple statements in a trap when evalskip is set

Before this fix, only the first statement of the trap was executed if
evalskip was set. This is for example the case when:
o "-e" is set for this shell
o a trap is set on EXIT
o a function returns 1 and causes the script to abort

Reviewed by: jilles
MFC after: 2 weeks


230211 16-Jan-2012 dumbbell

sh: Test EXIT trap with multiple statements in it

Reviewed by: jilles
MFC after: 2 weeks


230161 15-Jan-2012 jilles

sh: Fix some bugs with exit status from case containing ;&.

Also, rework evalcase() to not evaluate any tree. Instead, return the
NCLISTFALLTHRU node and handle it in evaltree().

Fixed bugs:

* If a ;& list with non-zero exit status is followed by an empty ;; or final
list, the exit status of the case command should be equal to the exit
status of the ;& list, not 0.

* An empty ;& case should not reset $?.


230154 15-Jan-2012 jilles

sh: Fix two bugs with case and exit status:

* If no pattern is matched, POSIX says the exit status shall be 0 (even if
there are command substitutions).
* If a pattern is matched and there are no command substitutions, the first
command should see the $? from before the case command, not always 0.


230121 14-Jan-2012 jilles

sh: Add testcases that should not be broken by future optimizations.


230115 14-Jan-2012 das

Add .t files for tests, missed in prior checkins, so that prove(1) works
in this directory.


230114 14-Jan-2012 das

Update the tests for arm and other ports where long double is the same
as double, similar to r178141.


230102 14-Jan-2012 das

Fix a test that doesn't work on architectures where long double is no
wider than double. Thanks to Ian Lepore for catching the bug.


230095 13-Jan-2012 jilles

sh: Properly show "Not a directory" error in cd builtin.

The errno message display added in r222292 did not take attempting to
cd to a non-directory or something that cannot be stat()ed into account.

PR: bin/164070
MFC after: 10 days


230060 13-Jan-2012 ed

Remove wtmpcvt(1).

The wtmpcvt(1) utility converts wtmp files to the new format used by
utmpx(3). Now that HEAD has been branched to stable/9 and 9.0 is
released, there is no need for it in HEAD.

MFC after: never


229972 11-Jan-2012 adrian

Bring over a tool to create and destroy wtap instances.

Submitted by: Monthadar Al Jaberi <monthadar@gmail.com>


229831 09-Jan-2012 eadler

X11BASE has been deprecated for a long time and will die soon

Approved by: x11 (eadler)
Approved by: brucec
MFC after: 1 week


229742 06-Jan-2012 jilles

sh: Avoid possible echo options in a testcase.


229675 06-Jan-2012 adrian

Import the first cut of "bsdbox".

This uses the existing crunchgen infrastructure to build
a series of tools designed to replace the base and networking
tools on an embedded system.

It reuses 'bsd.crunchgen.mk' to drive the actual file
creation. The rescue build system also uses this.

Unlike busybox, it doesn't include its own source - instead,
it just builds from the sources in /usr/src/ and leverages
the existing BSD framework.

Thie is still quite messy and could do with a whole lot of
cleaning up. However it is proving to be very useful with
my current build framework, allowing me to build binary root
images that are about 30% less than simply cherrypicking files
and libraries from an installworld.


229656 05-Jan-2012 uqs

Convert files over to UTF-8.

These files contained various combinations of Big5, eucJP and KOI8-U
encoded strings. The byte representations of their respective encodings
have been translated to $'...' escape sequences as understood by our sh(1).

With help from: jilles


229436 03-Jan-2012 pjd

Fix an obvious typo. We do want to specify file permission when we pass O_CREAT.


229319 02-Jan-2012 rwatson

Add WITHOUT_CAPSICUM src.conf(5) define, which can be used to compile out
use of Capsicum by userspace applications.

MFC after: 3 weeks
Sponsored by: Google, Inc.


229001 30-Dec-2011 dumbbell

Adapt testsuite following change in Domain Search error handling

In this testsuite, warning() and error() have the same behaviour.

PR: bin/163431
Sponsored by: Yakaz (http://www.yakaz.com)


228975 30-Dec-2011 uqs

Spelling fixes for tools/

Add some $FreeBSD$ tags so svn will allow the commit.


228974 30-Dec-2011 uqs

Set fbsd:nokeywords for contributed sources.


228956 29-Dec-2011 rwatson

Fix typo in comment.

MFC after: 3 days


228953 29-Dec-2011 uqs

Reencode files from latin1 to UTF-8.


228943 28-Dec-2011 jilles

sh: Allow quoting ^ and ] in bracket expressions.


228927 28-Dec-2011 cognet

Oops, if we want to check from 0 to nsock, the test condition should be
< nsock, not >.

Pointy hat to: cognet
Submitted by: Olivier Cochard-Labbe <olivier AT cochard doT me>


228903 26-Dec-2011 adrian

Oops, my bad. Fix a broken thing I introduced earlier.


228873 25-Dec-2011 jilles

sh: Add some testcases for pasting $*/$@ directly to a literal.

This also passes on stable/8.


228831 23-Dec-2011 adrian

Add in ath_ee_9287_print.


228594 16-Dec-2011 np

Catch up with new driver ioctls in cxgbe.

MFC after: 1 month


228561 16-Dec-2011 np

Many updates to cxgbe(4)

- Device configuration via plain text config file. Also able to operate
when not attached to the chip as the master driver.

- Generic "work request" queue that serves as the base for both ctrl and
ofld tx queues.

- Generic interrupt handler routine that can process any event on any
kind of ingress queue (via a dispatch table).

- A couple of new driver ioctls. cxgbetool can now install a firmware
to the card ("loadfw" command) and can read the card's memory
("memdump" and "tcb" commands).

- Lots of assorted information within dev.t4nex.X.misc.* This is
primarily for debugging and won't show up in sysctl -a.

- Code to manage the L2 tables on the chip.

- Updates to cxgbe(4) man page to go with the tunables that have changed.

- Updates to the shared code in common/

- Updates to the driver-firmware interface (now at fw 1.4.16.0)

MFC after: 1 month


228524 15-Dec-2011 fjoe

Fix last-minute typo.


228523 15-Dec-2011 fjoe

Add job error output test.

make(1) with openpty() currently fails this test: there's a race condition
and error output is sometimes lost.


228512 14-Dec-2011 jilles

Add a test for r228510.


228409 11-Dec-2011 dim

Add more files to cleanup with 'make delete-old' when WITHOUT_CLANG is
in effect.

MFC after: 1 week


228371 09-Dec-2011 jhb

- Add a test for PR 151758.
- While here, make this compile and work on non-i386:
- Use CMSG_SPACE(), CMSG_LEN(), and CMSG_FIRSTHDR() instead of ignoring
padding between 'struct cmsghdr' and control message payloads.
- Don't initialize the control message before calling recvmsg().
Instead, check that we get a valid control message on return from
recvmsg().
- Use errx() instead of err() for some errors that don't report failures
that set errno.

Requested by: kib (1)


228276 05-Dec-2011 luigi

1. Fix the handling of link reset while in netmap more.
A link reset now is completely transparent for the netmap client:
even if the NIC resets its own ring (e.g. restarting from 0),
the client will not see any change in the current rx/tx positions,
because the driver will keep track of the offset between the two.

2. make the device-specific code more uniform across different drivers
There were some inconsistencies in the implementation of the netmap
support routines, now drivers have been aligned to a common
code structure.

3. import netmap support for ixgbe . This is implemented as a very
small patch for ixgbe.c (233 lines, 11 chunks, mostly comments:
in total the patch has only 54 lines of new code) , as most of
the code is in an external file sys/dev/netmap/ixgbe_netmap.h ,
following some initial comments from Jack Vogel about making
changes less intrusive.
(Note, i have emailed Jack multiple times asking if he had
comments on this structure of the code; i got no reply so
i assume he is fine with it).

Support for other drivers (em, lem, re, igb) will come later.

"ixgbe" is now the reference driver for netmap support. Both the
external file (sys/dev/netmap/ixgbe_netmap.h) and the device-specific
patches (in sys/dev/ixgbe/ixgbe.c) are heavily commented and should
serve as a reference for other device drivers.

Tested on i386 and amd64 with the pkt-gen program in tools/tools/netmap,
the sender does 14.88 Mpps at 1050 Mhz and 14.2 Mpps at 900 MHz
on an i7-860 with 4 cores and 82599 card. Haven't tried yet more
aggressive optimizations such as adding 'prefetch' instructions
in the time-critical parts of the code.


228274 05-Dec-2011 eadler

Fix some uninitialized variables in pipe regression tests that result in
failure.

PR: misc/161175
Submitted by: gianni@
Approved by: nwhitehorn@
MFC after: 1 week


228259 04-Dec-2011 dumbbell

Support domain-search in dhclient(8)

The "domain-search" option (option 119) allows a DHCP server to publish
a list of implicit domain suffixes used during name lookup. This option
is described in RFC 3397.

For instance, if the domain-search option says:
".example.org .example.com"
and one wants to resolve "foobar", the resolver will try:
1. "foobar.example.org"
2. "foobar.example.com"

The file /etc/resolv.conf is updated with a "search" directive if the
DHCP server provides "domain-search".

A regression test suite is included in this patch under
tools/regression/sbin/dhclient.

PR: bin/151940
Sponsored by Yakaz (http://www.yakaz.com)


228196 02-Dec-2011 fjoe

Revert to conservative defaults. WITH_PROFILE is a default now.

NO_PROFILE overrides in Makefile.inc1 and bsd.own.m are left intact
so that the reversal to the WITHOUT_PROFILE will be easier in future.


228177 01-Dec-2011 kib

Add a simple test for pipe inode numbers reported by fstat(2).

Submitted by: gianni
MFC after: 1 week


228159 30-Nov-2011 fjoe

Add WITH_CTF description.


228149 30-Nov-2011 fjoe

Add three execution tests for make(1):
- plus: execute "+command" when run with -jX -n
- ellipsis: ellipsis ("...") from variable
- empty: empty command (from variable)

Currently make(1) fails all three tests:
- plus: segmentation fault due to incorrect command list handling
- ellipsis: works in compat mode but fails in job (-jX) mode
- empty:
- compat mode: prints error message
- job mode: works but prints empty string


228143 29-Nov-2011 fjoe

Turn off profiled libs build by default.
Can be enabled back using WITH_PROFILE=yes in /etc/src.conf


228109 28-Nov-2011 jilles

test: Add more testcases.

The new testcases pass even on old stable/7, but some other implementations
manage to get them wrong.

Also remove a few duplicate testcases.


228082 28-Nov-2011 dim

Add WITH_LIBCPLUSPLUS under tools/build/options; the knob itself was
already added in a previous revision.


228081 28-Nov-2011 dim

Under tools/build/options, add missing svn:keywords properties to
WITH_OFED and WITHOUT_GPIO.


228066 28-Nov-2011 fjoe

Add a comment that shows how to limit the build to the specific list of arches.


228007 26-Nov-2011 jilles

sh: Add tests for some corner cases of 'case' exit status.

These already work properly.


227937 24-Nov-2011 fjoe

Add missing ;;


227935 24-Nov-2011 fjoe

Utility script to build specific parts of the source tree on all arches


227870 23-Nov-2011 adrian

Tidy up the statistic documentation.

Sponsored by: Hobnob, Inc.


227869 23-Nov-2011 adrian

Add the new statistics introduced in r227868.

Sponsored by: Hobnob, Inc.


227773 20-Nov-2011 jilles

sh: Allow unsetting OPTIND.

Note that only assigning the decimal value 1 resets getopts, as before.


227636 17-Nov-2011 dim

Revert r227538, since it doesn't compile with clang at all (it doesn't
allow the built-in operations to be redefined, at least not without
excessive force).

Instead, just disable LLVM's support for atomic operations for now.
Nothing in either clang or the tablegen tools currently depends on it.

This still allows users of head built before r198344 to upgrade to
top-of-head seamlessly.


227614 17-Nov-2011 luigi

Bring in support for netmap, a framework for very efficient packet
I/O from userspace, capable of line rate at 10G, see

http://info.iet.unipi.it/~luigi/netmap/

At this time I am bringing in only the generic code (sys/dev/netmap/
plus two headers under sys/net/), and some sample applications in
tools/tools/netmap. There is also a manpage in share/man/man4 [1]

In order to make use of the framework you need to build a kernel
with "device netmap", and patch individual drivers with the code
that you can find in

sys/dev/netmap/head.diff

The file will go away as the relevant pieces are committed to
the various device drivers, which should happen in a few days
after talking to the driver maintainers.

Netmap support is available at the moment for Intel 10G and 1G
cards (ixgbe, em/lem/igb), and for the Realtek 1G card ("re").
I have partial patches for "bge" and am starting to work on "cxgbe".
Hopefully changes are trivial enough so interested third parties
can submit their patches. Interested people can contact me
for advice on how to add netmap support to specific devices.

CREDITS:
Netmap has been developed by Luigi Rizzo and other collaborators
at the Universita` di Pisa, and supported by EU project CHANGE
(http://www.change-project.eu/)
The code is distributed under a BSD Copyright.

[1] In my opinion is a bad idea to have all manpage in one directory.
We should place kernel documentation in the same dir that contains
the code, which would make it much simpler to keep doc and code
in sync, reduce the clutter in share/man/ and incidentally is
the policy used for all of userspace code.
Makefiles and doc tools can be trivially adjusted to find the
manpages in the relevant subdirs.


227538 15-Nov-2011 dim

LLVM uses atomic operations, which are not supported on i386 and GCC
emits calls for them, rather than expanding them inline. Older FreeBSD
versions compile for i386 by default and as such we end up with
unresolved symbols when we build LLVM's TableGen utility as a build
tool on them. Add the functions that GCC emits here, but don't bother
to make them atomic. Such is not needed.

Submitted by: marcel
MFC after: 1 week


227522 15-Nov-2011 das

A regression test to ensure that arc4random returns different sequences
in parent and child processes after a fork.


227345 08-Nov-2011 cognet

Add IPv6 support to netblast/netsend/netreceive

PR: bin/161368
Submitted by: Olivier Cochard-Labbe <olivier AT cochard doT me>


227124 05-Nov-2011 jilles

fifo_misc test: Fix swapped lseek arguments.

It worked regardless because SEEK_CUR happens to be 1.


226892 28-Oct-2011 jilles

sh: Add test for exit status of for loop without items.

POSIX says the exit status of a for loop without any items shall be 0. There
are no exceptions if the exit status of the previous command was not 0 or if
the item list contains a command substitution with non-zero exit status.


226799 26-Oct-2011 adrian

Bring over the new aggregate statistics from the 11n branch.

Some of these values are currently updated by the driver (the 11n
RX related statistics) so they are immediately useful.


226729 25-Oct-2011 pjd

Fix resize regressions tests - we need to destroy BSDlabel before we can
create GPT.

MFC after: 3 days


226672 23-Oct-2011 phk

Add a "-P olddistfiles" facility to prefetch ports distfiles, using an
old distfile directory as primary source:

mkdir /freebsd/ports/distfiles.old
mv /freebsd/ports/distfiles/* /freebsd/ports/distfiles.old
sh sysbuild.sh -c $yourconfig -P /freebsd/ports/distfiles.old
rm -rf /freebsd/ports/distfiles.old

Unfortunately bsd.ports.mk does not attempt to use a hard-link so
while this runs you need diskspace for both your old and your "new"
distfiles.


226612 21-Oct-2011 pjd

Because ZFS boot code was very fragile in the past and real PITA to debug,
introduce zfsboottest.sh script that will verify if it will be possible to boot
from the given pool.

# zfsboottest.sh system

Where "system" is pool name of the pool we want to boot from.

What is being verified by the script:
- Does the pool exist?
- Does it have bootfs property configured?
- Is mountpoint property of the boot dataset set to 'legacy'?

Dataset configured in bootfs property has to be mounted to perform more
checks:
- Does the /boot directory in boot dataset exist?
- Is this dataset configured as root file system in /etc/fstab or set
in vfs.root.mountfrom variable in /boot/loader.conf?

By using zfsboottest tool the script will read all the files in /boot
directory using ZFS boot code and calculate their checksums.
Then, it will walk /boot directory using find(1) though regular file sytem
and also read all the files in /boot directory and calculate their checksums.
If any of the files cannot be looked up, read or checksum is invalid it will
be reported and booting off of this pool is probably not possible.

Some additional checks may be interesting as well. For example if the disks
contain proper pmbr and gptzfsboot code or if all expected files in /boot/
are present.

When upgrading FreeBSD, one should snapshot datasets that contain operating
system, upgrade (install new world and kernel) and use zfsboottest.sh to verify
if it will be possible to boot from new configuration. If all is good one
should upgrade boot blocks, by eg.:

# gpart -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1

If something is wrong, one should rollback datasets and report the problems.

MFC after: 3 days


226611 21-Oct-2011 pjd

- Allow to specify multiple files to check, eg.

zfsboottest gpt/system0 gpt/system1 - /boot/kernel/kernel /boot/zfsloader

- Instead of printing file's content calculate MD5 hash of the file,
so it can be easly compared to the hash calculated via file system.
- Some other minor improvements.

MFC after: 3 days


226605 21-Oct-2011 das

Add regression tests for modf{,f,l}().


226603 21-Oct-2011 das

Tests for complex trig and hyperbolic functions.


226602 21-Oct-2011 das

Tests for cancellation in fma(). Also include more tests for 128-bit
long doubles. Thanks for clusteradm (simon) for making the needed
hardware available.


226523 18-Oct-2011 jilles

Fix some memory errors in *at() regression tests.


226378 15-Oct-2011 das

Add some tests for corner cases of log() in unusual rounding modes.
I wrote these ages ago, but they've been failing until now.


226377 15-Oct-2011 das

Add some tests for double-rounding bugs in fma().


226242 11-Oct-2011 thompsa

Fix build after TARGET_BIG_ENDIAN was nuked from orbit.


225778 27-Sep-2011 stas

- Add missing interdependencies to kerberos libraries. Some of the
kerberos libraries were not linked properly (missing dependencies),
which causes 3rd party applications linking to fail when --as-needed
ld flag is used. I also added the --no-undefined ld(1) flag to make
sure that there're no missing dependencies.

MFC after: 3 days


225609 16-Sep-2011 avg

zfsboottest: some additional enhancements

- redirect diagnostics printfs in the boot code to stderr
- do not read trailing garbage from a trailing block of a file

Also add my copyright to the file after making so many changes.

Approved by: re (kib)
MFC after: 1 week


225608 16-Sep-2011 avg

zfstest: rename to zfsboottest and move to tools

Approved by: re (kib)
MFC after: 1 week


225334 02-Sep-2011 marius

Fix alignment assumptions.

PR: 160289
Approved by: re (kib)
MFC after: 3 days


225044 20-Aug-2011 bz

Add support for IPv6 to ipfw fwd:
Distinguish IPv4 and IPv6 addresses and optional port numbers in
user space to set the option for the correct protocol family.
Add support in the kernel for carrying the new IPv6 destination
address and port.
Add support to TCP and UDP for IPv6 and fix UDP IPv4 to not change
the address in the IP header.
Add support for IPv6 forwarding to a non-local destination.
Add a regession test uitilizing VIMAGE to check all 20 possible
combinations I could think of.

Obtained from: David Dolson at Sandvine Incorporated
(original version for ipfw fwd IPv6 support)
Sponsored by: Sandvine Incorporated
PR: bin/117214
MFC after: 4 weeks
Approved by: re (kib)


224989 18-Aug-2011 jonathan

Test process descriptors.

Ensure that process descriptors work as expected. We should be able to:
- pdfork(), like regular fork(), but producing a process descriptor
- pdgetpid() to convert a PD into a PID
- pdkill() to send signals to a process identified by a PD

Approved by: re (kib), mentor (rwatson)
Sponsored by: Google Inc


224910 16-Aug-2011 jonathan

poll(2) implementation for capabilities.

When calling poll(2) on a capability, unwrap first and then poll the
underlying object.

Approved by: re (kib), mentor (rwatson)
Sponsored by: Google Inc


224797 12-Aug-2011 jonathan

Rename CAP_*_KEVENT to CAP_*_EVENT.

Change the names of a couple of capability rights to be less
FreeBSD-specific.

Approved by: re (kib), mentor (rwatson)
Sponsored by: Google Inc


224793 12-Aug-2011 jonathan

Test *at(2) calls with capability-mode lookup.

This commit adds regression testing for openat(), fstatat(), etc. with
capability scoping ("strict relative" lookup), which applies:
- in capability mode
- when performing any *at() lookup relative to a capability

These tests will fail until the *at() code is committed; on my local
instance, with the *at() changes, they all pass.

Approved by: re (kib), mentor (rwatson)
Sponsored by: Google Inc


224784 11-Aug-2011 jonathan

Use the right printf() format string without a cast to maxint_t.

As per kib's suggestion, we also change test_count from a size_t to an int;
its value at the moment is 4, and we only expect it to go up to 7.

Approved by: re (kib), mentor (rwatson)
Sponsored by: Google Inc


224778 11-Aug-2011 rwatson

Second-to-last commit implementing Capsicum capabilities in the FreeBSD
kernel for FreeBSD 9.0:

Add a new capability mask argument to fget(9) and friends, allowing system
call code to declare what capabilities are required when an integer file
descriptor is converted into an in-kernel struct file *. With options
CAPABILITIES compiled into the kernel, this enforces capability
protection; without, this change is effectively a no-op.

Some cases require special handling, such as mmap(2), which must preserve
information about the maximum rights at the time of mapping in the memory
map so that they can later be enforced in mprotect(2) -- this is done by
narrowing the rights in the existing max_protection field used for similar
purposes with file permissions.

In namei(9), we assert that the code is not reached from within capability
mode, as we're not yet ready to enforce namespace capabilities there.
This will follow in a later commit.

Update two capability names: CAP_EVENT and CAP_KEVENT become
CAP_POST_KEVENT and CAP_POLL_KEVENT to more accurately indicate what they
represent.

Approved by: re (bz)
Submitted by: jonathan
Sponsored by: Google Inc


224768 10-Aug-2011 np

Move cxgbtool from usr.sbin to tools/tools.

Approved by: re (kib)
MFC after: 1 month


224688 06-Aug-2011 rwatson

Properly initialise the "len" argument to getsockname(2) in the tcpdrop
regression test so that it works (more) consistently.

Approved by: re (bz)
Sponsored by: Juniper Networks


224660 05-Aug-2011 jonathan

Expect fchflags(2) to fail with EOPNOTSUPP on NFS.

Even if we have CAP_FCHFLAGS, fchflags(2) fails on NFS. This is normal
and expected, so don't fail the test because of it.

Note that, whether or not we are on NFS, fchflags(2) should always fail
with ENOTCAPABLE if we are using a capability that does not have the
CAP_FCHFLAGS right.

Approved by: re (kib), mentor (rwatson)
Sponsored by: Google Inc


224653 04-Aug-2011 jonathan

Flesh out the cap_test regression test.

Add more regression testing, some of which is expected to fail until we
commit more kernel implementation.

Approved by: re (kib), mentor (rwatson)
Sponsored by: Google Inc


224651 04-Aug-2011 jonathan

Flesh out the cap_test regression test.

Add more regression testing, some of which is expected to fail until we
commit more kernel implementation.

Approved by: re (kib), mentor (rwatson)
Sponsored by: Google Inc


224528 30-Jul-2011 avg

update smp related documentation after recent changes

Remove references to machdep.hlt_logical_cpus and
machdep.hlt_cpus sysctls and tunables.
Document machdep.hyperthreading_allowed and
hint.lapic.X.disabled tunables.

Prompted by: ru
Proofreading: bf
Reviewed by: jhb
Approved by: re (kib)


224266 22-Jul-2011 adrian

Add athradar, an implementation of the radar parameter diagnostic
API.

This is a reimplementation from scratch.

Approved by: re (kib)


224104 16-Jul-2011 jilles

sh: Add a test for a fairly obscure case with aliases.

This also passes on stable/8.


224103 16-Jul-2011 philip

Garbage-collect the tools for maintaining the previous PCI vendors list. The
sources this tool collates are no longer available and the format of the
current database is directly usable by pciconf(8) without needing any special
processing.


223907 10-Jul-2011 jilles

posix_spawn: If an error is detected in the child process, reap the zombie.

Formerly, in this case an error was returned but the pid was also returned
to the application, requiring the application to use unspecified behaviour
(the returned pid in error situations) to avoid zombies.

Now, reap the zombie and do not return the pid.

MFC after: 2 weeks


223865 08-Jul-2011 jonathan

Clarify the meaning of a test.

Rather than using err() if either of two failure conditions
fires (which can produce spurious error messages), just use
errx() if the one condition that really matters fires.

In practice, this single test is enough to detect the failure
mode we're looking for (kqueue being inherited across fork).

Approved by: mentor (rwatson), re (Capsicum blanket)
Sponsored by: Google Inc


223845 07-Jul-2011 jonathan

Ensure that kqueue is not inherited across fork().

Modify the existing unit test (from libkqueue) which already exercises process events via
fork() and kill(). Now, the child process simply checks that the 'kqfd' descriptor is invalid.

Some minor modifications were required to make err() work correctly. It seems that this test
was imported using the output of a configure script, but config.h was not included in key
places, nor was its syntax correct (need '#define HAVE_FOO 1' rather than '#define HAVE_FOO').

Finally, change main() to run the "proc" suite by default, but widened the '#if TODO' in
proc.c to include the non-functioning test event_trigger().

Approved by: mentor (rwatson), re (Capsicum blanket)
Sponsored by: Google Inc


223546 25-Jun-2011 jilles

sh: Test that '!' is literal if quoted and first char of bracket expression

This also works on stable/8.


223535 25-Jun-2011 hselasky

- Need to respect the module name and the USB mode when accumulating device ID's.
- Be more verbose on file seek failures. Allow a file size of zero.
- Improve the wrapper shell.

MFC after: 14 days


223534 25-Jun-2011 hselasky

- Improve bus_autoconf tool.
- Implement simple and generic language which can
be used to describe any kind of device ID structures.
- Fix endian issues.
- Add an example format file.

Suggested by: imp @
MFC after: 14 days


223518 24-Jun-2011 hselasky

- We need to sort all USB device ID's together. Else the matching order will
be wrong. This is required because devd only executes one entry.

MFC after: 14 days


223490 24-Jun-2011 hselasky

- Make sure we don't match the wrong device by adding
a match for the bus the device belongs to.

PR: misc/157903
MFC after: 14 days


223489 24-Jun-2011 hselasky

- Add additional information to the PnP info of USB HUBs children which
is now required by bus_autoconf.
- Allow interface class matching even if device class is vendor specific.
- Update bus_autoconf tool to not generate system and subsystem match lines
for the nomatch event.

PR: misc/157903
MFC after: 14 days


223486 24-Jun-2011 hselasky

- Move all USB device ID arrays into so-called sections,
sorted according to the mode which they support:
host, device or dual mode
- Add generic tool to extract these data:
tools/bus_autoconf

Discussed with: imp
Suggested by: Robert Millan <rmh@debian.org>
PR: misc/157903
MFC after: 14 days


223283 19-Jun-2011 jilles

sh: Add test for r223282.


223209 17-Jun-2011 ed

Add WITHOUT_UTMPX switch to the build system.

This knob removes the tools that are exclusively used to view and
maintain the databases maintained by utmpx, namely last, users, who,
wtmpcvt, ac, lastlogin and utxrm.

The tool w is not in this list, because it has some other functionality
which is unrelated to utmpx; it is hardlinked to the uptime tool.


223208 17-Jun-2011 ed

Don't remove the periodic script for ac(8) when setting WITHOUT_ACCT.


223201 17-Jun-2011 ed

Don't omit ac(8) as part of WITHOUT_ACCT.

The WITHOUT_ACCT switch is supposed to omit tools related to process
accounting, namely accton and sa. ac(8) is just a simple tool that
prints statistics based on data in the utx.log database. It has nothing
to do with the former.


223186 17-Jun-2011 jilles

sh: Add case statement fallthrough (with ';&' instead of ';;').

Replacing ;; with the new control operator ;& will cause the next list to be
executed as well without checking its pattern, continuing until a list ends
with ;; or until the end of the case statement. This is like omitting
"break" in a C "switch" statement.

The sequence ;& was formerly invalid.

This feature is proposed for the next POSIX issue in Austin Group issue
#449.


223183 17-Jun-2011 jilles

sh: Skip variables with invalid names in "set", "export -p", "readonly -p".

This ensures the output of these commands is valid shell input.


223163 16-Jun-2011 jilles

sh: Reduce unnecessary forks with eval.

The eval special builtin now runs the code with EV_EXIT if it was run
with EV_EXIT itself.

In particular, this eliminates one fork when a command substitution contains
an eval command that ends with an external program or a subshell.

This is similar to what r220978 did for functions.


223120 15-Jun-2011 jilles

sh: Add support for named character classes in bracket expressions.

Example:
case x in [[:alpha:]]) echo yes ;; esac


223011 12-Jun-2011 jilles

sh: Add test for LC_COLLATE-based character ranges in case.


223007 12-Jun-2011 jilles

sh: Add test for case pattern matching with iso-8859-1 charset.

This also passes on stable/8.


222974 11-Jun-2011 np

Add "context" subcommand to fetch and display SGE context.


222957 10-Jun-2011 jilles

sh: Do parameter expansion on ENV before using it.

This is required by POSIX, and allows things like ENV=\$HOME/.shrc.

Note that tilde expansion is explicitly not performed.


222907 09-Jun-2011 jilles

sh: Do parameter expansion before printing PS4 (set -x).

The function name expandstr() and the general idea of doing this kind of
expansion by treating the text as a here document without end marker is from
dash.

All variants of parameter expansion and arithmetic expansion also work (the
latter is not required by POSIX but it does not take extra code and many
other shells also allow it).

Command substitution is prevented because I think it causes too much code to
be re-entered (for example creating an unbounded recursion of trace lines).

Unfortunately, our LINENO is somewhat crude, otherwise PS4='$LINENO+ ' would
be quite useful.


222900 09-Jun-2011 np

cxgbetool: a tool for the cxgbe(4) driver.


222882 08-Jun-2011 jilles

sh: Add simple tests for set -x and PS4.


222813 07-Jun-2011 attilio

etire the cpumask_t type and replace it with cpuset_t usage.

This is intended to fix the bug where cpu mask objects are
capped to 32. MAXCPU, then, can now arbitrarely bumped to whatever
value. Anyway, as long as several structures in the kernel are
statically allocated and sized as MAXCPU, it is suggested to keep it
as low as possible for the time being.

Technical notes on this commit itself:
- More functions to handle with cpuset_t objects are introduced.
The most notable are cpusetobj_ffs() (which calculates a ffs(3)
for a cpuset_t object), cpusetobj_strprint() (which prepares a string
representing a cpuset_t object) and cpusetobj_strscan() (which
creates a valid cpuset_t starting from a string representation).
- pc_cpumask and pc_other_cpus are target to be removed soon.
With the moving from cpumask_t to cpuset_t they are now inefficient
and not really useful. Anyway, for the time being, please note that
access to pcpu datas is protected by sched_pin() in order to avoid
migrating the CPU while reading more than one (possible) word
- Please note that size of cpuset_t objects may differ between kernel
and userland. While this is not directly related to the patch itself,
it is good to understand that concept and possibly use the patch
as a reference on how to deal with cpuset_t objects in userland, when
accessing kernland members.
- KTR_CPUMASK is changed and now is represented through a string, to be
set as the example reported in NOTES.

Please additively note that no MAXCPU is bumped in this patch, but
private testing has been done until to MAXCPU=128 on a real 8x8x2(htt)
machine (amd64).

Please note that the FreeBSD version is not yet bumped because of
the upcoming pcpu changes. However, note that this patch is not
targeted for MFC.

People to thank for the time spent on this patch:
- sbruno, pluknet and Nicholas Esborn (nick AT desert DOT net) tested
several revision of the patches and really helped in improving
stability of this work.
- marius fixed several bugs in the sparc64 implementation and reviewed
patches related to ktr.
- jeff and jhb discussed the basic approach followed.
- kib and marcel made targeted review on some specific part of the
patch.
- marius, art, nwhitehorn and andreast reviewed MD specific part of
the patch.
- marius, andreast, gonzo, nwhitehorn and jceel tested MD specific
implementations of the patch.
- Other people have made contributions on other patches that have been
already committed and have been listed separately.

Companies that should be mentioned for having participated at several
degrees:
- Yahoo! for having offered the machines used for testing on big
count of CPUs.
- The FreeBSD Foundation for having sponsored my devsummit attendance,
which has been instrumental.
- Sandvine for having offered offices and infrastructure during
development.

(I really hope I didn't forget anyone, if it happened I apologize in
advance).


222716 05-Jun-2011 jilles

sh: Fix $? in heredocs on simple commands.

PR: bin/41410


222715 05-Jun-2011 jilles

sh: Add already working testcases for $? in here-document.

If the here-document is attached to a compound command or subshell, $?
already works properly. This is both a workaround for bin/41410 and a
requirement for a true fix for bin/41410.

PR: bin/41410
MFC after: 1 week


222689 04-Jun-2011 rwatson

Add a very simple IPDIVERT test, which creates IP divert sockets and
checks for collision/non-collision properties in binding them. This
test would have identified a bug recently reported on current@
involding my disaggregation of the pcbinfo lock.

It would be nice if this test also exercised packet diversion and
injection, but that is for another day.

MFC after: 3 days
Sponsored by: Juniper Networks, Inc.


222684 04-Jun-2011 jilles

sh: Reduce more needless differences between error messages.


222676 04-Jun-2011 jilles

sh: Honour -n while processing -c string.


222661 03-Jun-2011 jilles

sh: Add tests for -n flag. These already pass.


222535 31-May-2011 imp

Don't need (and can't use) -L to copy links here.


222512 30-May-2011 jilles

sh: Add tests for some somewhat obscure aspects of function definitions.


222487 30-May-2011 bz

Upgrade jail(2) to latest jail(2) API to make the regression test work
again. Eventually should switch to jail_set(2).

Reported by: rwatson
MFC after: 10 days


222486 30-May-2011 rwatson

Rework TIMEWAIT regression test so that kernel-allocated port numbers are
used rather than a fixed userspace one, avoiding conflicts between the two
test runs.

MFC after: 3 days
Sponsored by: Juniper Networks, Inc.


222485 30-May-2011 rwatson

Add missing include of stdio.h.

MFC after: 3 days
Sponsored by: Juniper Networks, Inc.


222484 30-May-2011 rwatson

In the tcpdrop regression test, allow the kernel to allocate us a port
rather than using a fixed port number. This means that the regression test
can be run many times in a row without waiting on TIMEWAIT to release a
hard-coded port number.

MFC after: 3 days
Sponsored by: Juniper Networks, Inc.


222483 30-May-2011 rwatson

Add missing #include of err.h.

MFC after: 3 days
Sponsored by: Juniper Networks, Inc.


222451 29-May-2011 jilles

sh: Add test for 'set +o'.


222418 28-May-2011 jilles

printf: Allow multibyte characters for '<char> form, avoid negative codes.

Examples:
LC_ALL=en_US.UTF-8 printf '%d\n' $(printf \'\\303\\244)
LC_ALL=en_US.ISO8859-1 printf '%d\n' $(printf \'\\344)
Both of these should print 228.

Like some other shells, incomplete or invalid multibyte characters yield the
value of the first byte without a warning.

Note that there is no general way to go back from the character code to the
character.


222381 27-May-2011 jilles

sh: Correct criterion for using CDPATH in cd.

CDPATH should be ignored not only for pathnames starting with '/' but also
for pathnames whose first component is '.' or '..'.

The man page already describes this behaviour.


222379 27-May-2011 jilles

sh: Add simple CDPATH test.


222361 27-May-2011 jilles

sh: Fix unquoted $@/$* if IFS=''.

If IFS is null, unquoted $@/$* should still expand to separate words.
This differs from quoted $@ (which does not depend on IFS) in that pathname
generation is performed and empty words are removed.


222322 26-May-2011 adrian

Include an EEPROM dump program for the AR9287 EEPROM format.


222295 25-May-2011 obrien

+ Tighten up (and simplify) the pass_cmd_vars_1 "variable definition arrived
from the calling make" test.
+ Be more tolerant of newlines in the plus_flag "supports the '+' flag" test.


222286 25-May-2011 ru

[mdoc] Fixed .Dt call.


222273 25-May-2011 obrien

Build and install a BSD licensed grep.
If WITH_BSD_GREP is not set, it will be 'bsdgrep' and GNUgrep will be
'[ef]grep'. Otherwise, BSD-grep will be the grep family, and GNUgrep
will be 'gnugrep'.

Discussed with: brooks


222189 22-May-2011 imp

Add the description properly...


222188 22-May-2011 imp

Add documentation for WITHOUT_KERNEL_SYMBOLS


222174 22-May-2011 jilles

sh: Add test for r222173.


222171 22-May-2011 uqs

Update URLs and fix regex to work with current version of the files.


222165 21-May-2011 jilles

sh: Expand aliases after assignments and redirections.


222158 21-May-2011 jilles

sh: Add test for positional parameters with more than one digit.

This also passes on stable/8.


222154 20-May-2011 jilles

sh: Implement the cd -e flag proposed for the next POSIX issue.

This reflects failure to determine the pathname of the new directory in the
exit status (1). Normally, cd returns successfully if it did chdir() and the
call was successful.

In POSIX, -e only has meaning with -P; because our -L is not entirely
compliant and may fall back to -P mode, -e has some effect with -L as well.


222134 20-May-2011 jilles

sh: Allow terminating a heredoc with a terminator at EOF without a newline.

This is sometimes used with eval or old-style command substitution, and most
shells other than ash derivatives allow it.

It can also be used with scripts that violate POSIX's requirement on the
application that they end in a newline (scripts must be text files except
that line length is unlimited).

Example:
v=`cat <<EOF
foo
EOF`
echo $v

This commit does not add support for the similar construct with new-style
command substitution, like
v=$(cat <<EOF
foo
EOF)
This continues to require a newline after the terminator.


222090 19-May-2011 imp

Implement WITH{,OUT}_{GCC,BINUTILS} to provide finer-grained control
over building gcc and binutils. They default to true, unless
MK_TOOLCHAIN is no.

Reviewed by: ru@


222016 17-May-2011 ru

Added description for WITH_OFED.


221887 14-May-2011 jilles

sh: Add tests for lines that look like heredoc delimiters but are not.


221877 14-May-2011 imp

Restore BOOT2CFG, accidentally removed in r212938.

PR: 157020


221856 13-May-2011 imp

If there's no package directory, don't try to install packages from
it. Instead, report that 0 packages are reported.

PR: misc/140436


221852 13-May-2011 imp

Add ${} around variable dereference...

Submitted by: garrett coopper


221851 13-May-2011 imp

Implement -f to inhibit copying s1 partition out for speed.
(-z not taken from PR, it is no longer needed since we basically always
do that now)

PR: misc/151698
Submitted by: lev@


221850 13-May-2011 imp

Copy symbolic links as files rather than recreating the links.

PR: misc/151697
Submitted by: lev@
MFC after: 2 weeks


221733 10-May-2011 ru

Reassurance for impatient.


221732 10-May-2011 ru

Style.


221730 10-May-2011 ru

- There now exist options that have different defaults depending on
the architecture, reflect this in documentation. For such
options, both WITH_FOO and WITHOUT_FOO description files should
be provided.

Prodded by: des

- Setting a build option may enforce other build options, try harder
to detect this case.

- Setting a build option may change other option's default value,
try harder to detect this case.


221729 10-May-2011 ru

The Objective C support was removed in r220755.

Submitted by: des


221691 09-May-2011 adrian

This is a full 32 bit field for kite.


221669 08-May-2011 jilles

sh: Add \u/\U support (in $'...') for UTF-8.

Because we have no iconv in base, support for other charsets is not
possible.

Note that \u/\U are processed using the locale that was active when the
shell started. This is necessary to avoid behaviour that depends on the
parse/execute split (for example when placing braces around an entire
script). Therefore, UTF-8 encoding is implemented manually.


221646 08-May-2011 jilles

sh: Add UTF-8 support to pattern matching.

?, [...] patterns match codepoints instead of bytes. They do not match
invalid sequences. [...] patterns must not contain invalid sequences
otherwise they will not match anything. This is so that ${var#?} removes the
first codepoint, not the first byte, without putting UTF-8 knowledge into
the ${var#pattern} code. However, * continues to match any string and an
invalid sequence matches an identical invalid sequence. (This differs from
fnmatch(3).)


221602 07-May-2011 jilles

sh: Add UTF-8 support to ${#var}.

If the current locale uses UTF-8, ${#var} counts codepoints (more precisely,
bytes b with (b & 0xc0) != 0x80).


221541 06-May-2011 ru

MK_GPIO changed its default; reflect.


221540 06-May-2011 ru

Removed trailing whitespace.


221539 06-May-2011 ru

Tidy up formatting.


221513 05-May-2011 jilles

sh: Add $'quoting' (C-style escape sequences).

A string between $' and ' may contain backslash escape sequences similar to
the ones in a C string constant (except that a single-quote must be escaped
and a double-quote need not be). Details are in the sh(1) man page.

This construct is useful to include unprintable characters, tabs and
newlines in strings; while this can be done with a command substitution
containing a printf command, that needs ugly workarounds if the result is to
end with a newline as command substitution removes all trailing newlines.

The construct may also be useful in future to describe unprintable
characters without needing to write those characters themselves in 'set -x',
'export -p' and the like.

The implementation attempts to comply to the proposal for the next issue of
the POSIX specification. Because this construct is not in POSIX.1-2008,
using it in scripts intended to be portable is unwise.

Matching the minimal locale support in the rest of sh, the \u and \U
sequences are currently not useful.

Exp-run done by: pav (with some other sh(1) changes)


221463 04-May-2011 jilles

sh: Apply set -u to variables in arithmetic.

Note that this only applies to variables that are actually used.
Things like (0 && unsetvar) do not cause an error.

Exp-run done by: pav (with some other sh(1) changes)


221461 04-May-2011 jilles

sh: Detect an error for ${#var<GARBAGE>}.

In particular, this makes things like ${#foo[0]} and ${#foo[@]} errors
rather than silent equivalents of ${#foo}.

PR: bin/151720
Submitted by: Mark Johnston
Exp-run done by: pav (with some other sh(1) changes)


221431 04-May-2011 jonathan

Regression tests for Capsicum capability mode.

Ensure that system calls that access global namespaces, e.g. open(2), are not permitted, and that whitelisted sysctls like kern.osreldate are.

Approved by: rwatson
Sponsored by: Google, Inc.


221391 03-May-2011 gnn

Give some sort of message when the program is not run as root.
Root privileges are required to talk to the device.

Submitted by: Sriram Rapuru at Wipro for Exar Inc.
MFC after: 2 weeks


221266 30-Apr-2011 bz

Introduce two new options MK_INET and MK_INET_SUPPORT analogically
with INET6 equivalents. Patch reather than re-genenerating src.conf
(given the current problem with the script that does the re-gen).

Reviewed by: gnn
Sponsored by: The FreeBSD Foundation
Sponsored by: iXsystems
MFC after: 2 weeks


221175 28-Apr-2011 gnn

A diagnostic tool to go along with the vxge(4) 10GbE driver.
This tool can be used to print statistics, registers, and
other device specific information once the driver is loaded
into the kernel.

Submitted by: Sriram Rapuru from Exar
MFC after: 2 weeks


221161 28-Apr-2011 des

executable


221027 25-Apr-2011 jilles

sh: Set $? to 0 for background commands.

For backgrounded pipelines and subshells, the previous value of $? was being
preserved, which is incorrect.

For backgrounded simple commands containing a command substitution, the
status of the last command substitution was returned instead of 0.

If fork() fails, this is an error.


220978 23-Apr-2011 jilles

sh: Allow EV_EXIT through function calls, make {...} <redir more consistent.

If EV_EXIT causes an exit, use the exception mechanism to unwind
redirections and local variables. This way, if the final command is a
redirected command, an EXIT trap now executes without the redirections.

Because of these changes, EV_EXIT can now be inherited by the body of a
function, so do so. This means that a function no longer prevents a fork
before an exec being skipped, such as in
f() { head -1 /etc/passwd; }; echo $(f)

Wrapping a single builtin in a function may still cause an otherwise
unnecessary fork with command substitution, however.

An exit command or -e failure still invokes the EXIT trap with the
original redirections and local variables in place.

Note: this depends on SHELLPROC being gone. A SHELLPROC depended on
keeping the redirections and local variables and only cleaning up the
state to restore them.


220927 21-Apr-2011 simon

Expand / correct newsyslog regression tests:
- Test newslog with clasic naming of rotates files to actually test
the correct number of log files as newsyslog now does the correct
thing post r220926.
- Add some more newsyslog tests which tests keeping 0, 1, and 2
logfiles.


220903 20-Apr-2011 jilles

sh: Do not word split "${#parameter}".

This is only a problem if IFS contains digits, which is unusual but valid.

Because of an incorrect fix for PR bin/12137, "${#parameter}" was treated
as ${#parameter}. The underlying problem was that "${#parameter}"
erroneously added CTLESC bytes before determining the length. This
was properly fixed for PR bin/56147 but the incorrect fix was not backed
out.

Reported by: Seeker on forums.freebsd.org
MFC after: 2 weeks


220656 15-Apr-2011 jilles

sh: Add test for bin/12137.


220655 15-Apr-2011 jilles

sh: Add test for obscure and ambiguous ${#?}.


220654 15-Apr-2011 jilles

sh: Add test for bin/56147.


220534 11-Apr-2011 adrian

Generate opt_ah.h now for all ath tools, a recent HAL change of mine
now requires it.


220402 06-Apr-2011 uqs

Regenerate after r220401. It turns out makeman is clever about implied
flags, so remove that part from WITHOUT_CXX again.

This is only partially regenerated, as the entries for FDT and GPIO seem to
have switched their default state, too.


220401 06-Apr-2011 uqs

Complete WITHOUT_CXX support. It implies WITHOUT_GROFF and
WITHOUT_CLANG.

Don't build clang bootstrap/build-tools depending on this flag. We also
keep gperf, devd and libstdc++ around to prevent foot-shooting and to
make this a two-way street.


220376 05-Apr-2011 jilles

Allow strerror(0) and strerror_r(0, ...).

Of course, strerror_r() may still fail with ERANGE.

Although the POSIX specification said this could fail with EINVAL and
doing this likely indicates invalid use of errno, most other
implementations permitted it, various POSIX testsuites require it to
work (matching the older sys_errlist array) and apparently some
applications depend on it.

PR: standards/151316
MFC after: 1 week


220366 05-Apr-2011 adrian

* re-enable marker stuff, I accidentally disabled it during debugging
* correct arg check


220364 05-Apr-2011 adrian

Flesh out a simple tool to print the ALQ dump generated by the HAL.


220091 28-Mar-2011 mr

Use ${NANO_WORLDDIR}/var/empty as copy source since it has no schg flag set.
Copying over /var/empty's schg flag had unpleasant side effects (schg flag on /etc and /cfg)
during nanobsd boot before.


219901 23-Mar-2011 adrian

Oops, fix badness i must've introduced earlier.


219877 22-Mar-2011 trasz

Add test for acl_is_trivial_np(3).


219823 21-Mar-2011 mr

Delete all GPT partitions at once. (Suggested by Andrey V. Elsukov <bu7cher@yandex.ru>)
Fix amd64 merge script.


219799 20-Mar-2011 mr

Add a file with some remarks for setting up a zfs boot environment


219798 20-Mar-2011 mr

- Add script for preparing disks in GPT/ZFS boot environment
- Add merge script for integrating amd64 slice into i386 disk image


219760 18-Mar-2011 mr

- Build disk image (for USB sticks) and iso image
- Change name to reflect this
- Install all kernel modules
- Choose image size that i386 and amd64 can be combined into one image
- Mount tmpfs over /boot/zfs for zpool imports


219623 13-Mar-2011 jilles

sh: Fix some parameter expansion variants ${#...}.

These already worked: $# ${#} ${##} ${#-} ${#?}
These now work as well: ${#+word} ${#-word} ${##word} ${#%word}

There is an ambiguity in the standard with ${#?}: it could be the length of
$? or it could be $# giving an error in the (impossible) case that it is not
set. We continue to use the former interpretation as it seems more useful.


219621 13-Mar-2011 pjd

POSIX accepts only ELOOP if O_NOFOLLOW is specified and target is a symlink.


219611 13-Mar-2011 jilles

sh: Add some tests for ${#parameter}.


219568 12-Mar-2011 brucec

Fix warnings and style(9) issues.
Set WARNS to 6.


219566 12-Mar-2011 pjd

Add some missing consts.


219527 11-Mar-2011 brucec

Fix warnings and style(9) issues.
Set WARNS to 6.


219524 11-Mar-2011 brucec

Fix the build: we have snprintf(3).

MFC after: 1 week


219522 11-Mar-2011 brucec

Fix warnings and set WARNS to 6.

MFC after: 1 week


219521 11-Mar-2011 brucec

Fix warnings and set WARNS to 6.

MFC after: 1 week


219519 11-Mar-2011 brucec

mptable.h is now in include/x86.


219511 11-Mar-2011 brucec

Fix warnings and style(9) issues.
Set WARNS to 6.

MFC after: 1 week


219464 10-Mar-2011 pjd

Add support for *at syscalls:
- openat(2)
- unlinkat(2)
- mkdirat(2)
- linkat(2)
- symlinkat(2)
- renameat(2)
- mkfifoat(2)
- mknodat(2)
- fchmodat(2)
- fchownat(2)
- fstatat(2)


219463 10-Mar-2011 pjd

Improve test a bit, now that we have fstat(2) support.
The test was support to check if SUID/SGID bits are removed on first
write, but actually we were checking if they were removed after close.
Now we can check if SUID/SGID bits are gone after first write.

While here add checks to see if when both SUID and SGID bits are set they are
both cleared on first write.


219439 09-Mar-2011 pjd

Few initial ftruncate(2) tests. One of them covers stand/154873.

PR: stand/154873


219438 09-Mar-2011 pjd

Pass descriptor number to write(2), now that it is possible.


219437 09-Mar-2011 pjd

Add support for the following syscalls:
- fchmod(2),
- fchown(2),
- fchflags(2),
- fstat(2),
- ftruncate(2),
- fpathconf(2),
- lpathconf(2).
Make write(2) syscall to take descriptor instead of file name.

We implement descriptors by keeping track of open files and allowing to
reference them by the following syscalls. Because pjdfstest already supports
executing multiple syscalls from one command it works pretty well.

For example, the following command:

pjdfstest open foo "O_CREAT,O_RDWR" 0 : open bar "O_CREAT,O_RDONLY" 640 : fchmod 0 0666 : fchown 0 -1 20 : fchmod 1 0444

is equivalent of (error checking omitted):

int fd[2];

fd[0] = open("foo", O_CREAT | O_RDWR, 0);
fd[1] = open("bar", O_CREAT | O_RDONLY, 0640);
fchmod(fd[0], 0666);
fchown(fd[0], -1, 20);
fchmod(fd[1], 0444);


219420 09-Mar-2011 adrian

The regdomain entries are 16 bits, not 8. Print out all 16 bits.


219398 08-Mar-2011 adrian

Update to keep in sync with the HAL


219390 08-Mar-2011 jilles

sh: Test that . /dev/null returns exit status 0 and does not preserve $?.

Preserving $? may cause problems particularly if set -e is in effect.

It may be useful to preserve the old value of $? in the dot script but this
must not be implemented in such a way that it would break this test.


219362 07-Mar-2011 das

Add some tests for cexp() and cexpf(). (I need to clean up all of
these tests some day, but in the mean time, they're a useful sanity
check for future changes.)


219355 06-Mar-2011 adrian

Add support for printing out the open-loop TX power control EEPROM fields.


219270 04-Mar-2011 trasz

One more fix. Now all ACL tests pass again.


219269 04-Mar-2011 trasz

Adapt tools-crossfs.test to the new semantics.


219267 04-Mar-2011 trasz

Adapt NFSv4 ACL regression test to the fact that the new ZFS uses
new semantics.


219266 04-Mar-2011 trasz

Make ACL tests slightly easier to run.


219084 27-Feb-2011 delphij

Accept == as an alias of = which is a popular GNU extension.

This is intentionally undocumented for now since it's not part
of any standard.

MFC after: 1 month


219020 25-Feb-2011 gabor

- Add two more iconv-related files, which were left out from previous commit

Approved by: delphij (mentor)


219019 25-Feb-2011 gabor

Add the BSD-licensed Citrus iconv to the base system with default off
setting. It can be built by setting the WITH_ICONV knob. While this
knob is unset, the library part, the binaries, the header file and
the metadata files will not be built or installed so it makes no impact
on the system if left turned off.

This work is based on the iconv implementation in NetBSD but a great
number of improvements and feature additions have been included:

- Some utilities have been added. There is a conversion table generator,
which can compare conversion tables to reference data generated by
GNU libiconv. This helps ensuring conversion compatibility.
- UTF-16 surrogate support and some endianness issues have been fixed.
- The rather chaotic Makefiles to build metadata have been refactored
and cleaned up, now it is easy to read and it is also easier to add
support for new encodings.
- A bunch of new encodings and encoding aliases have been added.
- Support for 1->2, 1->3 and 1->4 mappings, which is needed for
transliterating with flying accents as GNU does, like "u.
- Lots of warnings have been fixed, the major part of the code is
now WARNS=6 clean.
- New section 1 and section 5 manual pages have been added.
- Some GNU-specific calls have been implemented:
iconvlist(), iconvctl(), iconv_canonicalize(), iconv_open_into()
- Support for GNU's //IGNORE suffix has been added.
- The "-" argument for stdin is now recognized in iconv(1) as per POSIX.
- The Big5 conversion module has been fixed.
- The iconv.h header files is supposed to be compatible with the
GNU version, i.e. sources should build with base iconv.h and
GNU libiconv. It also includes a macro magic to deal with the
char ** and const char ** incompatibility.
- GNU compatibility: "" or "char" means the current local
encoding in use
- Various cleanups and style(9) fixes.

Approved by: delphij (mentor)
Obtained from: The NetBSD Project
Sponsored by: Google Summer of Code 2009


218942 22-Feb-2011 uqs

The default for FDT has changed, rename the flag/options file.


218941 22-Feb-2011 uqs

Flesh out WITHOUT_GROFF support to DTRT.

A full featured groff is required during buildworld, so build it always
and don't rely on it being present on the host system.

vgrind(1) is tightly coupled to a roff processor and will not be
built/installed when groff is disabled. Also much of the roff'ed
documentation under share/doc will not be built/installed when
WITHOUT_GROFF is defined.

Reviewed by: ru (partial)


218940 22-Feb-2011 uqs

Teach tools/install.sh the -d directory mode.

Sync up with flags understood by install(1) [1], and make install(1)'s
usage output not hide the clearly documented -M flag.

PR: misc/154739 [1]
Submitted by: arundel


218938 22-Feb-2011 miwi

- Fix QA issues

PR: misc/146687
Submitted by: Garrett Cooper <gcooper@FreeBSD.org>
Approved by: rwatson (mentor)


218891 20-Feb-2011 jilles

sh: Add some tests for omitting whitespace whereever possible.


218889 20-Feb-2011 jilles

sh: Split off some special behaviour into separate tests.

This allows some other shells to pass the tests for basic behaviour.


218851 19-Feb-2011 jilles

sh: Do not use "local" in the test runner as POSIX and ksh93 do not have it.


218850 19-Feb-2011 jilles

sh: Make execution/fork1.0 work even if the basename of ${SH} is not "sh".


218821 18-Feb-2011 jilles

sh: Test that the read builtin passes through all byte values
except NUL, newline and backslash.

This also passes on stable/8.


218819 18-Feb-2011 jilles

sh: Unset some more locale vars in two tests that may cause them to break.


218816 18-Feb-2011 delphij

Add a helper script that detects which partition we are on and update the
other.

MFC after: 1 month
Obtained from: FreeNAS
Sponsored by: iXsystems, Inc.


218766 17-Feb-2011 phk

Improve the check for ports which have gone missing, and just ignore
them. We want a run to perform as much work as possible before it
gives up.


218637 13-Feb-2011 adrian

* add in new EEPROM fields from later revisions
* add in printing futureBase


218626 12-Feb-2011 jilles

sh: Detect dividing the smallest integer by -1.

This overflows and on some architectures such as amd64 it generates SIGFPE.
Generate an error on all architectures.


218528 10-Feb-2011 imp

Add 'generic' flash images. This is for projects producing generic
images that are of a certain size. The geometery is bogus, but that
doesn't matter since the new packet mode onviates the need to get the
geometry right.


218469 08-Feb-2011 jilles

sh: Add tests for new features in arithmetic.


218356 05-Feb-2011 jilles

sh: Weaken some tests to allow /rescue/sh to pass everything.

/rescue/sh has a different _PATH_STDPATH which affects command -p.


218325 05-Feb-2011 jilles

sh: Fix two things about {(...)} <redir:

* In {(...) <redir1;} <redir2, do not drop redir1.
* Maintain the difference between (...) <redir and {(...)} <redir:
In (...) <redir, the redirection is performed in the child, while in
{(...)} <redir it should be performed in the parent (like {(...); :;}
<redir)


218323 05-Feb-2011 jilles

sh: Forget all cached command locations on any PATH change.

POSIX requires this and it is simpler than the previous code that remembered
command locations when appending directories to PATH.

In particular,
PATH=$PATH
is no longer a no-op but discards all cached command locations.


218320 05-Feb-2011 jilles

sh: Do not try to execute binary files as scripts.

If execve() returns an [ENOEXEC] error, check if the file is binary before
trying to execute it using sh. A file is considered binary if at least one
of the first 256 bytes is '\0'.

In particular, trying to execute ELF binaries for the wrong architecture now
fails with an "Exec format error" message instead of syntax errors and
potentially strange results.


218205 02-Feb-2011 jilles

sh: Add test for shell script without '#!'.


218105 30-Jan-2011 jilles

sh: Send messages about signals to stderr.

This is required by POSIX and seems to make more sense.

See also r217557.


218057 29-Jan-2011 adrian

Keep this in sync with the ar5212 power rate table size.
This doesn't yet know about the 802.11n radios or rates.


217996 27-Jan-2011 jilles

sh: Add test for EXIT trap in command substitution.

This is not really realistic but is an opposition to $(trap).


217810 25-Jan-2011 adrian

Fix this tool to use the updated (corrected) v4k eeprom definition introduced in a previous commit.


217770 24-Jan-2011 adrian

Add a simple tool to print the contents of a v4k EEPROM dump.


217739 22-Jan-2011 adrian

Add a new tool which takes a text hexdump of the current EEPROM contents.


217738 22-Jan-2011 adrian

Patch the athstats code/Makefile to cross-compile correctly.


217682 21-Jan-2011 adrian

Add in a new tool which prints a formatted v14 eeprom from an eeprom
hexdump.

This is a part replacement of the old athprom code, which tries
to both fetch and print the contents of an eeprom dump.

A tool to generate hexdumps from a running system will follow shortly.


217681 21-Jan-2011 adrian

Remove an un-needed trailing / after OBJDIR.

Nitpicked by: juli


217680 21-Jan-2011 adrian

Make the existing ath tools build again.

* add missing includes to quieten warnings
* fix an inline function decl to have a return type
* since .h files are created during the build (opt_ah.h, ah_osdep.h)
which modify the behaviour of the HAL include/source files,
include OBJDIR in the path so the #include's work.

The tools should now build when the directory is added to LOCAL_DIRS
during a make buildworld.


217559 18-Jan-2011 phk

Make sure the PKGDIR exists before we move stuff into it.


217557 18-Jan-2011 jilles

sh: Fix signal messages being sent to the wrong file sometimes.

When a foreground job exits on a signal, a message is printed to stdout
about this. The buffer was not flushed after this which could result in the
message being written to the wrong file if the next command was a builtin
and had stdout redirected.

Example:
sh -c 'kill -9 $$'; : > foo; echo FOO:; cat foo

Reported by: gcooper
MFC after: 1 week


217472 16-Jan-2011 jilles

sh: If exit is used without args from a trap action, exit on the signal.

This is useful so that it is easier to exit on a signal than to reset the
trap to default and resend the signal. It matches ksh93. POSIX says that
'exit' without args from a trap action uses the exit status from the last
command before the trap, which is different from 'exit $?' and matches this
if the previous command is assumed to have exited on the signal.

If the signal is SIGSTOP, SIGTSTP, SIGTTIN or SIGTTOU, or if the default
action for the signal is to ignore it, a normal _exit(2) is done with exit
status 128+signal_number.


217461 15-Jan-2011 jilles

sh: Fix some things about -- in trap:
* Make 'trap --' do the same as 'trap' instead of nothing.
* Make '--' stop option processing (note that '-' action is not an option).

Side effect: The error message for an unknown option is different.


217208 09-Jan-2011 keramida

regression/date: unset all LC_xxx vars and set LANG/LC_ALL

When running with a custom locale setup, it's easy to confuse the
date regression tests and cause them to fail, e.g. when LANG='C'
but LC_ALL='el_GR.UTF-8'. Set LC_ALL to 'C', which overrides all
other LC_xxx options, to avoid this sort of problem.

Reviewed by: uqs, edwin


217206 09-Jan-2011 jilles

sh: Remove special %builtin PATH entry.
All builtins are now always found before a PATH search.

Most ash derivatives have an undocumented feature where the presence of an
entry "%builtin" in $PATH will cause builtins to be checked at that point of
the PATH search, rather than before looking at any directories as documented
in the man page (very old versions do document this feature).

I am removing this feature from sh, as it complicates the code, may violate
expectations (for example, /usr/bin/alias is very close to a forkbomb with
PATH=/usr/bin:%builtin, only /usr/bin/builtin not being another link saves
it) and appears to be unused (all the %builtin google code search finds is
in some sort of ash source code).

Note that aliases and functions took and take precedence above builtins.
Because aliases work on a lexical level they can only ever be overridden on
a lexical level (quoting or preceding 'builtin' or 'command'). Allowing
override of functions via PATH does not really fit in the model of sh and it
would work differently from %builtin if implemented.

Note: POSIX says special builtins are found before functions. We comply to
this because we do not allow functions with the same name as a special
builtin.

Silence from: freebsd-hackers@ (message sent 20101225)
Discussed with: dougb


217175 08-Jan-2011 jilles

sh: Make exit without parameters from EXIT trap POSIX-compliant.

It should use the original exit status, just like falling off the
end of the trap handler.

Outside an EXIT trap, 'exit' is still equivalent to 'exit $?'.


217172 08-Jan-2011 jilles

sh: Add simple test for 'exit' without parameters.


217134 08-Jan-2011 jilles

sed: Add test for r217133 (-i race).

PR: bin/153261
MFC after: 2 weeks


217064 06-Jan-2011 keramida

tests: sort & fix includes, remove -include from CFLAGS of acct tests

- Sort the includes of pack.c, moving sys/*.h files near the top.
- Add a couple of missing #include lines, and remove the need for
custom -include options in the CFLAGS of the test Makefile.
- Remove the ad-hoc 'all' target, but keep its 'regress' bits for
testing.
- Convert the ad-hoc 'clean' target to proper CLEANFILES stuff,
so that the normal bsd.prog.mk machinery can clean up.
- Use `make -V .OBJDIR' to detect the place where 'pack' lives,
so that regress.t works both with and without 'make obj'.

Reviewed by: uqs
MFC after: 1 week


217035 05-Jan-2011 jilles

sh: Do not call exitshell() from evalcommand() unless evalcommand() forked
itself.

This ensures that certain traps caused by builtins are executed.


216930 03-Jan-2011 imp

Update gateworks exclusion list to match latest tree.


216929 03-Jan-2011 imp

Bump the media size from approx 600MB to approx 750MB. The great
hob-nailed tennis shoe of progress demands it!

Submitted by: phk


216928 03-Jan-2011 imp

Put in the other half of the SRCCONF patch.

Submitted by: phk


216871 01-Jan-2011 jilles

sh: Test that exit $? replaces the original exit status in an EXIT trap.


216870 01-Jan-2011 jilles

sh: Check readonly status for assignments on regular builtins.

An error message is written, the builtin is not executed, nonzero exit
status is returned but the shell does not abort.

This was already checked for special builtins and external commands, with
the same consequences except that the shell aborts for special builtins.

Obtained from: NetBSD


216851 31-Dec-2010 jilles

sh: Check if dup2 for redirection from/to a file succeeds.

A failure (e.g. caused by ulimit -n being set very low) is a redirection
error.

Example:
ulimit -n 9; exec 9<.


216826 30-Dec-2010 jilles

sh: Avoid side effects from builtins in optimized command substitution.

Change the criterion for builtins to be safe to execute in the same process
in optimized command substitution from a blacklist of only cd, . and eval to
a whitelist.

This avoids clobbering the main shell environment such as by $(exit 4) and
$(set -x).

The builtins jobid, jobs, times and trap can still show information not
available in a child process; this is deliberately permitted. (Changing
traps is not.)

For some builtins, whether they are safe depends on the arguments passed to
them. Some of these are always considered unsafe to keep things simple; this
only harms efficiency a little in the rare case they are used alone in a
command substitution.


216819 30-Dec-2010 jilles

sh: Add two tests for special cases in command substitution that already
work in stable/8.


216778 28-Dec-2010 jilles

sh: Don't do optimized command substitution if expansions have side effects.

Before considering to execute a command substitution in the same process,
check if any of the expansions may have a side effect; if so, execute it in
a new process just like happens if it is not a single simple command.

Although the check happens at run time, it is a static check that does not
depend on current state. It is triggered by:
- expanding $! (which may cause the job to be remembered)
- ${var=value} default value assignment
- assignment operators in arithmetic
- parameter substitutions in arithmetic except ${#param}, $$, $# and $?
- command substitutions in arithmetic

This means that $((v+1)) does not prevent optimized command substitution,
whereas $(($v+1)) does, because $v might expand to something containing
assignment operators.

Scripts should not depend on these exact details for correctness. It is also
imaginable to have the shell fork if and when a side effect is encountered
or to create a new temporary namespace for variables.

Due to the $! change, the construct $(jobs $!) no longer works. The value of
$! should be stored in a variable outside command substitution first.


216763 28-Dec-2010 jilles

sh: Add test for optimized command substitution.

This test verifies that certain expansions without side effects do not
cause the command substitution to be executed in a child process.

This is not a correctness requirement, but it involves a nontrivial amount
of code and it would be unfortunate if it stopped working.


216761 28-Dec-2010 jilles

sh: Make expansion errors in optimized command substitution non-fatal.
Command substitutions consisting of a single simple command are executed in
the main shell process but this should be invisible apart from performance
and very few exceptions such as $(trap).


216747 28-Dec-2010 jilles

sh: Add a testcase for cmdsubst errors that already works properly.
If a command substitution consists of one special builtin and there is a
redirection error, this should not abort the outer shell.
It was fixed in r201366 by ignoring special builtin properties for command
substitutions consisting of one builtin.


216738 27-Dec-2010 emaste

Restore two commented-out tests from plus-minus1.0 to a new file.

These two cases pass on -CURRENT but fail on stable/8.

Reviewed by: jilles


216726 26-Dec-2010 emaste

Remove commented-out test that's covered in plus-minus2.0 anyway.

Discussed with: jilles


216606 20-Dec-2010 jilles

sh: Make warnings in the printf builtin non-fatal, like in the program.

The #define for warnx now behaves much like the libc function (except that
it uses sh command name and output).

Also, it now uses C99 __VA_ARGS__ so there is no need for three different
macros for 0, 1 or 2 parameters.


216547 18-Dec-2010 jilles

sh: arith: Disallow decimal constants starting with 0 (containing 8 or 9).

Constants in arithmetic starting with 0 should be octal only.

This avoids the following highly puzzling result:
$ echo $((018-017))
3
by making it an error instead.


216496 16-Dec-2010 jilles

sh: Fix corruption of command substitutions with special chars after newline

The CTLESC byte to protect a special character was output before instead of
after a newline directly preceding the special character.

The special handling of newlines is because command substitutions discard
all trailing newlines.


216414 13-Dec-2010 trasz

Recognize NFSv4 ACL semantics and run proper regression test.


216398 12-Dec-2010 jilles

sh: Fix some tests that used sh instead of ${SH}
so they tested the wrong sh.

This was caused because these tests were committed after the sh -> ${SH}
change but were created before.


216395 12-Dec-2010 jilles

sh: Add a test for r216387 (long arithmetic expression in here document).


216393 12-Dec-2010 trasz

Add regression test for new NFSv4 ACL semantics, verified with ZFSv28.
Note that to run it, you need not only ZFSv28, but also a modified setfacl(1),
which is not in the tree yet.


216379 11-Dec-2010 pjd

Allow to specify path to a file we want to test with sendfile(2).
This allows to specify selected file system and not only /tmp/.


216311 08-Dec-2010 jilles

printf: Test that the "--" option terminator works.


216223 06-Dec-2010 das

Work around gcc constant folding bugs.


216222 06-Dec-2010 das

signbit() returns nonzero for negative arguments, but we shouldn't assume
that it always returns the same nonzero value.


216221 05-Dec-2010 das

Fix some warnings.


216214 05-Dec-2010 das

Add regression tests for logarithmic functions in the math library.


216179 04-Dec-2010 uqs

Document two more ways to find duplicates in the obsolete file list.

Remove the only duplicate found by the optional files check. Fix typos,
while here.

Suggested by: netchild


216151 03-Dec-2010 kib

Extend the unix gc regression test to cover the case of r216150.

Requested and reviewed by: rwatson
MFC after: 1 week


216145 03-Dec-2010 imp

o Mount the device async when we're doing the copy.
o Create a sparse file instead of a fully zerod one. This trades the
possibiltiy of running out of space during the build for the speed
gain not having do write all those zeros...

Submitted by: n_hibma


216144 03-Dec-2010 imp

_WITHOUT_SRCCONF has too much baggage. Instead, use the simpler
SRCCONF=/dev/null.


216139 03-Dec-2010 das

Add some basic regression tests for nearbyint().


216019 28-Nov-2010 jilles

sh: Make the test for cd/pwd with long pathnames more useful:
* Use $(getconf PATH_MAX /) to make sure we actually exercise the hard part
* Delete our test area even if the test fails


215770 23-Nov-2010 phk

Don't checksum distfiles twice if they match the first time.


215767 23-Nov-2010 phk

Optimize the ports recurser a bit more.


215765 23-Nov-2010 phk

Improve the ports-dependency resolver by truncating the recursion if
we already did the target port, and by leaving behind a /tmp/_.plist.dot
which documents which ports pulled in what other ports.


215550 19-Nov-2010 jilles

sh: Add a test that manipulates various long strings.

It is quite effective at detecting mistakes in memalloc.c and code using it.

It is somewhat slow, but some of the patches in my queue improve it.


215547 19-Nov-2010 jilles

sh: Add another simple test for the wait builtin.


215409 16-Nov-2010 gnn

Fix an error in our results printing.


215323 14-Nov-2010 gonzo

Add optional files controlled by WITH_GPIO knob

Submitted by: Alexander Best <arundel@freebsd.org>


215312 14-Nov-2010 brucec

lib32 is installed on powerpc64 too.


215306 14-Nov-2010 brucec

libatm_p.a, libkeycap_p.a and libmytinfo_p.a are already in ObsoleteFiles.inc.
liblwres.so.10 has been replaced by liblwres.so.50.

Reported by: arundel


215207 12-Nov-2010 gnn

Add a queue to hold packets while we await an ARP reply.

When a fast machine first brings up some non TCP networking program
it is quite possible that we will drop packets due to the fact that
only one packet can be held per ARP entry. This leads to packets
being missed when a program starts or restarts if the ARP data is
not currently in the ARP cache.

This code adds a new sysctl, net.link.ether.inet.maxhold, which defines
a system wide maximum number of packets to be held in each ARP entry.
Up to maxhold packets are queued until an ARP reply is received or
the ARP times out. The default setting is the old value of 1
which has been part of the BSD networking code since time
immemorial.

Expose the time we hold an incomplete ARP entry by adding
the sysctl net.link.ether.inet.wait, which defaults to 20
seconds, the value used when the new ARP code was added..

Reviewed by: bz, rpaulo
MFC after: 3 weeks


215081 10-Nov-2010 imp

Insulate the nanobsd build from the current system by opting out of
the SRCCONF processing.

Noted by: gcopper@


215070 10-Nov-2010 imp

Build make.conf when the world is not selected to build, but the
kernel is.

PR: 151696
Submitted by: lev@


215069 10-Nov-2010 imp

Document NANO_CFGDIR and NANO_DATADIR

Submitted by: n_hibma@


215045 09-Nov-2010 delphij

Hide 460.chkportsum in MK_PKGTOOLS != no case.

Submitted by: Alex Kozlov <spam rm-rf kiev ua>
MFC after: 2 weeks


215022 08-Nov-2010 jilles

test: Move tests to tools/regression/bin/test.
Convert the tests to the perl prove format.
Remove obsolete TEST.README (results of an old TEST.sh for some old Unices)
and TEST.csh (old tests without correct values, far less complete than
TEST.sh).

MFC after: 1 week


214955 07-Nov-2010 n_hibma

- Set -x flag when executing customisation scripts to aid in debugging them.
- Use KERNCONFDIR with KERNCONF instead of copying the kernel config into the source tree
so included kernel configs work.
- Put more stuff in the _.bk/_.ik log file, not just make statements.
- Add the kernel config name to the pprint during kernel installation.
- Add NANO_MODULES providing a list of modules to build and install.

Reviewed by: imp
MFC after: 2 weeks


214923 07-Nov-2010 trasz

Remove useless comment.


214853 05-Nov-2010 jilles

sh: Add simple tests for printf.

These are not meant as a replacement for tools/regression/usr.bin/printf/*
but to detect errors specific to making it a shell builtin.


214709 02-Nov-2010 jilles

sh: Fix some issues with aliases and case, by importing dash checkkwd code.

This moves the function of the noaliases variable into the checkkwd
variable. This way it is properly reset on errors and aliases can be used
normally in the commands for each case (the case labels recognize the
keyword esac but no aliases).

The new code is clearer as well.

Obtained from: dash


214531 29-Oct-2010 jilles

sh: Detect various additional errors in the parser.

Apart from detecting breakage earlier or at all, this also fixes a segfault
in the testsuite. The "handling" of the breakage left an invalid internal
representation in some cases.

Examples:
echo a; do echo b
echo `) echo a`
echo `date; do do do`

Exp-run done by: pav (with some other sh(1) changes)


214524 29-Oct-2010 jilles

sh: Fix some issues with CTL* bytes and ${var#pat}.

subevalvar() incorrectly assumed that CTLESC bytes were present iff the
expansion was quoted. However, they are present iff various processing such
as word splitting is to be done later on.

Example:
v=@$e@$e@$e@
y="${v##*"$e"}"
echo "$y"
failed if $e contained the magic CTLESC byte.

Exp-run done by: pav (with some other sh(1) changes)


214512 29-Oct-2010 jilles

sh: Do IFS splitting on word in ${v+word} and ${v-word}.

The code is inspired by NetBSD sh somewhat, but different because we
preserve the old Almquist/Bourne/Korn ability to have an unquoted part in a
quoted ${v+word}. For example, "${v-"*"}" expands to $v as a single field if
v is set, but generates filenames otherwise.

Note that this is the only place where we split text literally from the
script (the similar ${v=word} assigns to v and then expands $v). The parser
must now add additional markers to allow the expansion code to know whether
arbitrary characters in substitutions are quoted.

Example:
for i in ${$+a b c}; do echo $i; done

Exp-run done by: pav (with some other sh(1) changes)


214492 28-Oct-2010 jilles

sh: Only accept a '}' inside ${v+-=?...} if double-quote state matches.
If double-quote state does not match, treat the '}' literally.

This ensures double-quote state remains the same before and after a
${v+-=?...} which helps with expand.c.

It makes things like
${foo+"\${bar}"}
which I have seen in the wild work as expected.

Exp-run done by: pav (with some other sh(1) changes)


214490 28-Oct-2010 jilles

sh: Make double-quotes quote a '}' inside ${v#...} and ${v%...}.

Exp-run done by: pav (with some other sh(1) changes)
PR: bin/57554


214304 24-Oct-2010 jilles

sh: Do not allow overriding a special builtin with a function.
This is a syntax error.

POSIX does not say explicitly whether defining a function with the same name
as a special builtin is allowed, but it does say that it is impossible to
call such a function.

A special builtin can still be overridden with an alias.

This commit is part of a set of changes that will ensure that when
something looks like a special builtin to the parser, it is one. (Not the
other way around, as it remains possible to call a special builtin named
by a variable or other substitution.)

Exp-run done by: pav (with some other sh(1) changes)


214291 24-Oct-2010 jilles

sh: Make sure defined functions can actually be called.

Add some conservative checks on function names:
- Disallow expansions or quoting characters; these can only be called via
strange control characters
- Disallow '/'; these functions cannot be called anyway, as exec.c assumes
they are pathnames
- Make the CTL* bytes work properly in function names.

These are syntax errors.

POSIX does not require us to support more than names (letters, digits and
underscores, not starting with a digit), but I do not want to restrict it
that much at this time.

Exp-run done by: pav (with some other sh(1) changes)


214290 24-Oct-2010 jilles

sh: Check whether dup2 was successful for >&FD and <&FD.

A failure (usually caused by FD not being open) is a redirection error.

Exp-run done by: pav (with some other sh(1) changes)


214289 24-Oct-2010 jilles

sh: Add a test trying to close a descriptor that is not open.

In stable/8 and older, this fails. Some of the redirection changes in head
have fixed it.


214281 24-Oct-2010 jilles

sh: Change ! within a pipeline to start a new pipeline instead.

This is how ksh93 treats ! within a pipeline and makes the ! in
a | ! b | c
negate the exit status of the pipeline, as if it were
a | { ! b | c; }

Side effect: something like
f() ! a
is now a syntax error, because a function definition takes a command,
not a pipeline.

Exp-run done by: pav (with some other sh(1) changes)


214280 24-Oct-2010 jilles

sh: Add some testcases for alias expansion.


214261 24-Oct-2010 rwatson

Add microbenchmark for create/unlink of a zero-byte file.

Sponsored by: Google, Inc.
MFC after: 2 weeks


214202 22-Oct-2010 rwatson

Validate syscall_timing test names before starting to provide earlier
feedback regarding user error.

Provide default loop and timing settings.

Add a new test that just times pread() without the open()/close().

Mark tests requiring a path argument so we can provide better feedback
to the user than EFAULT on (null).

Sponsored by: Google, Inc.
MFC after: 2 weeks


214185 21-Oct-2010 rwatson

Universally use uintmax_t in syscall_timing; rearrange arithmetic to
suffer fewer rounding errors with smaller numbers; fix argc validation
so multiple tests run on a single command line.

Sponsored by: Google, Inc.
MFC after: 2 weeks


214154 21-Oct-2010 rwatson

Add Cambridge/Google tag since the copyright has been updated.

MFC after: 2 weeks


214151 21-Oct-2010 rwatson

Further syscall_timing improvements: allow an arbitrary "path" string
argument to be passed on the command line, allowing file-related tests
to be pointed at wherever desired.

Sponsored by: Google, Inc.
MFC after: 2 weeks


214145 21-Oct-2010 rwatson

Fix bug in recent syscall_timing change: measure the number of iterations
each loop, rather than once up front. The distinction is unimportant
when doing a fix iteration count, but when using a timer, it should vary.

Sponsored by: Google, Inc.
MFC after: 2 weeks


214142 21-Oct-2010 rwatson

Further enhancements to syscall_timing:

- Use getopt rather than hand-parsed arguments
- Allow iterations to be specified and/or a new number of seconds bound
on the number of iterations
- Fix printout of timer resolution
- Add new tests, such as TCP and UDP socket creation, and open/read/close
of /dev/zero and /dev/null.

Sponsored by: Google, Inc.
MFC after: 2 weeks


214135 21-Oct-2010 rwatson

Improve the structure and implementation of the syscall_timing
microbenchmark suite:

- Use common benchmark_start/benchmark_stop routines to simplify
individual benchmarks.
- Add a central table of tests with names, where new tests can be
hooked in easily.
- Add new benchmarks for dup, shm_open, shm_open + fstat, fork,
vfork, vfork + exec, chroot, setuid.
- Accept a number of loops, not just a number of iterations.
- Report results more usefully in a table.

Sponsored by: Google, Inc.
MFC after: 2 weeks


213903 15-Oct-2010 jilles

sh: Allow running 'prove' from tools/regression/bin/sh again
without needing to set special environment variables, testing the 'sh' from
PATH.


213883 14-Oct-2010 obrien

Embellish this testcase a little bit to be more clear what the output is
and why. The first case is correct usage which has but one correct output.
The 2nd and 3rd cases are incorrect usage in which the exact output is
not standardized and various shells give various allowable output.


213814 13-Oct-2010 obrien

Do not assume in growstackstr() that a "precious" character will be
immediately written into the stack after the call. Instead let the caller
manage the "space left".

Previously, growstackstr()'s assumption causes problems with STACKSTRNUL()
where we want to be able to turn a stack into a C string, and later
pretend the NUL is not there.

This fixes a bug in STACKSTRNUL() (that grew the stack) where:
1. STADJUST() called after a STACKSTRNUL() results in an improper adjust.
This can be seen in ${var%pattern} and ${var%%pattern} evaluation.
2. Memory leak in STPUTC() called after a STACKSTRNUL().

Reviewed by: jilles


213738 12-Oct-2010 obrien

Allow one to regression test 'sh' changes without having to install
a potentially bad /bin/sh first.


213713 11-Oct-2010 obrien

Correct regression test to not show a false positive when run as root.


213585 08-Oct-2010 markm

Don't blow away /bin/rmail symlink if we are keeping mailwrapper.
Mailwrapper can provide a perfectly good rmail with other
mailers.


213574 08-Oct-2010 pluknet

Clean up tools in tools/tools/netrate.

- tcpconnect incorrectly uses err() in usage() with errx() semantics [1]
That produces dirty error message:
tcpconnect: usage: tcpconnect [ip]: Unknown error: 0
- 64-bit aware fixes in printf() usage [2]
o netrate/juggle: time_t has arch-dependent size
o netrate/tcpconnect: don't assume %ll has always 64bit.

PR: 146088 [1], 146086 [2] (modified)
Approved by: kib (mentor)
MFC after: 1 week


213472 06-Oct-2010 netchild

Add some missing files to optionally delete.

Submitted by: Paul B Mahol <onemda@gmail.com>


213463 05-Oct-2010 gonzo

- Add WITH_GPIO entry to src.conf(5) man page


213327 01-Oct-2010 gnn

Change the output of mctest to give a summary of the results instead
of printing a long list.

Add a default base port, and default mulitcast address to the
runner script.

Add support for specifying a different local and remote interface
in the runner script.

MFC after: 1 week


213324 01-Oct-2010 mr

- simplify by using one build script
- use label for mounting
- use GENERIC kernel
- create empty Pkg directory


213284 29-Sep-2010 jilles

tr: Fix '[=]=]' equivalence class.

A closing bracket immediately after '[=' should not be treated as special.

Different from the submitted patch, a string ending with '[=' does not cause
access beyond the terminating '\0'.

PR: bin/150384
Submitted by: Richard Lowe
MFC after: 2 weeks


213231 27-Sep-2010 pjd

Correct message.

Pointed out by: jhb
MFC after: 2 weeks


213173 25-Sep-2010 pjd

Add some regression tests for newly added -J and -j options.

MFC after: 2 weeks


213171 25-Sep-2010 pjd

Don't hardcode md0 in message, use $md instead.

Reported by: Ronald Klop <ronald-freebsd8@klop.yi.org>


213170 25-Sep-2010 trasz

Don't leave zombies behind.


213169 25-Sep-2010 trasz

Add a shell script to generate a test script for trivial ACLs.


213168 25-Sep-2010 pjd

Update regression tests after AES-XTS addition.

MFC after: 2 weeks


213167 25-Sep-2010 pjd

- Use $md instead of md0, which fixes tests when md(4) device is already
present.
- Correct message - we create GPT, not MBR.

MFC after: 2 weeks


213155 25-Sep-2010 davidxu

Add test cases for stack unwinding.


212990 22-Sep-2010 imp

Make the labels match the device name that's mounted, not just the
slice they are on. When NANO_LABEL is not defined, the fstab
generates entries that specify /dev/ad0s1a. When NANO_LABEL is
defined, it generates /dev/usb/${NANO_LABEL}s1a. The prior code
created the file system with a label of ${NANO_LABEL}s1, leading to
problems on boot.

Pointy hat to: imp@


212949 21-Sep-2010 avg

tools/umastat: more cleanups

PR: misc/146119
Submitted by: pluknet <pluknet@gmail.com>
MFC after: 1 week


212938 20-Sep-2010 imp

Support new variable NANO_LABEL. When set to a non-null string,
nanobsd will build a system that uses this label (via
/dev/ufs/${NANO_LABEL}sX) in preference to NANO_DRIVE (well, it forces
NANO_DRIVE to be ufs/${NANO_LABEL}). This allows images that will
boot off usb stick or CF card easily well.

There is no change if you don't set this variable.


212934 20-Sep-2010 brian

Add a geli resize subcommand to resize encrypted filesystems prior
to growing the filesystem.

Refuse to attach providers where the metadata provider size is
wrong. This makes post-boot attaches behave consistently with
pre-boot attaches. Also refuse to restore metadata to a provider
of the wrong size without the new -f switch. The new -f switch
forces the metadata restoration despite the provider size, and
updates the provider size in the restored metadata to the correct
value.

Helped by: pjd
Reviewed by: pjd


212932 20-Sep-2010 avg

tools/umastat: fix build on amd64

And perhaps other 64-bit platforms.

Submitted by: Fabian Keil <freebsd-listen@fabiankeil.de>
MFC after: 1 week


212839 19-Sep-2010 brian

Revise r197763 which fixes filesystem corruption when extending
into un-zeroed storage.

The original patch was questioned by Kirk as it forces the filesystem
to do excessive work initialising inodes on first use, and was never
MFC'd. This change mimics the newfs(8) approach of zeroing two
blocks of inodes for each new cylinder group.

Reviewed by: mckusick
MFC after: 3 weeks


212475 11-Sep-2010 jilles

sh: Fix exit status if return is used within a loop condition.


212467 11-Sep-2010 jilles

sh: Apply variable assignments left-to-right in bltinlookup().

Example:
HOME=foo HOME=bar cd


212339 08-Sep-2010 jilles

sh: Fix 'read' if all chars before the first IFS char are backslash-escaped.

Backslash-escaped characters did not set the flag for a non-IFS character.

MFC after: 2 weeks


212330 08-Sep-2010 jilles

sh: Add simple tests for backslashes in the read builtin.


212187 03-Sep-2010 jilles

sh: Add a test that 'read' leaves the file pointer at the correct place.

Naive buffering would break the common while read x... construct, which did
not appear to be tested yet.


212173 03-Sep-2010 phk

We need to copy the ports config files before we launch the prefetch


212169 03-Sep-2010 imp

Allow / in the NANO_DEVICE

PR: 149729
Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org>


211973 29-Aug-2010 jilles

sh: Weaken builtins/command4 test to only require a nonzero exit status.

This matches what is in POSIX; various other shells use different exit
statuses.

Note that it is still required that there be no output.


211964 29-Aug-2010 brian

Add a Makefile for tools/regression/bin and support 'all' in
pax/Makefile.

MFC after: 3 weeks


211963 29-Aug-2010 brian

Correct an out-by-one error when earlying out ustar filenames that
are too long. Filenames escaping this test are caught later on,
so the bug doesn't cause any breakage.

Document the correct ustar limitations in pax. As I have no access
to the IEEE 1003.2 spec, I can only assume that the limitations
imposed are in fact correct.

Add regression tests for the filename limitations imposed by pax.

MFC after: 3 weeks


211940 28-Aug-2010 kib

Test the poll(2) return value.

MFC after: 2 weeks


211701 23-Aug-2010 gabor

- Change default grep back to GNU version. BSD grep can be built with the
WITH_BSD_GREP knob.
- Bump __FreeBSD_version

Requested by: dougb
Approved by: delphij (mentor)


211646 22-Aug-2010 jilles

sh: Remove remnants of '!!' to negate pattern.

This Almquist extension was disabled long ago.

In pathname generation, components starting with '!!' were treated as
containing wildcards, causing unnecessary readdir (which could fail, causing
pathname generation to fail while it should not).


211622 22-Aug-2010 jilles

sh: Test that all bytes from 128 to 255 can be used in IFS.

To avoid multibyte issues, this test forces ISO8859-1 charset.

This also passes on stable/8.


211612 22-Aug-2010 jilles

Fix keyword expansion properties.


211609 22-Aug-2010 jilles

sh: Add a test for breaking from a loop outside the current function.

It is unwise to rely on this but I'd like to know if this would break.


211567 21-Aug-2010 rpaulo

Update for the new tests.

Sponsored by: The FreeBSD Foundation


211474 18-Aug-2010 pjd

More tests.


211467 18-Aug-2010 jilles

sh: Add a test for break from a trap action.


211418 17-Aug-2010 kib

Add simple test to check the functioning of retrieval of
pagesize()/pagesizes() after change to use aux vector. Note that
public function getosreldate() is different from libc-internal
__getosreldate() and does not use aux to fetch osreldate value.

MFC after: 1 month


211410 17-Aug-2010 pjd

More tests, especially for lchown(2).


211408 16-Aug-2010 jilles

sh: Reduce unnecessary testsuite failures with other shells.


211405 16-Aug-2010 jilles

sh: Split off a more dubious test from parser/heredoc2.0.


211399 16-Aug-2010 jilles

sh: Get rid of unnecessary non-standard empty lists.

POSIX does not allow constructs like:
if cmd; then fi
{ }
Add a colon dummy command, except in a test that verifies that such empty
lists do not cause crashes when used as a function definition.


211354 15-Aug-2010 pjd

Finish renaming fstest to pjdfstest.


211352 15-Aug-2010 pjd

Give fstest a more unique name: pjdfstest.
It is released from time to time and used outside FreeBSD, so it is good to
have a name one can google.


211351 15-Aug-2010 pjd

Update copyright years.


211350 15-Aug-2010 pjd

More tests.


211349 15-Aug-2010 jilles

sh: Fix break/continue/return sometimes not skipping the rest of dot script.

In our implementation and most others, a break or continue in a dot script
can break or continue a loop outside the dot script. This should cause all
further commands in the dot script to be skipped. However, cmdloop() did not
know about this and continued to parse and execute commands from the dot
script.

As described in the man page, a return in a dot script in a function returns
from the function, not only from the dot script. There was a similar issue
as with break and continue. In various other shells, the return appears to
return from the dot script, but POSIX seems not very clear about this.


211341 15-Aug-2010 jilles

sh: Test that all bytes from 1 to 127 can be used in IFS.

This also passes on stable/8.


211336 15-Aug-2010 pjd

More tests (especially for lchmod(2)), less code duplication.


211290 13-Aug-2010 pjd

- Use loops to avoid code duplication.
- More tests.


211242 12-Aug-2010 pjd

More tests.


211235 12-Aug-2010 pjd

Portable Makefile.


211234 12-Aug-2010 pjd

Fix copy&pasted code - we want to create character device here.


211186 11-Aug-2010 pjd

- Use loops where possible to avoid code duplication.
- Don't pass uid and gid to create_file() if not needed.
- More tests.


211185 11-Aug-2010 pjd

Allow to specify uid, gid and mode for create_file().


211183 11-Aug-2010 mjacob

Consistently set us to be SPC3 for our inquiry data.

For mptest, add delays to I/O that simulate real disks better. This
also allows us to simulate what happens when a device goes away
with active transactions. It's pretty spectacular.

Sponsored by: Panasas
MFC after: 1 month


211180 11-Aug-2010 pjd

More and more tests.


211179 11-Aug-2010 pjd

Move create_file() to misc.sh, as it is going to be used in more places.


211178 11-Aug-2010 pjd

Make use of recently added dirgen_max() and namegen_max() to implement
ENAMETOOLONG checks.


211177 11-Aug-2010 pjd

Instead of hardcoding {NAME_MAX} as 255 and {PATH_MAX} as 1024 obtain those from
pathconf(2) and properly generate too long file names.
This should fix ENAMETOOLONG checks on Linux.


211156 10-Aug-2010 pjd

More tests, mostly related to devices and sockets.


211155 10-Aug-2010 jilles

sh: Fix heap-based buffer overflow in pathname generation.

The buffer for generated pathnames could be too small in some cases. It
happened to be always at least PATH_MAX long, so there was never an overflow
if the resulting pathnames would be usable.

This bug may be abused if a script subjects input from an untrusted source
to pathname generation, which a bad idea anyhow. Most shell scripts do not
work on untrusted data. secteam@ says no advisory is necessary.

PR: bin/148733
Reported by: Changming Sun snnn119 at gmail com
MFC after: 10 days


211116 09-Aug-2010 pjd

Linux has no strlcpy().


211110 09-Aug-2010 pjd

Fix bind(2) and connect(2) support on Solaris.


211109 09-Aug-2010 pjd

Fix file system type detection on Solaris.


211108 09-Aug-2010 pjd

Small tweaks.


211107 09-Aug-2010 pjd

No need to use grep to check if path start with /.

Suggested by: ed


211088 09-Aug-2010 mjacob

Add a multipath oriented test.


211080 08-Aug-2010 jilles

sh: Add more testcases for ${var:-word}.

Whether POSIX requires these is unclear.

They pass with 8-stable sh as well.


210984 06-Aug-2010 pjd

Various cleanups, mostly to make the test work on FreeBSD/ZFS.


210973 06-Aug-2010 pjd

${GREP} can only be used after loading 'conf'.


210972 06-Aug-2010 pjd

Don't use egrep directly - use ${GREP}.


210971 06-Aug-2010 pjd

Check first todo() argument against operating system name and operating system
name plus file system name.


210970 06-Aug-2010 pjd

For FreeBSD and Linux use awk's toupper() function.

Suggested by: ed


210969 06-Aug-2010 pjd

Convert file system type to upper case.


210967 06-Aug-2010 pjd

Add tests for mknod(2).

Submitted by: Jan Senolt <senoltj@centrum.cz>
Submitted by: Milan Cermak <Milan.Cermak@Sun.COM>
Polished by: pjd


210965 06-Aug-2010 pjd

Add mknod(2) support.

Submitted by: Jan Senolt <senoltj@centrum.cz>
Submitted by: Milan Cermak <Milan.Cermak@Sun.COM>


210964 06-Aug-2010 pjd

Sort includes.


210956 06-Aug-2010 pjd

open(2) returns EOPNOTSUPP when trying to open a socket.


210955 06-Aug-2010 pjd

Test for EACCES also when opening FIFO or directory.


210954 06-Aug-2010 pjd

Test O_RDONLY|O_RDWR flags as potentially invalid.


210953 06-Aug-2010 pjd

Make description readable.


210952 06-Aug-2010 pjd

Add missing -U argument to usage.


210951 06-Aug-2010 pjd

Implement two new syscalls: bind(2) and connect(2) for operating on UNIX
domain sockets.


210829 03-Aug-2010 jilles

sh: Return 0 from eval if no command was given.

This makes a difference if there is a command substitution.

To make this work, evalstring() has been changed to set exitstatus to 0 if
no command was executed (the string contained only whitespace).

Example:
eval $(false); echo $?
should print 0.


210738 01-Aug-2010 jilles

sh: Add a test for a corner case in eval that already works correctly.


210641 30-Jul-2010 uqs

Fix a couple of typos.

PR: docs/148891
Submitted by: olgeni
MFC after: 1 week


210488 25-Jul-2010 jilles

sh: Fix crash due to uninitialized here-document.

If an ; or & token was followed by an EOF token, pending here-documents were
left uninitialized. Execution would crash, either in the main shell process
for literal here-documents or in a child process for expanded
here-documents. In the latter case the problem is hard to detect apart from
the core dumps and log messages.

Side effect: slightly different retries on inputs where EOF is not
persistent.

Note that tools/regression/bin/sh/parser/heredoc6.0 still causes a similar
crash in a child process. The text passed to eval is malformed and should be
rejected.


210389 22-Jul-2010 gabor

Add BSD grep to the base system and make it our default grep.

Deliverables: Small and clean code (1,4 KSLOC vs GNU's 8,5 KSLOC),
lower memory usage than GNU grep, GNU compatibility,
BSD license.

TODO: Performance is somewhat behind GNU grep but it is only
significant for bigger searches. The reason is complex, the
most important factor is that GNU grep uses lots of
optimizations to improve the speed of the regex library.
First, we need a modern regex library (practically by adopting
TRE), add support for GNU-style non-standard regexes and then
reevalute the performance issues and look for bottlenecks. In
the meantime, for those, who need better performance, it is
possible to build GNU grep by setting WITH_GNU_GREP.

Approved by: delphij (mentor)
Obtained from: OpenBSD (http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/grep/),
freegrep (http://github.com/howardjp/freegrep)
Sponsored by: Google SoC 2008
Portbuild tests run by: kris, pav, erwin
Acknowledgements to: fjoe (as SoC 2008 mentor),
everyone who helped in reviewing and testing


210374 22-Jul-2010 simon

Hook newsyslog regression tests to the Makefile 'build'.

MFC after: 3 weeks


210373 22-Jul-2010 simon

Add regression tests for newsyslog. These are far from a complete
test of newsyslog, as they were mainly made to test 'newsyslog -t',
but they do test the basic functionality.

The test 'framework' was based on dds@'s code in
src/tools/regression/bin/mv/.

Note that currently these tests are not fully correct for the
non-timestamp based rotation case, as it seems like newsyslog actually
by default keeps a file too much around.

MFC after: 3 weeks


210320 21-Jul-2010 ed

Chase LLVM version bump to 2.8.


210221 18-Jul-2010 jilles

sh: Allow a background command consisting solely of redirections.

Example:
</dev/null &

MFC after: 2 weeks


209745 06-Jul-2010 emaste

Use canonical spelling of FreeBSD.org

Submitted by: Garrett Cooper


209733 06-Jul-2010 emaste

Switch to my @freebsd.org email address.


209652 02-Jul-2010 jilles

sh: Remove comment that the comma operator is missing in arithmetic
expansion.

The comma operator is not listed in POSIX.1-2008 XCU 1.1.2.1 Arithmetic
Precision and Operations (referenced by XCU 2.6.4 Arithmetic Expansion) and
is therefore not required.


209429 22-Jun-2010 rwatson

Add TCP scalability testing wrapper scripts for tcpp.

Sponsored by: Juniper Networks
MFC after: 1 week


209428 22-Jun-2010 rwatson

Revised tuning advice for tcpp benchmarking: do it in loader.conf, and
tweak more TCP/stack parameters.

Sponsored by: Juniper Networks
MFC after: 1 week


209331 19-Jun-2010 brian

Remove vestiges of 'slip'.

PR: 145648
Submitted by: alexbestms at wwu dot de and spam at rm-rf dot kiev dot ua
MFC after: 1 week


209253 17-Jun-2010 netchild

Add the ZFS periodic daily scripts to the ZFS part.


209225 16-Jun-2010 imp

Allow boot.config to have different values than just -h.

Submitted by: bsdrp by way of freenas and olivier cochard-labbe
MFC after: 3 days


209210 15-Jun-2010 imp

Allow population of /cfg and /data. Begin the move to making all
slice creation overrideable too, but there's a few problems doing that
for the duplicated partitions (s1 and s2), so just comment that it
needs work.

MFC after: 3 days


209209 15-Jun-2010 imp

Create a make.conf. not needed for runtime, but some ports want to spam it
at compile or install time.

MFC after: 3 days


209207 15-Jun-2010 imp

make these convenience functions more convenient by accepting all
args, not just the first. makes mechanical conversion of old style
more forgiving.

MFC after: 3 days


209171 14-Jun-2010 ed

Add Clang to OptionalObsoleteFiles.inc.

This means you can now deinstall Clang by running make delete-old with
WITHOUT_CLANG set.


208971 10-Jun-2010 ed

Fix typo.

Spotted by: Garrett Cooper


208967 09-Jun-2010 ed

This should be commented out.


208965 09-Jun-2010 rdivacky

Add WITHOUT_CLANG file with a description.

Approved by: ed (mentor)


208926 08-Jun-2010 mjacob

Add the VHBA package. It is here in tools because it's really a testbed.

Sponsored by: Panasas
MFC after: 1 month


208873 06-Jun-2010 rwatson

Rework tcpp output so that it generates a comma-delimited list of values,
optionally with a header if "-h" is passed. Toast CPU time measurement
in the server for now. Remove -C and -T, since we now always report
both connections/sec and Gb/sec.

MFC after: 1 week
Sponsored by: Juniper Networks


208859 05-Jun-2010 rwatson

Although we currently don't compile in CPU-pinning support by default,
add a -P to enable it if it were.

MFC after: 1 week
Sponsored by: Juniper Networks


208802 04-Jun-2010 maxim

o The typo was intended as it stated in the comment. Revert last.

Spotted by: dfr


208798 04-Jun-2010 maxim

o Makefile BSDfication.

PR: misc/147461 (with my changes)
Submitted by: Erik Cederstrand


208797 04-Jun-2010 maxim

o Fix typo: .uudef -> .undef.

PR: misc/147462
Submitted by: Erik Cederstrand


208728 02-Jun-2010 brian

Fix stuttering sequences and reverse ranges

PR: 123635
Submitted by: Ulrich Spörlein, uqs at spoerlein dot net


208656 30-May-2010 jilles

sh: Fix a crash if a heredoc was not properly ended and parsing continued.

Example (in interactive mode):
cat <<EOF && )
The next command typed caused sh to segfault, because the state for the here
document was not reset.

Like parser_temp, this uses the fact that the parser is not re-entered.


208655 30-May-2010 jilles

sh: Change interaction of command substitution and here documents.

If a command substitution contains a newline token, this no longer starts
here documents of outer commands. This way, we follow POSIX's idea of the
command substitution being a separate script more closely. It also matches
other shells better and is consistent with newline characters in quotes not
starting here documents.

The extension tested in parser/heredoc3.0 ($(cat <<EOF)\ntext\nEOF\n)
continues to be supported.

In particular, this change allows things like
cat <<EOF && echo `pwd`
(a `` command substitution after a here document)
which formerly silently used an empty file as the here document, because the
EOF of the inner command "pwd" also forced an empty here document.


208630 28-May-2010 jilles

sh: Recognize "--" in . and exec.

Although "--" historically has not been required to be recognized for
certain special builtins that do not take options in POSIX, some other
implementations recognize options for them, requiring scripts to use "--" or
avoid operands starting with "-".

Operands starting with "-" can be avoided with eval by prepending a space,
and cannot occur with break, continue, exit, return and shift as they only
take numbers, nor with times as it does not take operands. With . and exec,
avoiding "-" is not so easy as it may require reimplementing the PATH
search; therefore the current proposal for POSIX is to require recognition
of "--" for them.

We continue to accept other strings starting with "-" as operands to . and
exec, and also "--" if it is alone to . (which would otherwise be invalid
anyway).


208629 28-May-2010 jilles

sh: Add some simple tests for ., exec and return from . script.


208602 27-May-2010 rwatson

Correct several nits/problems in the unix_close_race regression test.

Submitted by: Mikolaj Golub <to.my.trociny at gmail.com>
MFC after: 3 days


208562 26-May-2010 rwatson

Add unix_close_race, a regresion test to catch ENOTCONN being returned
improperly from one of two instances of close(2) being called
simultaneously on both ends of a connected UNIX domain socket. The test
tool is slightly tweaked to improve failure modes, and while often does
trigger the problem, doesn't do so consistently due to the nature of the
race.

PR: kern/144061
Submitted by: Mikolaj Golub <to.my.trociny@gmail.com>
MFC after: 3 days


208537 25-May-2010 raj

Introduce a new build knob for Flattened Device Tree support.

Reviewed by: imp
Sponsored by: The FreeBSD Foundation


208476 23-May-2010 jilles

sh: Add some simplistic tests for the wait builtin.


208322 20-May-2010 jkim

Add an option file for WITHOUT_MAN_UTILS to regenerate src.conf(5).


208291 19-May-2010 uqs

mdoc: consistently spell our email addresses <foo@FreeBSD.org>

Reviewed by: ru


208027 13-May-2010 uqs

mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the
bottom of the manpages and order them consistently.

GNU groff doesn't care about the ordering, and doesn't even mention
CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put
them.

Found by: mdocml lint run
Reviewed by: ru


207944 11-May-2010 jilles

sh: Fix pathname expansion with quoted slashes like *\/.

These are git commits 36f0fa8fcbc8c7b2b194addd29100fb40e73e4e9 and
d6d06ff5c2ea0fa44becc5ef4340e5f2f15073e4 in dash.

Because this is the first code I'm importing from dash to expand.c, add the
Herbert Xu copyright notice which is in dash's expand.c.

When pathname expanding *\/, the CTLESC representing the quoted state was
erroneously taken as part of the * pathname component. This CTLESC was then
seen by the pattern matching code as escaping the '\0' terminating the
string.

The code is slightly different because dash converts the CTLESC characters
to backslashes and removes all the other CTL* characters to allow
substituting glob(3).

The effect of the bug was also slightly different from dash (where nothing
matched at all). Because a CTLESC can escape a '\0' in some way, whether
files were included despite the bug depended on memory that should not be
read. In particular, on many machines /*\/ expanded to a strict subset of
what /*/ expanded to.

Example:
echo /*"/null"

This should print /dev/null, not /*/null.

PR: bin/146378
Obtained from: dash


207935 11-May-2010 jilles

sh: Add some simple testcases for pathname expansion.


207825 09-May-2010 jilles

Fix error in comment.


207824 09-May-2010 jilles

sh: Add some parser tests.

case1.0 tests POSIX requirements and one more for keywords in case
statements. The others test very special cases of command substitution.

These also work on stable/8.


207821 09-May-2010 jilles

Generate some tests for sh's case command from the fnmatch tests.

I'm committing the generated files because I don't like a build dependency
for the sh(1) tests, and they are small and will not change much.


207820 09-May-2010 jilles

sh: Fix bug in assignment error test.

The test failed if the command returned nonzero exit status, and it really
should return that.


207678 05-May-2010 jilles

sh: Apply locale vars on builtins, recognize LC_MESSAGES as a locale var.

This allows doing things like LC_ALL=C some_builtin to run a builtin under a
different locale, just like is possible with external programs. The
immediate reason is that this allows making printf(1) a builtin without
breaking things like LC_NUMERIC=C printf '%f\n' 1.2

This change also affects special builtins, as even though the assignment is
persistent, the export is only to the builtin (unless the variable was
already exported).

Note: for this to work for builtins that also exist as external programs
such as /bin/test, the setlocale() call must be under #ifndef SHELL. The
shell will do the setlocale() calls which may not agree with the environment
variables.


207436 30-Apr-2010 philip

Fix typo in usage message. Add -n to the list of valid arguments.

MFC after: 1 day


207151 24-Apr-2010 marius

Add a TestFloat based test suite for floating-point implementations
currently supporting sparc64. After a `make depend all` there are
three programs; testsoftfloat for testing against the SoftFloat in
src/lib/libc/softfloat for reference purposes, testemufloat for
testing the emulator source in src/lib/libc/sparc64/fpu and testfloat
for testing with the installed libc. Support for other architectures
can be added as needed.

PR: 144900
Submitted by: Peter Jeremy


207135 23-Apr-2010 jkim

Adjust a test case and make it more jump optimization neutral for JIT case.


207127 23-Apr-2010 jilles

sh: Add some more tests for ${v#...} and ${v%...}.

These pass on stable/8 as well.


206972 21-Apr-2010 rwatson

Merge @176820, @176822, @177156 to tcpp from P4 to HEAD:

Improve accuracy of connection data transfer math.

Disable Nagle's algorithm to avoid delaying transfers of data --
will want to refine this to combine payload with header transfer,
however.

Now that we're running w/o Nagle, try to send the initial data
burst with the header in a single TCP segment.

Prefer %zu to %ju for size_t.

MFC after: 1 week
Sponsored by: Juniper, Inc.


206848 19-Apr-2010 rpaulo

Dump the AR_PHY_TURBO register on the AR5416. This register holds 11n
configurations.

Sponsored by: iXsystems, inc.


206817 18-Apr-2010 jilles

sh: Add testcases for double-quotes within quoted ${var+-...} (non-POSIX).

POSIX leaves things like "${var+"word"}" undefined.
We follow traditional ash behaviour here.
Hence, these testcases also work on stable/8.


206759 17-Apr-2010 jilles

sh: On startup of the shell, use PWD from the environment if it is valid.
Unset PWD if it is incorrect and no value for it can be determined.
This preserves the logical current directory across shell invocations.

Example (assuming /home is a symlink):
$ cd
$ pwd
/home/foo
$ sh
$ pwd
/home/foo

Formerly the second pwd would show the physical path (symlinks resolved).


206711 16-Apr-2010 jilles

fnmatch: Fix bad FNM_PERIOD disabling if an asterisk has been seen.

Example: fnmatch("a*b/*", "abbb/.x", FNM_PATHNAME | FNM_PERIOD)

PR: 116074
MFC after: 1 week


206710 16-Apr-2010 jilles

Add some tests for fnmatch(3).

MFC after: 1 week


206491 11-Apr-2010 jilles

sh: Test that bogus values of PWD are not imported from the environment.

Current versions pass this test trivially by never importing PWD, but I plan
to change sh to import PWD if it is an absolute pathname for the current
directory, possibly containing symlinks.


206276 06-Apr-2010 imp

Fix comment about NANO_ARCH. It can be set now. Also add a warning
about how it confuses TARGET and TARGET_ARCH and the need to separate
the two out into independent variables.


206168 04-Apr-2010 jilles

sh: Add test for nested arithmetic substitution.

Pre-r206145 sh changes nested arithmetic substitution to parentheses, which
is not always correct, as exercised by this test.


206167 04-Apr-2010 jilles

sh: Add test for some associativity in arithmetic.


206150 03-Apr-2010 jilles

sh: Do tilde expansion in substitutions.

This applies to word in ${v-word}, ${v+word}, ${v=word}, ${v?word} (which
inherits quoting from the outside) and in ${v%word}, ${v%%word}, ${v#word},
${v##word} (which does not inherit any quoting).

In all cases tilde expansion is only attempted at the start of word, even if
word contains spaces. This agrees with POSIX and other shells.

This is the last part of the patch tested in the exp-run.

Exp-run done by: erwin (with some other sh(1) changes)


206149 03-Apr-2010 jilles

sh: Fix duplicate variable name in test.


206148 03-Apr-2010 jilles

sh: Add some testcases for the working parts of tilde expansion.


206147 03-Apr-2010 jilles

sh: Allow quoting pattern match characters in ${v%pat} and ${v#pat}.

Note that this depends on r206145 for allowing pattern match characters to
have their special meaning inside a double-quoted expansion like "${v%pat}".

PR: bin/117748
Exp-run done by: erwin (with some other sh(1) changes)


206145 03-Apr-2010 jilles

sh: Fix various things about expansions:
* remove the backslash from \} inside double quotes inside +-=?
substitutions, e.g. "${$+\}a}"
* maintain separate double-quote state for ${v#...} and ${v%...};
single and double quotes are special inside, even in a double-quoted
string or here document
* keep track of correct order of substitutions and arithmetic

This is different from dash's approach, which does not track individual
double quotes in the parser, trying to fix this up during expansion.
This treats single quotes inside "${v#...}" incorrectly, however.

This is similar to NetBSD's approach (as submitted in PR bin/57554), but
recognizes the difference between +-=? and #% substitutions hinted at in
POSIX and is more refined for arithmetic expansion and here documents.

PR: bin/57554
Exp-run done by: erwin (with some other sh(1) changes)


206143 03-Apr-2010 jilles

sh: Add some testcases for the working parts of ${v%...} and ${v#...}.


205994 31-Mar-2010 imp

Two fixes:

(1) We don't need a custom install_kernel. We can install without
symbols by adding INSTALL_NODEBUG (which likely should be
WITHOUT_KERNEL_SYMBOLS_FILE, or something shorter) to CONF_INSTALL
(2) for make buildenv stage, use NANO_MAKE_CONF_BUILD rather than the
non-existant NANO_MAKE_CONF.

MFC after: 7 days


205980 31-Mar-2010 imp

Stop hard coding i386 as the arch for the build. Instead, default to the
processor we're running on. Also, supply amd64 version of create_diskimage
that's the same as i386's.

# didn't fix the confusion between using the processor for this and using
# the machine (which would be more appropriate). NANO_ARCH smashes the two
# together right now.

MFC after: 7 days


205702 26-Mar-2010 delphij

Remove GNU cpio after fix of CVE-2010-0624.

Note that this is actually a no-op for most users, as this GNU
cpio was broken on -HEAD and 8-STABLE since last March until
the recent fix.

FreeBSD 8.0+ uses BSD cpio by default and the code is being
actively maintained.

Blessed by: kientzle
With hat: secteam
MFC after: 3 days


205601 24-Mar-2010 ed

Prune empty directories.


205584 24-Mar-2010 phk

Use gpart(8) to set the active boot partition.


205427 21-Mar-2010 edwin

Replace -b with -C and -B (as proposed by Alexander).
Add -3, -A and -B to the usage.
Update regression test for the new parameters.


205225 16-Mar-2010 kib

Add missing headers. While there, arrange headers alphabetically.

MFC after: 3 days


205224 16-Mar-2010 kib

Add missing headers.

MFC after: 3 days


205154 14-Mar-2010 jilles

sh: Do not abort on a redirection error on a compound command.

Redirection errors on subshells already did not abort the shell because
the redirection is executed in the subshell.

Other shells seem to agree that these redirection errors should not abort
the shell.

Also ensure that the redirections will be cleaned up properly in cases like
command eval '{ shift x; } 2>/dev/null'

Example:
{ echo bad; } </var/empty/x; echo good


205153 14-Mar-2010 jilles

sh: Add test for redirection error on subshell (should not abort).


205151 14-Mar-2010 kib

Remove dot at the end of errx() message.

Noted by: bde
MFC after: 3 days


205149 14-Mar-2010 kib

Adjust style, fix typo, do not print errno because it is meaningless there.
This test fails for now.

MFC after: 3 days


205148 14-Mar-2010 kib

Make it compile on LP64 arches.

MFC after: 3 days


205147 14-Mar-2010 edwin

Create regression tests for ncal:

- A couple of tests to check if the layout of the generated calenders
is correct.

- A couple of tests to see if impossible combinations for -3, -A,
-m, -y etc properly abort.

- A couple of test to confirm that the order of -A, -B, -3 etc give
the right number of months.


205138 13-Mar-2010 jilles

sh: Do not abort on a redirection error if there is no command word.

Although simple commands without a command word (only assignments and/or
redirections) are much like special builtins, POSIX and most shells seem to
agree that redirection errors should not abort the shell in this case. Of
course, the assignments persist and assignment errors are fatal.

To get the old behaviour portably, use the ':' special builtin.
To get the new behaviour portably, given that there are no assignments, use
the 'true' regular builtin.


205136 13-Mar-2010 jilles

sh: Add test for assignment errors (e.g. trying to change a readonly var).
We currently ignore readonly status for assignments before regular builtins
and external programs (these assignments are not persistent anyway), so just
check that the readonly variable really is not changed.
The test depends on the command builtin changes for 'command :'.


205105 12-Mar-2010 jilles

sh: Add tests for " and $ inside `.


204842 07-Mar-2010 jilles

sh: Add some testcases for ${v=w}, ${v-w}, ${v+w}.

These expansions, which were already in the Bourne shell, work correctly for
the most part. The testcases are only about the parts that already work
correctly.


204836 07-Mar-2010 jilles

sh: Add various testcases for here documents.

They are mainly about expansions in here documents but because all the
testcases are in $() command substitution, we also test that $() command
substitution is recursively parsed (or very close to it).


204802 06-Mar-2010 jilles

sh: Make sure to popredir() even if a function caused an error.


204801 06-Mar-2010 jilles

sh: Make sure to popredir() even if a special builtin caused an error.


204800 06-Mar-2010 jilles

sh: Improve the command builtin:
* avoid unnecessary fork
* allow executing builtins via command
* executing a special builtin via command removes its special properties

Obtained from: NetBSD (parts)


204761 05-Mar-2010 jh

- Use errx(3) instead of err(3) when checking if snprintf(3) succeeded.
snprintf(3) doesn't set errno in the tested cases.
- If the same argument reference (for example %1) was specified more than
once, the command didn't necessarily fit to the final command buffer. Fix
this using a dynamic sbuf buffer. Add a few regression tests for the case.

PR: bin/95079
No objections: freebsd-hackers


204627 03-Mar-2010 joel

The NetBSD Foundation has granted permission to remove clause 3 and 4 from
their software.

Obtained from: NetBSD


204608 02-Mar-2010 joel

The NetBSD Foundation has granted permission to remove clause 3 and 4 from
their software.

Obtained from: NetBSD


204586 02-Mar-2010 joel

The NetBSD Foundation has granted permission to remove clause 3 and 4 from
their software.

Obtained from: NetBSD


204585 02-Mar-2010 uqs

Always assign WARNS using ?=

- fix some nearby style bugs
- include Makefile.inc where it makes sense and reduces duplication

Approved by: ed (co-mentor)


204461 28-Feb-2010 antoine

Add files to remove when MK_PPP=no.


204460 28-Feb-2010 antoine

Add files to remove when MK_PORTSNAP=no.


204459 28-Feb-2010 antoine

Add files to remove when MK_PKGTOOLS=no.


204458 28-Feb-2010 antoine

Add files to remove when MK_PF=no.


204457 28-Feb-2010 antoine

Add files to remove when MK_NTP=no.


204456 28-Feb-2010 antoine

Update files to remove when MK_RCMDS=no.


204455 28-Feb-2010 antoine

Add files to remove when MK_RCS=no.


204454 28-Feb-2010 antoine

Add files to remove when MK_ROUTED=no.


204453 28-Feb-2010 antoine

Add files to remove when MK_TELNET=no.


204452 28-Feb-2010 antoine

Add files to remove when MK_NDIS=no.


204451 28-Feb-2010 antoine

Update files to remove when MK_NCP=no.


204450 28-Feb-2010 antoine

Update files to remove when MK_LPR=no.


204449 28-Feb-2010 antoine

Add files to remove when MK_WIRELESS=no.


204379 26-Feb-2010 antoine

Do not remove fmt.1 when MK_MAIL=no.

X-MFC-With: r203584


204311 25-Feb-2010 ru

Fixed missing or broken library dependencies.


204310 25-Feb-2010 ru

Moved mcgrab(1) into a separate directory -- our .mk infrastructure
doesn't currently have support for building multiple programs in a
single makefile.

While here, fixed manpages and makefiles (missing dependencies).


204294 24-Feb-2010 brucec

Update the sendfile regression test so that it outputs results in the
TAP format.
Add a checksum to verify that the data hasn't been corrupted between
being read from disk and being received.

Approved by: rrs (mentor)


204123 20-Feb-2010 attilio

Add a regression test for the kthread(9) interface.

Submitted by: Giovanni Trematerra
<giovanni dot trematerra at gmail dot com>


204017 17-Feb-2010 jilles

sh: arith: Add a test for a bug in the dash arith code,
which I plan to import at some point.
Our current code handles it fine and it should stay that way.


204016 17-Feb-2010 jilles

sh: arith: Test an octal constant as well.


203952 16-Feb-2010 uqs

Add missing newline in last line of file.

Uncovered via: fromcvs vs. svn
Approved by: ed (co-mentor)


203802 12-Feb-2010 pjd

- Implement -q option for pgrep(1).
- Add regression test to test -q option.


203800 12-Feb-2010 ru

Fixed error checking of pthread(3) functions.

PR: 143807
Submitted by: pluknet (partly)


203733 10-Feb-2010 delphij

Symbolic link to mailwrapper should only be removed if both MK_MAILWRAPPER
and MK_SENDMAIL is "no".

Reported by: Rob Farmer <rfarmer at predatorlabs.net>


203711 09-Feb-2010 delphij

As it turns out, fmt(1) is being used by the base system as well as the
ports tree extensively and it is probably a good idea to keep it
regardless of NO_MAIL setting.

Reported by: Alexander Best
Reviewed by: antoine
X-MFC-With: r203584


203677 08-Feb-2010 jilles

sh: Make sure the mail2.0 test can actually fail if $MAIL is not touched.


203584 07-Feb-2010 delphij

Add files for NO_MAIL, NO_SENDMAIL and NO_MAILWRAPPER.

MFC after: 2 weeks


203576 06-Feb-2010 jilles

sh: Do not stat() $MAIL/$MAILPATH in non-interactive shells.

These may be NFS mounted, and we should not touch them unless we are going
to do something useful with the information.


203567 06-Feb-2010 antoine

Update files to remove when MK_KERBEROS=no.


203566 06-Feb-2010 antoine

Add files to remove when MK_JAIL=no.


203565 06-Feb-2010 antoine

Update files to remove when MK_IPX=no.


203564 06-Feb-2010 antoine

Add files to remove when MK_IPFW=no.


203563 06-Feb-2010 antoine

Move rescue/ping6 from files to remove when MK_INET6=no to file to remove
when MK_INET6_SUPPORT=no. (MK_INET6=no implies MK_INET6_SUPPORT=no)


203562 06-Feb-2010 antoine

Add file to remove when MK_IDEA=no.


203561 06-Feb-2010 antoine

Add files to remove when MK_GSSAPI=no.


203231 30-Jan-2010 antoine

Add files to remove when MK_GPIB=no.


203228 30-Jan-2010 antoine

Add files to remove when MK_GDB=no.


203226 30-Jan-2010 antoine

Add files to remove when MK_GAMES=no.


203224 30-Jan-2010 antoine

Add files to remove when MK_FREEBSD_UPDATE=no.


203221 30-Jan-2010 antoine

Add files to remove when MK_FLOPPY=no.


202969 25-Jan-2010 ru

Actualize.


202927 24-Jan-2010 antoine

Add files to remove when MK_DICT=no.


202926 24-Jan-2010 antoine

Add files to remove when MK_CVS=no.


202925 24-Jan-2010 antoine

Add files to remove when MK_CTM=no.


202923 24-Jan-2010 antoine

Add files to remove when MK_CPP=no.


202452 16-Jan-2010 antoine

Update files to remove when MK_ZFS=no.


202451 16-Jan-2010 antoine

Update files to remove when MK_CDDL=no.


202450 16-Jan-2010 antoine

Add files to remove when MK_CALENDAR=no.


202161 12-Jan-2010 gavin

Spell "Hz" correctly wherever it is user-visible.

PR: bin/142566
Submitted by: N.J. Mann njm njm.me.uk
Approved by: ed (mentor)
MFC after: 2 weeks


201931 09-Jan-2010 antoine

Update files to remove when MK_BLUETOOTH=no.


201929 09-Jan-2010 antoine

Add files to remove when MK_AUTHPF=no.


201928 09-Jan-2010 antoine

Add files to remove when MK_ATM=no.


201927 09-Jan-2010 antoine

Add files to remove when MK_AT=no.


201926 09-Jan-2010 antoine

Add files to remove when MK_APM=no.


201925 09-Jan-2010 antoine

Add files to remove when MK_AMD=no.


201923 09-Jan-2010 antoine

Add files to remove when MK_ACCT=no.


201715 07-Jan-2010 davidxu

Don't forget to use fourth argument if O_CREAT is set in argument oflag.
The fourth specifies initial value for the semaphore.


201575 05-Jan-2010 davidxu

Add test code for POSIX semaphore implementation.


201526 04-Jan-2010 obrien

Add ability to search up the directory hierarchy for the system directory.
Do by specifying ".../" with '-m' or MAKESYSPATH (new) environment variable.

Reviewed by: <sjg@NetBSD.org>
Obtained from: NetBSD (+ embellishment by me, sent back to NetBSD)


201491 04-Jan-2010 obrien

Fix formatting.


201490 04-Jan-2010 obrien

There are actually 129 tests here.


201489 04-Jan-2010 obrien

Catch up with UNIX98-style PTY's.


201488 04-Jan-2010 obrien

'prove -r' isn't as smart as grog thought.


201482 04-Jan-2010 obrien

You need to be root to run this test.


201481 04-Jan-2010 obrien

Also cleanup after the test run.


201480 04-Jan-2010 obrien

Don't process 'lastcomm' if "AUTOMATED" is defined.
The tests for it require manual setup.


201479 04-Jan-2010 obrien

It is expected these are chmod +x.


201478 04-Jan-2010 obrien

Regression test for r201456.


201431 03-Jan-2010 jilles

sh: Send the "not found" message for builtin <cmd> to redirected fd 2.


201428 03-Jan-2010 jilles

sh: Add a regression test that tries out all arithmetic ops.

MFC after: 1 week


201427 03-Jan-2010 obrien

Use t1 & t2 as more symbolic than 'a' and 'b' for the two times.


201426 03-Jan-2010 obrien

Provide clean output with 'prove -r'.


201422 03-Jan-2010 obrien

Hide expected error output so the 'prove -r' results are easy to read.


201421 03-Jan-2010 obrien

Allow to be driven by 'prove -r'.


201420 03-Jan-2010 obrien

Make sure 'pack' is usable for 'prove -r'.


201419 03-Jan-2010 obrien

Transform from kernel file to userland source.


201366 01-Jan-2010 jilles

sh: Fix some bugs with backquoted builtins:
- correctly handle error output in $(builtin 2>&1), clarify out1/out2 vs
output/errout in the code
- treat all builtins as regular builtins so errors do not abort the shell
and variable assignments do not persist
- respect the caller's INTOFF

Some bugs still exist:
- expansion errors may still abort the shell
- some side effects of expansions and builtins persist


201350 31-Dec-2009 brooks

The devices that supported EVFILT_NETDEV kqueue filters were removed in
r195175. Remove all definitions, documentation, and usage.

fifo_misc.c:
Remove all kqueue tests as fifo_io.c performs all those that
would have remained.

Reviewed by: rwatson
MFC after: 3 weeks
X-MFC note: don't change vlan_link_state() function signature


201344 31-Dec-2009 jilles

sh: Use PATH= assignment in type.

Example:
PATH=/var/empty; PATH=/bin type ls


201343 31-Dec-2009 jilles

sh: Allow command -pv and command -pV (lookup using _PATH_STDPATH).


201333 31-Dec-2009 obrien

Delete the svn:mime-type property from these text files.


201259 30-Dec-2009 jilles

sh: arith: Return only 0 and 1 from && and ||.

This agrees with C, POSIX and other shells.


201145 28-Dec-2009 antoine

(S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.
Fix some wrong usages.
Note: this does not affect generated binaries as this argument is not used.

PR: 137213
Submitted by: Eygene Ryabinkin (initial version)
MFC after: 1 month


201048 27-Dec-2009 trasz

Make tests for ACL preservation by mv(1) and cp(1) more complete
and easier to follow.


200998 25-Dec-2009 jilles

sh: Do not run callers' exception handlers in subshells.

Reset the exception handler in the child to main's.

This avoids inappropriate double cleanups or shell duplication when the
exception is caught, such as 'fc' and future 'command eval' and 'command .'.


200941 24-Dec-2009 jhb

Add a new tool which attempts to check for kernel configuration options that
are missing from NOTES files.


200811 21-Dec-2009 trasz

Add regression test for NFSv4 ACLs on UFS.


200573 15-Dec-2009 rwatson

Merge libkqueue test suite through r119

Submitted by: Mark Heily <mark@heily.com>


200483 13-Dec-2009 rwatson

Add Mark Heily's libkqueue test suite as a general kqueue test suite to
tools/regression. It tests a number of aspects of kqueue behavior,
although not all currently pass (possibly bugs in the test suite?).

Submitted by: Mark Heily <mark at heily.com>
Obtained from: svn://mark.heily.com/libkqueue/trunk/test (r114)


200442 12-Dec-2009 jh

Don't read the newline character to line buffer because lines are passed
to wcscoll(3). Newline characters could cause incorrect results when
comparing lines.

Also, if an input line didn't contain a newline character, it was
omitted from the output. According to my interpretation, SUSv3 requires
that the newline is always printed.

Add regression tests for the cases. [1]

PR: bin/140976
Submitted by: D'Arcy Cain (original version) [1]
Approved by: trasz (mentor)


200193 06-Dec-2009 jilles

sh: Test ;<newline> as well as ; in the 'for' parser test.


200096 04-Dec-2009 phk

Add disk-magic for amd64: same as i386.

Pass PORTS_OPTS wherever we invoke ports makefiles

Add a logfile where we can see the progress of distfile prefetching


199983 01-Dec-2009 green

Do not gratuitously fail *env(3) operations due to corrupt ('='-less)
**environ entries. This puts non-getenv(3) operations in line with
getenv(3) in that bad environ entries do not cause all operations to
fail. There is still some inconsistency in that getenv(3) in the
absence of any environment-modifying operation does not emit corrupt
environ entry warnings.

I also fixed another inconsistency in getenv(3) where updating the
global environ pointer would not be reflected in the return values.
It would have taken an intermediary setenv(3)/putenv(3)/unsetenv(3)
in order to see the change.


199955 29-Nov-2009 jilles

Disable job control when running 'sh -i' in the testsuite.

Job control tty manipulations sometimes cause the tests to stop (SIGTTOU
and the like) when run from the 'prove' tool.


199953 29-Nov-2009 jilles

Fix some cases where file descriptors from redirections leak to programs.

- Redirecting fds that were not open before kept two copies of the
redirected file.
sh -c '{ :; } 7>/dev/null; fstat -p $$; true'
(both fd 7 and 10 remained open)
- File descriptors used to restore things after redirection were not
set close-on-exec, instead they were explicitly closed before executing
a program normally and before executing a shell procedure. The latter
must remain but the former is replaced by close-on-exec.
sh -c 'exec 7</; { exec fstat -p $$; } 7>/dev/null; true'
(fd 10 remained open)

The examples above are simpler than the testsuite because I do not want to
use fstat or procstat in the testsuite.


199812 25-Nov-2009 julian

exit if "make distribition" fails

Submitted by: patrick tracanelli
MFC after: 1 week


199722 23-Nov-2009 jkim

Make this test case little bit more interesting.


199647 22-Nov-2009 jilles

sh: Ensure the same command input file is on top after executing a builtin.

This avoids weirdness when 'fc -e vi' or the like is done and there is a
syntax error in the file. Formerly an interactive shell tried to execute
stuff after the syntax error and exited.

This should also avoid similar issues with 'command eval' and 'command .'
when 'command' is implemented properly as in NetBSD sh.

Special builtins did not have this problem since errors in them cause the
shell to exit or to reset various state such as the current command input
file.


199641 21-Nov-2009 jilles

trap: do not consider a bad signal name a fatal error.
POSIX explicitly prescribes this.
Continue processing any other signals and return status 1.


199632 21-Nov-2009 stefanf

Add a test for r199631.


199628 21-Nov-2009 stefanf

Add a few very basic tests for cd -{L,P} and pwd -{L,P}.


199605 20-Nov-2009 jkim

Correct copyright date in the BPF regression test.


199604 20-Nov-2009 jkim

Adjust BPF JIT compiler regression tests to catch up with r199603.


199536 19-Nov-2009 mr

Add nanobsd example for the PC Engines ALIX board (serial console).


199499 19-Nov-2009 jkim

Add a test case for very long BPF program.


199291 15-Nov-2009 attilio

Collapse devinfo_state_t with device_state_t in order to avoid a
structure replication and improve manteneability.

Reviewed by: jhb, imp
Tested by: Riccardo Torrini <riccardo at torrini dot org>


199282 14-Nov-2009 jilles

sh: Allow a newline before "in" in a for command, as required by POSIX.


199251 13-Nov-2009 ed

Convert {small prefix}BSD to TERM=xterm as well.

Clean up the ttys files shipped with PicoBSD, NanoBSD and TinyBSD. While
there, it seems one of them still had references to sio(4). Make it in
sync with what we do in the base system.


199243 13-Nov-2009 ed

Switch the default terminal emulation style to xterm for most platforms.

Right now syscons(4) uses a cons25-style terminal emulator. The
disadvantages of that are:

- Little compatibility with embedded devices with serial interfaces.
- Bad bandwidth efficiency, mainly because of the lack of scrolling
regions.
- A very hard transition path to support for modern character sets like
UTF-8.

Our terminal emulation library, libteken, has been supporting
xterm-style terminal emulation for months, so flip the switch and make
everyone use an xterm-style console driver.

I still have to enable this on i386. Right now pc98 and i386 share the
same /etc/ttys file. I'm not going to switch pc98, because it uses its
own Kanji-capable cons25 emulator.

IMPORTANT: What to do if things go wrong (i.e. graphical artifacts):

- Run the application inside script(1), try to reduce the problem and
send me the log file.
- In the mean time, you can run `vidcontrol -T cons25' and `export
TERM=cons25' so you can run applications the same way you did before.
You can also build your kernel with `options TEKEN_CONS25' to make all
virtual terminals use the cons25 emulator by default.

Discussed on: current@


199214 12-Nov-2009 des

Add test-pidfile.c and increase warning level.


199213 12-Nov-2009 des

Test cases for pidfile(3) - including two designed to catch issues arising
from the incorrect use of fcntl(2) instead of flock(2).


199212 12-Nov-2009 des

Fix warnings and remove one unnecessary use of vfork(). The other could
also be removed with a little more work.


199211 12-Nov-2009 des

Fix warnings


199141 10-Nov-2009 jhb

Purge some useless mergeinfo.


199134 10-Nov-2009 des

Check fork() return value


198454 24-Oct-2009 jilles

sh: Exempt $@ and $* from set -u

This seems more useful and will likely be in the next POSIX standard.

Also document more precisely in the man page what set -u does (note that
$@, $* and $! are the only special parameters that can ever be unset, all
the others are always set, although they may be empty).


198453 24-Oct-2009 jilles

Add some tests for ${var?} and set -u.


198406 23-Oct-2009 jilles

wordexp(3): fix some bugs with signals and long outputs
* retry various system calls on EINTR
* retry the rest after a short read (common if there is more than about 1K
of output)
* block SIGCHLD like system(3) does (note that this does not and cannot
work fully in threaded programs, they will need to be careful with wait
functions)

PR: 90580
MFC after: 1 month


198305 20-Oct-2009 pjd

Fix a case where rename actually succeeds, which is also expected behaviour
according to POSIX. This fixes ZFS on Solaris testing.

Submitted by: Milan Cermak <Milan.Cermak@Sun.COM>


198225 19-Oct-2009 des

Update copyright.


198224 19-Oct-2009 des

Remove redundant $FreeBSD$.


198136 15-Oct-2009 luigi

Support the specification of a range of destination ports e.g.

netsend 127.0.0.1 6666-7777 [payloadsize] [packet_rate] [duration]

This is useful to test the behaviour of systems that do some kind
of flow classifications and so exhibit different behaviour depending
on the number of flows that hit them.
I plan to add a similar extension to sweep on a range of IP addresses,
so we can issue a single command to flood (obviously, for testing
purposes!) a number of different destinations.

When there is only one destination, we do a preliminary connect()
of the socket so we can use send() instead of sendto().
When we have multiple ports, the socket is not connect()'ed and we
do a sendto() instead. There is a performance hit in this case,
as the throughput on the loopback interface (with a firewall rule
that blocks the transmission) goes down from 900kpps to 490kpps on
my test machine.

If the number of different destinations is limited, one option to
explore is to have multiple connect()ed sockets.

MFC after: 1 month


198132 15-Oct-2009 luigi

A small change to avoid calling gettimeofday() too often
(hardwired to once every 20us at most).

I found out that on many machines round here, i could only get
300-400kpps with netsend even on loopback and a 'deny' rule in
the firewall, while reducing the number of calls to gettimeofday()
brings the value to 900kpps and more.

This code is just a quick fix for the problem. Of course it could be
done better, with proper getopt() parsing and the like, but since
this applies to the entire program i'll postpone that to when i have
more time.

Reviewed by: rwatson
MFC after: 1 month


197965 11-Oct-2009 kib

Tweaks for sigqueue tests:
- slightly adjust code for style, sort headers.
- in sigqtest2, print received signals, to make it easy to see why test
failed.
- in sigqtest2, job_control_test(), cover a race by adding sleep after
child stopped itself to allow for SIGCHLD due to stop and exit to not
be coalesced.

MFC after: 2 weeks


197849 07-Oct-2009 delphij

Fix build on amd64.

PR: misc/139409
Submitted by: gk


197820 06-Oct-2009 jilles

sh: Send the "xyz: not found" message to redirected fd 2.
This also fixes that trying to execute a non-regular file with a command
name without '/' returns 127 instead of 126.
The fix is rather simplistic: treat CMDUNKNOWN as if the command were found
as an external program. The resulting fork is a bit wasteful but executing
unknown commands should not be very frequent.

PR: bin/137659


197781 05-Oct-2009 rwatson

A few regression tests for SOCK_SEQPACKET UNIX domain sockets.

Sponsored by: Google


197753 04-Oct-2009 das

Regression tests for r197752 (handling of empty/NULL buffers).


197713 02-Oct-2009 bz

Replace the name of the sysctl to security.bsd.map_at_zero and to be
consistent updated the name of the variable as well, after the change
in r197711.


197691 01-Oct-2009 jilles

sh: Disallow mismatched quotes in backticks (`...`).

Due to the amount of code removed by this, it seems that allowing unmatched
quotes was a deliberate imitation of System V sh and real ksh. Most other
shells do not allow unmatched quotes (e.g. bash, zsh, pdksh, NetBSD /bin/sh,
dash).

PR: bin/137657


197543 27-Sep-2009 bz

Add a simple C program to check mmap calls to various different addresses.
The most important test is the mapping fixed at address 0 depending on the
new sysctl.

Things will be updated and possibly converted to m4/.t style once the
details about the kernel patch will be shaken out.

Submitted by: simon (initial version)


197542 27-Sep-2009 simon

- When we run our trap cleanup handler, echo that we are running this
handler to make it more clear why we are 'suddenly' running df,
umount, and mdconfig.
- Remove trap handler again after we have unconfigured the memory
device etc. Before we could end up running the trap handler if a
later stage failed, which was a bit confusing and not really useful.

MFC after: 2 weeks


197509 25-Sep-2009 des

Wipe out mergeinfo.


197454 24-Sep-2009 rpaulo

Update the includes to two more levels of subdirs.

MFC after: 1 week


197436 23-Sep-2009 trasz

Add cross-filesystem regression tests for ACLs.


197434 23-Sep-2009 trasz

Add ACL fuzzer. It's not used by the regression tests right now,
but I'd prefert to have it here, so it won't get lost.


197432 23-Sep-2009 jhb

- Remove a bogus test: setsockopt() doesn't return a length, getsockopt()
does.
- Use %z to printf a size_t to fix compile on 64-bit platforms.


197362 20-Sep-2009 dds

IEEE Std 1003.1, 2004 Edition states:

"The escape sequence '\n' shall match a <newline> embedded in
the pattern space."

It is unclear whether this also applies to a \n embedded in a
character class. Disable the existing handling of \n in a character
class following Mac OS X, GNU sed version 4.1.5 with --posix, and
SunOS 5.10 /usr/bin/sed.

Pointed by: Marius Strobl
Obtained from: Mac OS X


197361 20-Sep-2009 dds

Follow POSIX (IEEE Std 1003.1, 2004 Edition) in the implementation
of the y (translate) command.

"If a backslash character is immediately followed by a backslash
character in string1 or string2, the two backslash characters shall
be counted as a single literal backslash character"

Pointed by: Marius Strobl
Obtained from: Mac OS X


197360 20-Sep-2009 dds

Add correct test results.


197357 20-Sep-2009 dds

Describe how other systems treat this case.


197356 20-Sep-2009 dds

Allow [ to be used as a delimiter.

Pointed by: Marius Strobl
Obtained from: Apple


197352 20-Sep-2009 dds

The transition to Subversion allows us to rename files without
repo-copy hacks.
Remove the test-number prefix from the name of the output files,
so that new test cases can be easily added.


196948 07-Sep-2009 trasz

Add regression tests for NFSv4 ACL granular permission enforcement.


196938 07-Sep-2009 trasz

Add regression tests for NFSv4 ACLs and update POSIX.1e tests to the changed
error messages.


196736 01-Sep-2009 trasz

Adapt to the fact that ls(1) correctly prints '+' for symlinks with ACLs now.


196710 31-Aug-2009 trasz

Add regression test for ACLs on device files - mostly to make
sure we don't crash on attempt to set ACL on them.


196696 31-Aug-2009 jhb

Delete some empty mergeinfo.


196634 28-Aug-2009 jilles

sh: Fix crash with empty functions (f() { }) introduced in r196483

Empty pairs of braces are represented by a NULL node pointer, just like
empty lines at the top level.

Support for empty pairs of braces may be removed later. They make the code
more complex, have inconsistent behaviour (may or may not change $?), are
not specified by POSIX and are not allowed by some other shells like bash,
dash and ksh93.

Reported by: kan


196607 27-Aug-2009 jilles

Add some tests for a fixed bug in an uncommitted patch.
(Trying to get syntax errors for sh -c ':; do' and `:; do`.)


196599 27-Aug-2009 sam

recognie invalid register names


196554 25-Aug-2009 jilles

Add some tests for poll(2)/shutdown(2) interaction.


196511 24-Aug-2009 netchild

- Update config to doxygen 1.5.2 (I use this with 1.5.9).
- Add linprocfs and linsysfs to the linuxulator dox.
- Take the generated includes from the .m files from a subdirectory
instead of putting everything into $(.OBJDIR). This imporves the
human readbility of the source directory contents a lot, if you do not
create a separate OBJDIR.
- Assume UTF-8 encoding for every input file.
- Strip the source and dest path from the output, we are not interested
in the absolute location on the machine where the docs are created,
relative the the root of the FreeBSD source is what interests us.
- Exclude .svn directories.
- Switch to alphabetic index.
- Use one line per INCLUDE_PATH member in the common dox-config.
- Bump the __FreeBSD__ version to 9. [MFC: to 8]
- Switch from hardcoded .m files to an run-time generated one. Takes
a little bit more time to get started with actual work, but at least
is more future-proof. If you generate dox for all subsystems, the
time to find all .m files in the source is magnitutes lower than
producing the docs.
- Make the *DEST_PATH overidable from the environment. This allows to
produce the output directly in the docroot of a webserver.
- Fix the path when telling the user where he can find the API docs.

MFC after: 1 month (after 8.0)


196483 23-Aug-2009 jilles

sh: Fix crash when undefining or redefining a currently executing function.

Add a reference count to function definitions.
Memory may leak if multiple SIGINTs arrive in interactive mode,
this will be fixed later by changing SIGINT handling.

PR: bin/137640


196421 21-Aug-2009 zec

Bugfix: all requests for creating vnets via vimage -c were always
reported as failures, even if the actual library / system call
would succeed, because error message would be reported if the return
value from jail_setv() call was >= 0, and if not, then if that same
value was < 0, i.e. always. The correct behavior is to abort (only)
if jail_setv() returns < 0.

Approved by: re (rwatson), julian (mentor)


196409 20-Aug-2009 zec

vimage(8) is a legacy CLI interface for managing jails associated with
network stack instances, which is provided for compatibility with
older applications. This change brings it back to life in a followup
to the initial conversion of vimage to use the new jail(4)
userland-kernel API:

- when creating vimages via "vimage -c", by default turn on a few
options expected by legacy applications, such as allow operations on
raw sockets, FS mounts etc, and allow jail-related parameters to be
optionally configured.

- introduce the "-m" modifier which allows for configuring jail
parameters of existing vimages / vnet-jails.

- make "vimage name command ..." actually work.

- when reassigning ifnets to vnets using "vimage -i", attempt to rename
the ifnet as "ethXXX" on arrival in the target vnet. Several legacy
applications are known to depend heavily on such behavior.

- vimage -l lists only jails associated with vnets. The output is
sorted using vimage / jail names as keys.

- vimage -l by default searches only the current level in the jail
hierarchy. Recursive listing can be requested via -r switch.

- vimage -l by default prints only jail names on each line, making
such output suitable for pipelining to other commands. More verbose
output can be obtained via -v switch, and even more jail specific
information will be displayed if -j switch is turned on.

- there's no need to build vimage as statically linked, so update the
Makefile accordingly.

- update the vimage.8 man page.

Approved by: re (rwatson), julian (mentor)
MFC after: immediately


196172 13-Aug-2009 bz

Start respecting WITHOUT_INET6.

Make regression/priv compile again after the multi-IP jail
changes. Note that we are still using the legacy jail(2)
rather than the jail_set(2)/jail(3) syscall.
Add an IPv4, and an IPv6 loopback address in case we compile
with INET6 enabled.

Make the priv_vfs_extattr_system compile on amd64 as well using the
proper length modifier to printf(3) for ssize_t.

Reviewed by: rwatson
Approved by: re (kib)


195878 25-Jul-2009 kib

Fix syntax error, makefile comments start with #.

Submitted by: bde
Approved by: re (kensmith)


195848 24-Jul-2009 sam

Update for vaps:
o do not force monitor mode; the wlanX ifnet must be an ahdemo mode vap
o move channel change work before marking ifnet up to avoid churning
the state machine
o change default ifnet name to "wlan0"

Approved by: re (kensmith)


195811 21-Jul-2009 sam

update for recent mesh additions

Approved by: re (kib)


195741 17-Jul-2009 jamie

Remove the interim vimage containers, struct vimage and struct procg,
and the ioctl-based interface that supported them.

Approved by: re (kib), bz (mentor)


195636 12-Jul-2009 kib

Test suite for the poll(2)/select(2) on fifos, pipes and sockets,
and recorded results for several operating systems.

Submitted by: bde
Approved by: re (kensmith)


195618 11-Jul-2009 rpaulo

Implementation of the upcoming Wireless Mesh standard, 802.11s, on the
net80211 wireless stack. This work is based on the March 2009 D3.0 draft
standard. This standard is expected to become final next year.
This includes two main net80211 modules, ieee80211_mesh.c
which deals with peer link management, link metric calculation,
routing table control and mesh configuration and ieee80211_hwmp.c
which deals with the actually routing process on the mesh network.
HWMP is the mandatory routing protocol on by the mesh standard, but
others, such as RA-OLSR, can be implemented.

Authentication and encryption are not implemented.

There are several scripts under tools/tools/net80211/scripts that can be
used to test different mesh network topologies and they also teach you
how to setup a mesh vap (for the impatient: ifconfig wlan0 create
wlandev ... wlanmode mesh).

A new build option is available: IEEE80211_SUPPORT_MESH and it's enabled
by default on GENERIC kernels for i386, amd64, sparc64 and pc98.

Drivers that support mesh networks right now are: ath, ral and mwl.

More information at: http://wiki.freebsd.org/WifiMesh

Please note that this work is experimental. Also, please note that
bridging a mesh vap with another network interface is not yet supported.

Many thanks to the FreeBSD Foundation for sponsoring this project and to
Sam Leffler for his support.
Also, I would like to thank Gateworks Corporation for sending me a
Cambria board which was used during the development of this project.

Reviewed by: sam
Approved by: re (kensmith)
Obtained from: projects/mesh11s


195443 08-Jul-2009 brian

Fix some uninitialise variables.

PR: 136383
Submitted by: Ulrich Spoerlein - uqs at spoerlein dot net
Approved by: re (kib)
MFC after: 3 weeks


195296 02-Jul-2009 trasz

Fix fpathconf(3) on fifos, in effect making ls(1) properly
display '+' on them. Taken from kern/125613, with cosmetic
changes.

PR: kern/125613
Submitted by: Jaakko Heinonen <jh at saunalahti dot fi>
Approved by: re (kib)


194981 25-Jun-2009 jilles

Add some tests for r194975 and r194977.

Approved by: ed (mentor) (implicit)


194958 25-Jun-2009 n_hibma

- Make pprint print through fd 3, so it can be used in customisation
functions to print something to the screen.
- Prefix each line with the running time (bikeshed).

Submitted by: Rick van der Zwet (Wireless Leiden)


194922 24-Jun-2009 jilles

Designate special builtins as such in command -V and type.
Also document various properties of special builtins that we implement.

Approved by: ed (mentor) (implicit)


194897 24-Jun-2009 jilles

Add test for r190698.

Submitted by: Eygene Ryabinkin
Approved by: ed (mentor) (implicit)


194873 24-Jun-2009 sam

add a link named athpeek since my fingers keep typing it


194872 24-Jun-2009 sam

read back the written value and display


194870 24-Jun-2009 jamie

Add libjail, a (somewhat) simpler interface to the jail_set and jail_get
system calls and the security.jail.param sysctls.

Approved by: bz (mentor)


194775 23-Jun-2009 jilles

Add tests for r194774.

Approved by: ed (mentor) (implicit)


194558 20-Jun-2009 remko

Add architecture support for TinyBSD

PR: 135301
Submitted by: Olivier Cochard-Labbe <olivier at cochard dot me>
Reviewed by: Jean Milanez Melo <jmelo at freebsdbrasil dot com dot br> (maintainer)
Approved by: imp (mentor, implicit)
MFC after: 1 week


194546 20-Jun-2009 rwatson

Up the scale of the SPX loopback check a bit: use much larger data sizes
so that we need to do segmentation.


194517 19-Jun-2009 jilles

Add tests for r194406 and r194516.

Approved by: ed (mentor)


194440 18-Jun-2009 n_hibma

- Don't hard code _.disk.full. Use the variable.
- _.bk should be created in MAKEOBJDIRPREFIX as well
- Remove a misplaced and unnecessary message.


194437 18-Jun-2009 n_hibma

Reverse some stuff I accidentally committed in the previous commit:

- creation of sparse files to speed up the build process. This was
discussed with phk 2 years ago and he disagreed with this change.
- handling of negative data partition sizes.

Can I have the ... green pointy hat, please?


194431 18-Jun-2009 n_hibma

Allow building world into a separate dir (for reuse in multiple images):
- buildworld and buildkernel are built into MAKEOBJDIRPREFIX
- installworld and installkernel are performed on NANO_OBJ.

No change of functionality if MAKEOBJDIRPREFIX is not set. If it is sea,t
clean_world deletes NANO_OBJ instead of NANO_WORLDDIR. By starting nanobsd.sh
with the -b option the existing world can be reused to build a new world
reducing time and disk space considerably.

While there:
- Fix two cases where (in comments) MAKEOBJDIRPREFIX should have been
NANO_DISKIMGDIR.
- Simplify an 'if (not wrong); then true; else action; fi' into
'if wrong; then action; fi'. 'if ! false; then echo hello; fi' produces hello.

Note: Make sure you use NANO_OBJ were you use MAKEOBJDIRPREFIX now in your
nanobsd.conf files if you want to split out.


194380 17-Jun-2009 sam

update usb config; the old stack is gone


194332 17-Jun-2009 edwin

When copy+paste goes wrong... Remove duplicate "expr".

Submitted by: danfe@


194310 16-Jun-2009 edwin

iiin -> in

Submitted by: "N.J. Mann" <njm@njm.me.uk>


194288 16-Jun-2009 edwin

Fix NanoBSD when the data partition size is defined as a negative
number.

It is possible to ask nanobsd.sh to create a 'data' partition,
separate from the system or configuration partitions, and
furthermore, by specifying a negative value for its size
to request that it use all space unused by those partitions
for its own size.

Because the two lines of code that calculate how much space
is available for this data partition are written in perl-like
syntax, the awk code that does the processing performs the
calculation incorrectly.
[note - this was already fixed by r174936]

Furthermore, a comparison later down fails to newfs the
partition when the size is negative.

PR: misc/127759
Submitted by: Cyrus Rahman <crahman@gmail.com>
MFC after: 1 week


194286 16-Jun-2009 edwin

Support for 64 Mb Kodak flash device.

PR: misc/115025
Submitted by: Michael W Lucas <mwlucas@freebsd.org>
MFC after: 1 week


194285 16-Jun-2009 edwin

Add support for 256MB Hitachi CF card and 256MB Silicon Systems CF card

This patch against RELENG_6 adds two more entries to
src/tools/tools/nanobsd/FlashDevice.sub - one for a 256MB
Hitachi CF card and one for a 256MB Silicon Systems CF card.

Both entries have been verified to work with a Soekris net4801.

PR: kern/101228
Submitted by: Henrik Brix Andersen <henrik@brixandersen.dk>
MFC after: 1 week


194262 15-Jun-2009 jhb

Add a new 'void closefrom(int lowfd)' system call. When called, it closes
any open file descriptors >= 'lowfd'. It is largely identical to the same
function on other operating systems such as Solaris, DFly, NetBSD, and
OpenBSD. One difference from other *BSD is that this closefrom() does not
fail with any errors. In practice, while the manpages for NetBSD and
OpenBSD claim that they return EINTR, they ignore internal errors from
close() and never return EINTR. DFly does return EINTR, but for the common
use case (closing fd's prior to execve()), the caller really wants all
fd's closed and returning EINTR just forces callers to call closefrom() in
a loop until it stops failing.

Note that this implementation of closefrom(2) does not make any effort to
resolve userland races with open(2) in other threads. As such, it is not
multithread safe.

Submitted by: rwatson (initial version)
Reviewed by: rwatson
MFC after: 2 weeks


194196 14-Jun-2009 jilles

Add tests for r194127 and r194128.

Approved by: ed (mentor)


194192 14-Jun-2009 edwin

Instead of only being able to compare two terminal definitions, now
also be able to print information about...

- length of the terminal capabilties
- dump of one terminal definition
- relationship overview for a terminal definition


194191 14-Jun-2009 edwin

Rename since it has will have more capabilities than just comparing of
two termcap entries.


194144 14-Jun-2009 edwin

Tool to compare two (roughly similar) termcap entries (like rxvt-mono
and rxvt-unicode) so see which fields should don't need to be copied
if the :tc=xxx: option is used.


193592 06-Jun-2009 des

Check that flopen() can lock against self and that children inherit the lock.


193585 06-Jun-2009 edwin

pciconf(8) removes characters after an #, therefor remove them.
Also remove \s used to escape 's.


193584 06-Jun-2009 edwin

When trying to see if we could update the share/misc/pci_vendors,
I found out that the input format of the Boemler list was different
than what the code expected: The last two fields were interpreted
as one. Checking the csv version of the list it showed that there
was sometimes a chipset number in the column before the card
description.

This is a rewrite to use the CSV format of the Boemler list. The
output is differently formatted: Instead of the "chip description",
it is now "description (chip)"


193583 06-Jun-2009 zec

Add an interim userland utility for managing vimages / virtualized
network stack infrastructure.

Requested by: julian (mentor)
Approved by: julian (mentor)


193373 03-Jun-2009 pjd

lchflags(2) takes int, not u_long like chflags(2) and fchflags(2).
Strange, isn't it?

Pointed out by: bde


193280 01-Jun-2009 dougb

Add support for the build options that are currently in the port:
WITH_BIND_IDN
WITH_BIND_LARGE_FILE
WITH_BIND_SIGCHASE
WITH_BIND_XML


193242 01-Jun-2009 sam

tools for mwl driver


193178 31-May-2009 stefanf

Add tests for r193169.


192949 28-May-2009 zml

Add a regression test for multiple threads of the same process acquiring the same fcntl lock.

Approved by: dfr (mentor)


192897 27-May-2009 des

Increment the counter outside the subshell.


192891 27-May-2009 edwin

Add the regression test for bin/date.


192849 26-May-2009 des

Add a regression test for kern/21768.

MFC after: 1 week


192760 25-May-2009 attilio

Use, in uncovered part, the END() macro in order to improve debugging.
In this specific case, Valgrind won't get confused when analyzing such
functions.

Sponsored by: Sandvine Incorporated
Tested by: emaste
MFC: 3 days


192733 25-May-2009 brian

Regression test the 'addr1,+N' feature added in r192732


192662 23-May-2009 sam

add npe tools


192661 23-May-2009 sam

add npe tools; first is npestats which reports device statistics


192630 23-May-2009 edwin

Added two tools to check the contents of /usr/share/misc/iso* with
the data from the sources.

PR: misc/127430 and misc/misc/127428


192482 20-May-2009 edwin

Add regression tests for the date(1) + argument for user-defined
format strings.

PR: bin/127514
Submitted by: edwin@
MFC after: 1 week


192321 18-May-2009 sam

fix typo


191517 26-Apr-2009 ed

Remove empty directories from the HEAD.

Discussed with: developers, imp


191275 19-Apr-2009 phk

A script for plucking packages and their runtime dependencies for
nanobsd images.


191247 18-Apr-2009 sam

Cleanups to prepare this code for wider use (likely merged into hostapd):
o add (required) cmd line args to specify the set of ifnet's to monitor
for WDS discovery msgs; "any" is a wildcard
o change the default script run on wds vap create to the "null script"
o auto-daemonize; add -f option to force foreground operation
o add -P option for integration with rc.d (implementation missing, tba)
o use syslog; default to log up to LOG_INFO, -t (terse) gives you up to
LOG_ERR, and -v (verbose) gives you up to LOG_DEBUG
o scan for existing vaps on startup to recover existing state
o correct some types


191246 18-Apr-2009 sam

allow NANO_CFGDIR to be overridden


191128 15-Apr-2009 sam

no more need for -p option to wlanwds; it knows how to find the parent now


191127 15-Apr-2009 sam

o remove the -p option; use the %parent pointer sysctl to find the parent ifnet
o remove the -b option; users can just embed the bridge ifnet in the script
o add -j option to create wds vaps on join/rejoin ops


191024 13-Apr-2009 sam

switch usb setup to usb2; it still doesn't work right but the
old stuff is now removed and we want this to build


191023 13-Apr-2009 sam

catch up with removal of ATH_SUPPORT_TDMA


191010 13-Apr-2009 stefanf

Add a test for r191009.


191000 13-Apr-2009 trasz

Add a few more regression tests for POSIX.1e ACLs.


190773 06-Apr-2009 das

Return -1 instead of 0 upon reaching EOF. This is somewhat ill-advised
because it means getdelim() returns -1 for both error and EOF, and
never returns 0. However, this is what the original GNU implementation
does, and POSIX inherited the bug.

Reported by: marcus@


190751 05-Apr-2009 ed

Remove if_ppp(4) and if_sl(4).

Not only did these two drivers depend on IFF_NEEDSGIANT, they were
broken 7 months ago during the MPSAFE TTY import. if_ppp(4) has been
replaced by ppp(8). There is no replacement for if_sl(4).

If we see regressions in for example the ports tree, we should just use
__FreeBSD_version 800045 to check whether if_ppp(4) and if_sl(4) are
present. Version 800045 is used to denote the import of MPSAFE TTY.

Discussed with: rwatson, but also rwatson's IFF_NEEDSGIANT emails on the
lists.


190748 05-Apr-2009 phk

Remember to clear the ports list before generation for prefetch


190300 22-Mar-2009 stefanf

Test the r190298 change.


190296 22-Mar-2009 stefanf

Add a few tests for the read built-in.


190285 22-Mar-2009 stefanf

Update test for r190284.


190271 22-Mar-2009 stefanf

Update and extend the tests for alias.


190209 21-Mar-2009 phk

Wrap a long line.

Save a copy of the CONFIGFILES before we spam them.


190100 19-Mar-2009 thompsa

Remove the uscanner(4) driver, this follows the removal of the kernel scanner
driver in Linux 2.6. uscanner was just a simple wrapper around a fifo and
contained no logic, the default interface is now libusb (supported by sane).

Reviewed by: HPS


189833 14-Mar-2009 pjd

Oops. Correct comment in the LICENSE file.


189832 14-Mar-2009 pjd

Regression tests for mac_portacl(4).


189801 14-Mar-2009 rdivacky

Switch over to gnu99 compilation on default for userland.

Tested by: make universe
Tested by: ports exp build (done by pav)
Reviewed by: ru
Reviewed by: silence on arch
Approved by: ed (mentor)


189712 12-Mar-2009 sam

add more register bit defs


189705 11-Mar-2009 sam

move shared register support code to common


189704 11-Mar-2009 sam

add athpoke, a tool to peek/poke registers


189702 11-Mar-2009 sam

add athdecode, an app to decode register logs


189701 11-Mar-2009 sam

add %b format strings for use by athdecode


189623 10-Mar-2009 rwatson

Add tcpp -- TCP parallelism microbenchmark.

This tool creates large numbers of TCP connections, each of which will
transmit a fixed amount of data, between client and server hosts. tcpp can
use multiple workers (typically up to the number of hardware cores), and can
use multiple source IPs in order to use an expanded port/IP 4-tuple space to
avoid problems from reusing 4-tuples too quickly. Aggregate bandwidth use
will be reported after a client run.

While by no means a perfect tool, it has proven quite useful in generating
and optimizing TCP stack lock contention by easily generating high-intensity
workloads. It also proves surprisingly good at finding device driver bugs.


189613 10-Mar-2009 rwatson

Rename files that collide on case-insensitive file systems by encoding
colliding upper case letters as the lower case letter with a '_' in
front.

MFC after: 3 days
Discussed with: ed
Spotted by: Michael David Crawford <mdc at prgmr.com>


189543 08-Mar-2009 rwatson

In UNIX domain socket GC regression test, after setting a socket
non-blocking, EINPROGRESS is an acceptable result from connect().


189331 04-Mar-2009 yongari

Make ifinfo build. The struct if_data members ifi_recvquota and
ifi_xmitquota were renamed to ifi_spare_char1 and ifi_spare_char2
respectively.


189274 02-Mar-2009 sam

add -b option to suppress the banner


189142 28-Feb-2009 das

Tests for getdelim().


189141 28-Feb-2009 das

Add a file containing tests for simple format specifiers.
Currently it only has tests for a few sign issues with integer
formats, including PR 131880.


189140 28-Feb-2009 das

Tests for wcscasecmp(), wcsnlen(), and stpncpy().


189118 27-Feb-2009 sam

really enable usb1


189116 27-Feb-2009 sam

o enable PREEMPTION
o turn off a bunch of stuff that's unlikely to be used
o add flash support
o use mii instead of miibus to save space
o enable tdma support
o configure legacy usb as usb2 works only on 2348 w/ 64M configs


189115 27-Feb-2009 sam

o add -HEAD to avoid build conflicts
o switch to a more common flash config


189114 27-Feb-2009 sam

add -HEAD to avoid build conflicts


189098 27-Feb-2009 sam

fix build


189097 27-Feb-2009 sam

fix build


189092 26-Feb-2009 ed

Rename all symbols in libmp(3) to mp_*, just like Solaris.

The function pow() in libmp(3) clashes with pow(3) in libm. We could
rename this single function, but we can just take the same approach as
the Solaris folks did, which is to prefix all function names with mp_.

libmp(3) isn't really popular nowadays. I suspect not a single
application in ports depends on it. There's still a chance, so I've
increased the SHLIB_MAJOR and __FreeBSD_version.

Reviewed by: deischen, rdivacky


189085 26-Feb-2009 sam

use mii instead of miibus to not pull in useless phy code


189084 26-Feb-2009 sam

add updatep[12] that grok the partitioning we use and use gpart
instead of boot0cfg to switch the active partition


189059 26-Feb-2009 sam

add more gpio registers


188934 23-Feb-2009 pjd

Add explicit casting in few places.

It is only really necessary for open(2)'s third argument, which is optional and
obtained through stdarg(3). open(2)'s third argument is 32bit and we pass 64
bits. On little endian it works, because we take lower 32 bits, but on big
endian platforms we take upper 32 bits, so we end up with 0.

Reported by: Milan Čermák <Milan.Cermak@Sun.COM>


188853 20-Feb-2009 mr

Delete files which serve no purpose in this environment.

Inspired by: simon@


188848 20-Feb-2009 mtm

Doh! r188813 modified an auto-generated file. Fix it for real:
o grammar fix
o remove mention of libkse

Submitted by: Niclas Zeising <niclas.zeising@gmail.com>


188785 19-Feb-2009 sam

revamp after 1/2 and 1/4 rate changes


188560 13-Feb-2009 sam

add -z option to zero driver statistics (but note we don't yet zero
stats obtained from the hal)


188559 13-Feb-2009 sam

add stats no frags and missing stat for no dma buffers


188558 13-Feb-2009 sam

backout r188327, it broke summary printing


188483 11-Feb-2009 rwatson

Add a regresion test to determine whether or not a file descriptor is
allocated in a fork(2)-inheritable way at the beginning or end of an
accept(2) system call. This test creates a test thread and blocks it
in accept(2), then forks a child process which tests to see if the
next available file descriptor is defined or not (EBADF vs EINVAL for
ftruncate(2)).

This detects a regression introduced during the network stack locking
work, in which a very narrow race during which fork(2) from one
thread during accept(2) in a second thread lead to an extra inherited
file descriptor turned into a very wide race ensuring that a
descriptor was leaked into the child even though it hadn't been
returned.

PR: kern/130348


188482 11-Feb-2009 mr

Add files to build i386/amd64 bootable rescue ISO images using the
nanobsd framework.


188327 08-Feb-2009 sam

o use humanize_number to print totals
o shrink some fields now that we don't have to worry about overflow


188210 05-Feb-2009 sam

for adhoc and ahdemo modes try to find the "bss node": use the bssid
unless it's not setup or zero's; this may not work as the bssid of
the ibss isn't certain to the "right mac address" but for many cases
it is


188206 05-Feb-2009 sam

make -o handling like athstats


188205 05-Feb-2009 sam

unbreak -o


188196 05-Feb-2009 sam

add new stats and missing tx_raw stat


188187 05-Feb-2009 sam

o fix identification of ahdemo mode
o split out code to get the bssid for use in the future
o include more information in error diags when unable to collect sta info/stats


188157 05-Feb-2009 sam

add cfi test tool

Sponsored by: Carlson Wireless
Reviewed by: imp, Chris Andreson


188117 04-Feb-2009 phk

Get the right system makefiles for make distribution.


187963 31-Jan-2009 das

Test wprintf() in addition to printf().


187962 31-Jan-2009 das

Add tests for conj{,f,l}() that I wrote some time ago. These test the
versions in libm, not the gcc builtins.


187905 29-Jan-2009 sam

track hal changes


187904 29-Jan-2009 sam

update for hal changes


187580 22-Jan-2009 jeff

- Update my copyright.
- Print human readable time as a float with two digits of precision. Use
ns now as well since clock periods are well into the hundreds of
picoseconds now.
- Show the average duration in the stats frame. This is often more useful
than total duration.


187471 20-Jan-2009 jeff

- Permit timestamps to be as far as 2048 ticks apart before we complain
about invalid timestamps. Nehalem CPUs seem to be synchronized but only
within a fraction of a microsecond.
- Make the Counter code more flexible to poor timestamps. In general we
now complain a lot but render as much as we can.
- Change the scaler behavior so it works better with very long and very
short traces. We now set the maximum scale such that it properly
displays the entire file by default and doesn't permit zooming out
beyond the file. This improves other awkward navigation behavior.
The interval is now set very small which can't be achieved by simply
dragging the mouse. Clicking to the left of or right of the scaler bar
will produce increments of a single, very small, interval now.

Sponsored by: Nokia


187379 18-Jan-2009 jeff

- Add summary information to the title once the file is parsed rather than
printing it to the terminal. Now only parse errors go to the terminal.
- Speedup drawing by raising and lowering tags only once everything has
been drawn. Surprisingly, it now takes a little longer to parse than
it does to draw.
- Parameterize the layout with X_ and Y_ defines that determine the sizes
of various things.
- Remove unnecessary tags.


187376 18-Jan-2009 jeff

- Significantly speedup hiding and displaying multiple rows by writing an
optimized single pass function for each. This reduces the number of
tkinter calls required to the minimum.
- Add a right-click context menu for sources. Supported commands hide
the source, hide the whole group the source is in, and bring up a stat
window.
- Add a source stat frame that gives an event frequency table as well as
the total duration for each event type that has a duration. This can
be used to see, for example, the total time a thread spent running or
blocked by a wchan or lock.


187372 17-Jan-2009 phk

Fix typo

Spotted by: juli


187371 17-Jan-2009 phk

Release the evil twin of nanobsd.sh: sysbuild.sh

quoth the README:

I have been running -current on my laptop since before FreeBSD 2.0 was
released and along the way developed this little trick to making the
task easier.

sysbuild.sh is a way to build a new FreeBSD system on a computer from
a specification, while leaving the current installation intact.

sysbuild.sh assume you have two partitions that can hold your rootfs
and can be booted, and roughly speaking, all it does is build a new
system into the one you don't use, from the one you do use.

A partition named /freebsd is assumed to be part of your layout, and
that is where the sources and ports will be found.

If you know how nanobsd works, you will find a lot of similarity.


187359 17-Jan-2009 jeff

- Add a new source configuration menu option that allows hiding and
displaying sources.
- Add functions to the main SchedGraph to facilitate source hiding. The
source is simply moved off screen and all other sources are moved to
compensate.


187358 17-Jan-2009 jeff

- Rewrite the parser to support the new generic schedgraph interface.
This no longer requires any custom classes or parsers to support new
event types.
- Add an optional command line argument for specifying the clock frequency
in ghz. This is useful for traces that do not include KTR_SCHED.

Sponsored by: Nokia

- Add support for sorting rows by clicking and dragging them to their new
position.
- Add support for configuring the cpu background colors.
- Improve the scaling so a better center is maintained as you zoom. This
is not perfect due to precision loss with floats used in the window
views.
- Add new colors and a random assignment for unknown event types. A table
is used for known event types. This is the only event specific
information.


187334 16-Jan-2009 pjd

Be more Solaris-friendly.

Submitted by: Milan Cermak <Milan.Cermak@Sun.COM>


187332 16-Jan-2009 ed

Allow jot(1) regression tests to be checked out on Windows filesystems.

The jot(1) regression tests directory contained two tests named `wx' and
`wX', which doesn't work on case insensitive filesystems. Rename `wX' to
`wX1'.

MFC after: 1 month


187322 15-Jan-2009 sam

add athrd tool that dumps ath hal regulatory info; note this is soon to
obsolete but commit now so it's available for anyone that's interested


187255 15-Jan-2009 sam

simple scripts to demonstrate tdma setup


187156 13-Jan-2009 jhb

Add support for two new event source types:
- Callwheels traced via KTR_CALLOUT. Each CPU is assigned a callwheel
source. The events on this source are the execution of individual callout
routines. Each routine shows up as a green rectangle while it is executed
and the event details include the function pointer and argument.
- Locks traced via KTR_LOCK. Currently, each lock name is assigned an event
source (since the existing KTR_LOCK traces only include lock names and
not pointers). This does mean that if multiple locks of the same name are
manipulated, the source line for that name may be confusing. However, for
many cases this can be useful. Locks are blue when they are held and
purple when contested. The contention support is a bit weak due to
limitations in the rw_rlock() and mtx_lock_spin() logging messages
currently. I also have not added support for contention on lockmgr,
sx, or rmlocks yet. What is there now can be profitably used to examine
activity on Giant however.
- Expand the width of the event source names column a bit to allow for some
of the longer names of these new source types.


187155 13-Jan-2009 jhb

- Add some rudimentary support for sorting the list of event sources
(threads, CPU load counters, etc.). Each source is tagged with a group
and an order similar to the SYSINIT SI_SUB_* and SI_ORDER_*. After
the file is parsed, all the sources are then sorted. Currently, the only
affects of this are that the CPU loads are now sorted by CPU ID (so
CPU 0 is always first). However, this makes it easier to add new types
of event sources in the future and have them all clustered together
instead of intertwined with threads.
- Python lists perform insertions at the tail much faster than insertions
at the head. For a trace that had a lot of events for a single event
source, the constant insertions of new events to the head of the
per-source event list caused a noticable slow down. To compensate,
append new events to the end of the list during parsing and then
reverse the list prior to drawing.
- Somewhere in the tkinter internals the coordinates of a canvas are
stored in a signed 32-bit integer. As a result, if an the box for
an event spans 2^31, it would actually end up having a negative
X offset at one end. The result was a single box that covered the
entire event source. Kris worked around this for some traces by
bumping up the initial ticks/pixel ratio from 1 to 10. However, a
divisor of 10 can still be too small for large tracefiles (e.g.
with 4 million entries). Instead of hardcoding the initial scaling
ratio, calculate it from the time span of the trace file.
- Add support for using the mouse wheel to scroll the graph window
up and down.


187120 12-Jan-2009 sam

add tool to calculate air time for 802.11 packets


187107 12-Jan-2009 obrien

Vi got me in trouble in r187102 - fix typo of duplicate output filename.

Submitted by: several


187102 12-Jan-2009 obrien

Update fech URL.

Submitted by: Alexander Best <alexbestms@math.uni-muenster.de>


186979 09-Jan-2009 sam

example configurations for cross-building to Gateworks 2348 and 2358 boards;
probably needs cleanups to be less specific to my needs/uses

MFC after: 2 weeks


186904 08-Jan-2009 sam

TDMA support for long distance point-to-point links using ath devices:
o add net80211 support for a tdma vap that is built on top of the
existing adhoc-demo support
o add tdma scheduling of frame transmission to the ath driver; it's
conceivable other devices might be capable of this too in which case
they can make use of the 802.11 protocol additions etc.
o add minor bits to user tools that need to know: ifconfig to setup and
configure, new statistics in athstats, and new debug mask bits

While the architecture can support >2 slots in a TDMA BSS the current
design is intended (and tested) for only 2 slots.

Sponsored by: Intel


186457 23-Dec-2008 gnn

Add a new program, ether_reflect, which is useful in testing ethernet
devices and switches.


186456 23-Dec-2008 gnn

Fix a bug in the man page where we were not showing the correct flags
in the explanation. Several of the flags were -i, since it was a copy/paste
operation.


186453 23-Dec-2008 gnn

Add the mctest program and description to the README.


186284 18-Dec-2008 bms

Add new tool tionxcl to bring ttys out of exclusive mode when
left by e.g. legacy uucp or tip.


186181 16-Dec-2008 phk

Make it possible to cherry-pick packages out of a directory.


186082 14-Dec-2008 ume

Bootstrapping merge history for resolver.


185743 07-Dec-2008 sam

bring in diagnostic tools that are useful now that we have hal source code


185695 06-Dec-2008 ganbold

This is simple testing program for revision 185647.
It invokes multiple parallel threads and each thread calls vfork()
system call.

Approved by: kib


185402 28-Nov-2008 stefanf

Update for 185401, errors now go to stderr.


185304 25-Nov-2008 trasz

Add tools-level test for POSIX.1e functionality.

Approved by: rwatson (mentor)


185252 24-Nov-2008 pjd

This actually works on Linux, I just had wrong directory permission.

Found by: trasz


185251 24-Nov-2008 pjd

Include TODO messages even if tests succeeds, so we can detect when something
suddenly started to work.


185232 23-Nov-2008 stefanf

Add a test for r185231.


185229 23-Nov-2008 pjd

Mark all the places where Linux is not POSIX-compilant. Tested on ext3.


185227 23-Nov-2008 pjd

fstest for Linux:
- Use -- when needed so Linux getopt(3) won't get confused.
- Follow POSIX more closely.

Submitted by: Szabolcs Szakacsits <szaka@ntfs-3g.org>


185223 23-Nov-2008 pjd

fstest for Linux:
Automatically detect file system type.


185221 23-Nov-2008 pjd

FreeBSD's way of handling rmdir("..") is not POSIX-compilant.


185220 23-Nov-2008 pjd

Shorter version.


185219 23-Nov-2008 pjd

Add support for pathconf(2).


185218 23-Nov-2008 pjd

Detect operating system automatically.


185216 23-Nov-2008 pjd

fstest for Linux:
- Use /dev/urandom, it is more portable.
- Implement todo() function which allows to mark known failures.


185173 22-Nov-2008 pjd

IFp4: Regression tests for FreeBSD/ZFS chflags(2)/lchflags(2).


185029 17-Nov-2008 pjd

Update ZFS from version 6 to 13 and bring some FreeBSD-specific changes.

This bring huge amount of changes, I'll enumerate only user-visible changes:

- Delegated Administration

Allows regular users to perform ZFS operations, like file system
creation, snapshot creation, etc.

- L2ARC

Level 2 cache for ZFS - allows to use additional disks for cache.
Huge performance improvements mostly for random read of mostly
static content.

- slog

Allow to use additional disks for ZFS Intent Log to speed up
operations like fsync(2).

- vfs.zfs.super_owner

Allows regular users to perform privileged operations on files stored
on ZFS file systems owned by him. Very careful with this one.

- chflags(2)

Not all the flags are supported. This still needs work.

- ZFSBoot

Support to boot off of ZFS pool. Not finished, AFAIK.

Submitted by: dfr

- Snapshot properties

- New failure modes

Before if write requested failed, system paniced. Now one
can select from one of three failure modes:
- panic - panic on write error
- wait - wait for disk to reappear
- continue - serve read requests if possible, block write requests

- Refquota, refreservation properties

Just quota and reservation properties, but don't count space consumed
by children file systems, clones and snapshots.

- Sparse volumes

ZVOLs that don't reserve space in the pool.

- External attributes

Compatible with extattr(2).

- NFSv4-ACLs

Not sure about the status, might not be complete yet.

Submitted by: trasz

- Creation-time properties

- Regression tests for zpool(8) command.

Obtained from: OpenSolaris


184852 11-Nov-2008 dds

Add a test for the "or more" part of the following POSIX specification.

"A function can be preceded by one or more '!' characters, in which
case the function shall be applied if the addresses do not select
the pattern space."


184749 07-Nov-2008 trasz

Make test for write access to the directory being moved a little more
specific.

Approved by: rwatson (mentor)


184748 07-Nov-2008 trasz

Improve output when a test fails.

Approved by: rwatson (mentor)


184737 06-Nov-2008 trasz

Change ZFS behaviour to match UFS: when moving (rename(2)) a subdirectory
from one parent directory to another, in addition to the usual access checks
one also needs write access to the subdirectory being moved.

Approved by: rwatson (mentor), pjd


184588 03-Nov-2008 dfr

Implement support for RPCSEC_GSS authentication to both the NFS client
and server. This replaces the RPC implementation of the NFS client and
server with the newer RPC implementation originally developed
(actually ported from the userland sunrpc code) to support the NFS
Lock Manager. I have tested this code extensively and I believe it is
stable and that performance is at least equal to the legacy RPC
implementation.

The NFS code currently contains support for both the new RPC
implementation and the older legacy implementation inherited from the
original NFS codebase. The default is to use the new implementation -
add the NFS_LEGACYRPC option to fall back to the old code. When I
merge this support back to RELENG_7, I will probably change this so
that users have to 'opt in' to get the new code.

To use RPCSEC_GSS on either client or server, you must build a kernel
which includes the KGSSAPI option and the crypto device. On the
userland side, you must build at least a new libc, mountd, mount_nfs
and gssd. You must install new versions of /etc/rc.d/gssd and
/etc/rc.d/nfsd and add 'gssd_enable=YES' to /etc/rc.conf.

As long as gssd is running, you should be able to mount an NFS
filesystem from a server that requires RPCSEC_GSS authentication. The
mount itself can happen without any kerberos credentials but all
access to the filesystem will be denied unless the accessing user has
a valid ticket file in the standard place (/tmp/krb5cc_<uid>). There
is currently no support for situations where the ticket file is in a
different place, such as when the user logged in via SSH and has
delegated credentials from that login. This restriction is also
present in Solaris and Linux. In theory, we could improve this in
future, possibly using Brooks Davis' implementation of variant
symlinks.

Supporting RPCSEC_GSS on a server is nearly as simple. You must create
service creds for the server in the form 'nfs/<fqdn>@<REALM>' and
install them in /etc/krb5.keytab. The standard heimdal utility ktutil
makes this fairly easy. After the service creds have been created, you
can add a '-sec=krb5' option to /etc/exports and restart both mountd
and nfsd.

The only other difference an administrator should notice is that nfsd
doesn't fork to create service threads any more. In normal operation,
there will be two nfsd processes, one in userland waiting for TCP
connections and one in the kernel handling requests. The latter
process will create as many kthreads as required - these should be
visible via 'top -H'. The code has some support for varying the number
of service threads according to load but initially at least, nfsd uses
a fixed number of threads according to the value supplied to its '-n'
option.

Sponsored by: Isilon Systems
MFC after: 1 month


184453 29-Oct-2008 sam

o unbreak ani stat display
o improve some labels


184371 27-Oct-2008 sam

sync w/ driver updates; this also brings in ani stats


184370 27-Oct-2008 sam

add regdomain knob


184090 20-Oct-2008 des

#ifdef out the lock-against-self test. I'm not sure it makes sense, and
it relies on non-portable flock(2) semantics. Not only is flock(2) not
portable, but on some OSes that do have it, it is implemented in terms
of fcntl(2) locks, which are per-process rather than per-descriptor.


184048 19-Oct-2008 sam

add -n option to suppress clearing the build tree and add -DNO_CLEAN
to buildworld and/or buildkernel


183727 09-Oct-2008 n_hibma

Avoid failing if the directory already exists (when restarting at customize).

MFC after: 2 days


183676 07-Oct-2008 rwatson

Update udpzerobyte to understand that passing 0 as a length to recv(2)
will cause it to return 0, not EAGAIN.

Add UNIX domain socket support to udpzerobyte, which suggests this
regression test should be moved to the general sockets test area rather
than netinet.


183668 07-Oct-2008 rwatson

Add IPv6 support to zero-size UDP transmit/receive test.


183666 07-Oct-2008 rwatson

Regression test for the loopback handling of zero-length UDP packets, which
should be delivered but without payload.


183652 06-Oct-2008 rwatson

Add very simple regression test for fstat(2) on sockets: make sure it
returns success for various socket types. It's easy to imagine this
being enhanced to validate the returned data, but...


183315 23-Sep-2008 simon

In cust_install_files() we ignore CVS directories. In a similar way now
also ignore .svn directories.


183314 23-Sep-2008 simon

- Change all "echo #..." into using a progress print function to make it
possible to make NanoBSD output more quite or verbose. The default
output should remain mostly unchanged. [1]
- Add missing shift for -i.
- Clean up usage() so it's now (mostly) sorted alphabetically.
- Make command line argument handling more consistent in the code and
remove redundant semicolons.

Reviwed by: phk [1]


183306 23-Sep-2008 sam

add missing options


183305 23-Sep-2008 sam

add missing options


183284 23-Sep-2008 bms

* Add USB boot support.
* Allow the image name to be renamed via NANO_IMGNAME.
* Propagate TARGET_ARCH into src top level make targets
explicitly to support cross-building.
* Increase the default size of NanoBSD media from 488MB to
584MB to accomodate a -CURRENT world.

Reviewed by: phk


183279 22-Sep-2008 bms

Mark the first slice of a NanoBSD image 'active' by default.
This fixes USB boot (not yet merged to HEAD) with 3 flavours
of BIOS I've seen.

Approved by: phk


183242 21-Sep-2008 sam

add new build knobs and jigger some existing controls to improve
control over the result of buildworld and installworld; this especially
helps packaging systems such as nanobsd

Reviewed by: various (posted to arch)
MFC after: 1 month


183237 21-Sep-2008 simon

Include $NANO_NAME in the completed message. This is nice if you are
building multiple NanoBSD images at once to keep track of what is
running and what isn't.


183219 21-Sep-2008 sam

eliminate hardwired lists; use the media type to autoconfig


183002 13-Sep-2008 antoine

Add files to remove when WITHOUT_HESIOD is set.
This fixes "make check-old" when WITH_HESIOD is set.

PR: 122406
MFC after: 1 month


182903 10-Sep-2008 maxim

o Correct a comment: a test file size is a four pages not three.


182845 07-Sep-2008 simon

Change space -> tab in printed usage output to make it look consistent.


182711 03-Sep-2008 das

Regression tests for bugs in gdtoa.


182690 02-Sep-2008 thomas

Fix typo in comment.


182578 31-Aug-2008 rik

Add simple cd to dvd conversion script.


182531 31-Aug-2008 rwatson

Update README to reflect removal of netatm/harp test parts some time ago.

MFC after: 3 days


182464 29-Aug-2008 jkim

Connect a forgotten test case to Makefile.


182459 29-Aug-2008 jkim

Do not pass validatation level since all issues are fixed now.


182457 29-Aug-2008 jkim

Merge local copy of bpf_validate() with bpf_filter.c.


182452 29-Aug-2008 pjd

By default backup geli metadata to a file. It is quite critical 512 bytes,
once it is lost, all data is gone.

Option '-B none' can by used to prevent backup. Option '-B path' can be
used to backup metadata to a different file than the default, which is
/var/backups/<prov>.eli.

The 'geli init' command also prints backup file location and gives short
procedure how to restore metadata.

The 'geli setkey' command now warns that even after passphrase change or keys
update there could be version of the master key encrypted with old
keys/passphrase in the backup file.

Add regression tests to verify that new functionality works as expected.

Update other regression tests so they don't create backup files.

Reviewed by: keramida, rink
Dedicated to: a friend who lost 400GB of his live by accidentally overwritting geli metadata
MFC after: 2 weeks


182428 29-Aug-2008 jkim

Merge bpf_filter.c r182425 and add test cases for jump range checks.

While I am here, fix stupid typos in test0080.h and make it JIT compiler only.


182417 28-Aug-2008 jkim

Move comments to the right places.


182415 28-Aug-2008 jkim

Merge bpf_filter.c r182412 and remove additional local checks.

While I am here, use more realistic value for illegal code test case.


182393 28-Aug-2008 jkim

Fix style consistencies and a comment.


182382 28-Aug-2008 jkim

Merge bpf_filter.c r182380 and remove additional local checks
for BPF_STX and BPF_LDX|BPF_MEM instructions.


182377 28-Aug-2008 jkim

Add a test case for uninitialized scratch memory (for JIT compiler).


182301 27-Aug-2008 stefanf

Add a test for r182300.


182221 26-Aug-2008 jkim

Add a test case for null filter.


182219 26-Aug-2008 jkim

Add more test cases for invalid instructions and add comments
about bpf_validate(9) issues.


182185 26-Aug-2008 jkim

Remove some hacks from regression test since bpf_filter.c builds fine now.


182183 25-Aug-2008 jkim

Add a trivial bpf filter benchmark.


182182 25-Aug-2008 jkim

Use sys/net/bpf_jitter.c instead of rolling our own version
since it is compilable on user land now.


182175 25-Aug-2008 jkim

Reflect sys/net/bpf_jitter.h changes to regression test.


181965 21-Aug-2008 raj

Increase cryptotest tool initialization vector (IV) size.

This fixes potential out-of-bound accesses when testing ciphers with block size
greater than 8 bytes (e.g. AES).

Submitted by: Bartlomiej Sieka tur ! semihalf dot com
Discussed with: pjd, sam


181857 18-Aug-2008 jkim

Add test case for 'divide by 0' with BPF_ALU|BPF_DIV|BPF_X instruction.


181855 18-Aug-2008 jkim

Fix two test cases on 32-bit architectures.


181847 18-Aug-2008 jkim

Add simple bpf(9) regression tests and test cases.


181751 15-Aug-2008 phk

Accept tty[ud]0 for console device


181631 12-Aug-2008 antoine

Use expr -e instead of expr to compute NANO_MEDIASIZE for Flash devices
larger than 2GB to prevent an overflow [1].
Make case-insensitive comparison work for siliconsystems, soekris and
transcend devices.

PR: conf/126386 [1]
Submitted by: Mark A [1]
MFC after: 1 month


181481 09-Aug-2008 sam

fix syntax


181463 09-Aug-2008 des

Add sbuf_new_auto as a shortcut for the very common case of creating a
completely dynamic sbuf.

Obtained from: Varnish
MFC after: 2 weeks


181461 09-Aug-2008 phk

Add late customize hook

Submitted by: Patrick M. Hausen
Sat on for far too long: phk


181460 09-Aug-2008 phk

Add -i option to supress image building.

Submitted by: keramida


181459 09-Aug-2008 phk

Track /etc/ttys change to uart(4)


181206 02-Aug-2008 das

Test that the result is correctly rounded when |y/x| is huge.


181195 02-Aug-2008 sam

use new sysctl to generate a fake radar event


181155 02-Aug-2008 das

Regression tests for fmtcheck(3).

Obtained from: NetBSD


181150 02-Aug-2008 scf

Detect if the application has cleared the environ variable by setting
the first value (environ[0]) to NULL. This is in addition to the
current detection of environ being replaced, which includes being set to
NULL. Without this fix, the environment is not truly wiped, but appears
to be by getenv() until an *env() call is made to alter the enviroment.

This change is necessary to support those applications that use this
method for clearing environ such as Dovecot and Postfix. Applications
such as Sendmail and the base system's env replace environ (already
detected). While neither of these methods are defined by SUSv3, it is
best to support them due to historic reasons and in lieu of a clean,
defined method.

Add extra units tests for clearing environ using four different methods:
1. Set environ to NULL pointer.
2. Set environ[0] to NULL pointer.
3. Set environ to calloc()'d NULL-terminated array.
4. Set environ to static NULL-terminated array.

Noticed by: Timo Sirainen

MFC after: 3 days


181149 02-Aug-2008 scf

Fix whitespace.


181083 31-Jul-2008 sam

unset TARGET_CPUTYPE and TARGET_BIG_ENDIAN when building the kernel
to silence compiler complaints when cross-building

Reviewed by: phk
MFC after: 2 weeks


181076 31-Jul-2008 das

Add some tests for acos*(), asin*(), atan*(), and atan2*().


181022 30-Jul-2008 stefanf

Add a regression test for r181017.

Submitted by: simon


180986 30-Jul-2008 scf

style(9) specifies that case statements are not indented.


180967 29-Jul-2008 rwatson

Remove extra comment that snuck in in last commit.


180966 29-Jul-2008 rwatson

Add a simple ICMPv6 filter test for IPv6 raw sockets: determine that
the default ICMPv6 filter is pass all, test that we can set it to block
all and restore to pass all. No attempt is made to test that the
filtering works, just that we can get and set it.


180926 28-Jul-2008 antoine

Add files to remove when MK_GNU_CPIO = no


180394 09-Jul-2008 gnn

Add a new program to the multicast test suite. The mcgrab program
is used to grab and hold some number of multicast addresses in order
to test what happens when an interface goes over the number of multicast
addresses it can filter in hardware.


180237 03-Jul-2008 das

Add regression tests for fmin{,f,l} and fmax{,f,l}.
I wrote these to test amd64 asm functions that used
maxss, maxsd, minss, and minsd, but it turns out that
those instructions don't handle NaNs and signed zero
in the same way as fmin() and fmax() are required to,
so we're stuck with the C versions for now.


180209 03-Jul-2008 peter

Exclude .cvsignore files from $FreeBSD$ checking


180208 03-Jul-2008 peter

Set magic fbsd:nokeywords property that allows files to bypass
keyword expansion. (file-specific replacement for CVSROOT/exclude)


180103 29-Jun-2008 das

Add some regression tests for printf() with positional arguments.
The first test comes from OpenBSD, and the others are additions or
adaptations.

This is based on OpenBSD's
src/regress/lib/libc/sprintf/sprintf_test.c, v1.3.
I deliberately did not use v1.4 because it's bogus.


180059 27-Jun-2008 jhb

Rework the lifetime management of the kernel implementation of POSIX
semaphores. Specifically, semaphores are now represented as new file
descriptor type that is set to close on exec. This removes the need for
all of the manual process reference counting (and fork, exec, and exit
event handlers) as the normal file descriptor operations handle all of
that for us nicely. It is also suggested as one possible implementation
in the spec and at least one other OS (OS X) uses this approach.

Some bugs that were fixed as a result include:
- References to a named semaphore whose name is removed still work after
the sem_unlink() operation. Prior to this patch, if a semaphore's name
was removed, valid handles from sem_open() would get EINVAL errors from
sem_getvalue(), sem_post(), etc. This fixes that.
- Unnamed semaphores created with sem_init() were not cleaned up when a
process exited or exec'd. They were only cleaned up if the process
did an explicit sem_destroy(). This could result in a leak of semaphore
objects that could never be cleaned up.
- On the other hand, if another process guessed the id (kernel pointer to
'struct ksem' of an unnamed semaphore (created via sem_init)) and had
write access to the semaphore based on UID/GID checks, then that other
process could manipulate the semaphore via sem_destroy(), sem_post(),
sem_wait(), etc.
- As part of the permission check (UID/GID), the umask of the proces
creating the semaphore was not honored. Thus if your umask denied group
read/write access but the explicit mode in the sem_init() call allowed
it, the semaphore would be readable/writable by other users in the
same group, for example. This includes access via the previous bug.
- If the module refused to unload because there were active semaphores,
then it might have deregistered one or more of the semaphore system
calls before it noticed that there was a problem. I'm not sure if
this actually happened as the order that modules are discovered by the
kernel linker depends on how the actual .ko file is linked. One can
make the order deterministic by using a single module with a mod_event
handler that explicitly registers syscalls (and deregisters during
unload after any checks). This also fixes a race where even if the
sem_module unloaded first it would have destroyed locks that the
syscalls might be trying to access if they are still executing when
they are unloaded.

XXX: By the way, deregistering system calls doesn't do any blocking
to drain any threads from the calls.
- Some minor fixes to errno values on error. For example, sem_init()
isn't documented to return ENFILE or EMFILE if we run out of semaphores
the way that sem_open() can. Instead, it should return ENOSPC in that
case.

Other changes:
- Kernel semaphores now use a hash table to manage the namespace of
named semaphores nearly in a similar fashion to the POSIX shared memory
object file descriptors. Kernel semaphores can now also have names
longer than 14 chars (up to MAXPATHLEN) and can include subdirectories
in their pathname.
- The UID/GID permission checks for access to a named semaphore are now
done via vaccess() rather than a home-rolled set of checks.
- Now that kernel semaphores have an associated file object, the various
MAC checks for POSIX semaphores accept both a file credential and an
active credential. There is also a new posixsem_check_stat() since it
is possible to fstat() a semaphore file descriptor.
- A small set of regression tests (using the ksem API directly) is present
in src/tools/regression/posixsem.

Reported by: kris (1)
Tested by: kris
Reviewed by: rwatson (lightly)
MFC after: 1 month


180036 26-Jun-2008 jhb

Fix compile on 64-bit platforms.


180025 26-Jun-2008 dfr

Re-implement the client side of rpc.lockd in the kernel. This implementation
provides the correct semantics for flock(2) style locks which are used by the
lockf(1) command line tool and the pidfile(3) library. It also implements
recovery from server restarts and ensures that dirty cache blocks are written
to the server before obtaining locks (allowing multiple clients to use file
locking to safely share data).

Sponsored by: Isilon Systems
PR: 94256
MFC after: 2 weeks


180012 25-Jun-2008 ru

Enable GCC stack protection (aka Propolice) for userland:
- It is opt-out for now so as to give it maximum testing, but it may be
turned opt-in for stable branches depending on the consensus. You
can turn it off with WITHOUT_SSP.
- WITHOUT_SSP was previously used to disable the build of GNU libssp.
It is harmless to steal the knob as SSP symbols have been provided
by libc for a long time, GNU libssp should not have been much used.
- SSP is disabled in a few corners such as system bootstrap programs
(sys/boot), process bootstrap code (rtld, csu) and SSP symbols themselves.
- It should be safe to use -fstack-protector-all to build world, however
libc will be automatically downgraded to -fstack-protector because it
breaks rtld otherwise.
- This option is unavailable on ia64.

Enable GCC stack protection (aka Propolice) for kernel:
- It is opt-out for now so as to give it maximum testing.
- Do not compile your kernel with -fstack-protector-all, it won't work.

Submitted by: Jeremie Le Hen <jeremie@le-hen.org>


179934 22-Jun-2008 rwatson

Teach fifo_create regression test to also try to use mknod(2) to create
fifos, as this is required by the Single UNIX Specification, although
not currently implemented on FreeBSD.

While here, fix a bug in the directory timestamp checking test by
sleeping after querying the starting timestamp, rather than before.


179919 21-Jun-2008 das

Regression test for a recently fixed strtod bug.


179813 16-Jun-2008 dougb

1. Make the BSD version of cpio the default [1]
a. The BSD version will be built and installed unless
WITHOUT_BSD_CPIO is defined.
b. The GNU version will not be built or installed unless
WITH_GNU_CPIO is defined. If this is defined, the symlink
in /usr/bin will be to the GNU version whether the BSD
version is present or not.

When these changes are MFCed the defaults should be flipped.

2. Add a knob to disable the building of GNU grep. This will
make it easier for those that want to test the BSD version in
the ports.

Approved by: kientzle [1]


179528 03-Jun-2008 gnn

Update mctest and its associated script to have a base port to listen
on so that multiple copies can be run easily.

Update documentation with group and port arguments which are optional.


179331 26-May-2008 rwatson

Remove two netatm-specific test parts.

MFC after: 3 weeks
Spotted by: bz


179315 26-May-2008 bz

Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE and
parts relied on the now removed NET_NEEDS_GIANT.
Most of I4B has been disconnected from the build
since July 2007 in HEAD/RELENG_7.

This is what was removed:
- configuration in /etc/isdn
- examples
- man pages
- kernel configuration
- sys/i4b (drivers, layers, include files)
- user space tools
- i4b support from ppp
- further documentation

Discussed with: rwatson, re


179122 19-May-2008 thompsa

Flush stdout after each line to make piping to another command easier.


179084 18-May-2008 rdivacky

Simple testing program for *at family of syscalls.

Approved by: kib (mentor)


179062 17-May-2008 jb

Add the DTrace test makefile for the test suite distributed in OpenSolaris.


179023 15-May-2008 stefanf

Test the expansion of $LINENO.


179017 15-May-2008 adrian

Add the ability to do all read, all write, or random read/write.


178823 07-May-2008 adrian

Include a very basic (and beta) tool for stressing disks using the POSIX
AIO calls.

This small program queues up a controllable number of concurrent AIO
read operations w/ controllable io size against a disk or regular file.
There are a few other things to add (notably optional write support!)
but it works well enough at the present time to stress the AIO code out
relatively harshly in the disk IO case.


178701 30-Apr-2008 scf

Enable autoflush of output to always show prompts. If piping the output
prior to this patch, the prompt would not appear due to buffering.

Approved by: flz


178699 30-Apr-2008 sam

o add indirect array for field indices as the # stats is > 127 and doesn't
fit in a signed char
o change default output to something more useful for sta mode
o futz w/ various field names and widths; need to do full pass over this stuff


178698 30-Apr-2008 sam

update for new events


178681 29-Apr-2008 rpaulo

Add new directories, scripts and wlanwds. Introduced with vap support.


178680 29-Apr-2008 rpaulo

Add missing 't'.

Approved by: sam


178571 26-Apr-2008 jeff

- Remove cumbersome and inaccurate attempt at synchronizing the timestamps
post collection. This is too error prone and introduces uncertainty into
the timing. We'll simply have to require synchronized TSCs to run
schedgraph on MP.

Sponsored by: Nokia


178456 24-Apr-2008 gnn

Updated the test to handle multiple sinks. The sinks cut their
transmissions by the number of them running so that they do not
overwhelm the source.

Added a simple shell script to kick off sinks on multiple hosts as
well as a source on the host where the shell script is run. The script
also collects the output of all the sinks and the source into files named
for the host on which the tests are run. A date is appended to each output
file to make it unique per run.


178431 23-Apr-2008 scf

Add four utility functions related to struct grp processing modeled in-part
after similar calls related to struct pwd in libutil/pw_util.c:
- gr_equal()
Perform a deep comparison of two struct grp's. It does a thorough, yet
unoptimized comparison of all the members regardless of order.

- gr_make()
Create a string (see group(5)) from a struct grp.

- gr_dup()
Duplicate a struct grp. Returns a value that is a single contiguous
block of memory.

- gr_scan()
Create a struct grp from a string (as produced by gr_make()).

MFC after: 3 weeks


178430 23-Apr-2008 scf

Differentiate in the tests against getenv() between an empty string and a
NULL by having the test program return *NULL* for NULL's (no existing
variable) instead of an empty string (variable with empty value).


178369 21-Apr-2008 phk

Add a small script that will examine all files which exist on /cfg and
if they are different in /etc, copy them to /cfg.

Submitted by: mat


178361 20-Apr-2008 sam

test scripts for vaps and other 802.11 features

Supported by: Hobnob and Marvell


178360 20-Apr-2008 sam

add dwds test app

Supported by: Hobnob
Obtained from: Atheros (earlier version)


178359 20-Apr-2008 sam

update for vaps

Supported by: Hobnob


178141 12-Apr-2008 das

Updates for changes in the way printf() handles hex floating point
numbers.


177936 05-Apr-2008 ceri

Correct typo.


177876 03-Apr-2008 das

Add some tests for fma(), fmaf(), and fmal().


177872 03-Apr-2008 gnn

Add a manual page and a Makefile.

Add code to reflect packets back from the sink so that we can measure
round trip at the source.


177767 30-Mar-2008 das

Test remainderl() and remquol() as well.


177763 30-Mar-2008 das

Add some minimal tests for csqrtl().


177714 29-Mar-2008 ru

Remove options MK_LIBKSE and DEFAULT_THREAD_LIB now that we no longer
build libkse. This should fix WITHOUT_LIBTHR builds as a side effect.


177638 26-Mar-2008 dfr

Fix the __FreeBSD_version check.


177636 26-Mar-2008 dfr

Add some regression tests for posix record locks.


177552 24-Mar-2008 antoine

Don't remove usr/include/fs/nwfs and usr/include/netncp, as they are always
recreated during installworld (they are in BSD.include.dist).

Reported by: Pawel Worach
Approved by: rwatson (mentor)
X-MFC: with revision 1.13


177504 22-Mar-2008 sam

sync w/ p4: minor cleanups to improve msgs


177498 22-Mar-2008 stefanf

Add a test case for options.c revision 1.26.


177453 20-Mar-2008 remko

Alert properly when we have stale mounts left after interupting
a tinybsd build. If we do not do this, we can accidentally remove
critical files from directories like /lib (if mounted).

PR: misc/121763
Submitted by: Richard Arends < richard at unixguru dot nl >
MFC after: 3 days


177448 20-Mar-2008 des

"track" is a script I've used for ages to track the progress of a build.
Unlike whereintheworld, it continuously monitors the log file; it also
produses less verbose output.


177388 19-Mar-2008 gnn

Add the correct license.


177387 19-Mar-2008 gnn

A multicast test. The mctest program acts as both a source and a sink
for multicast packets. Parameters for the interface, packet size,
number of packets, and interpacket gap may be given on the command line.
The sink records how many packets were missed, and at what time each
packet arrived.


177154 13-Mar-2008 obrien

Vim function to style(9).
Issue ':call FreeBSD_Style()' while editing a file.

Submitted by: scf


176957 08-Mar-2008 antoine

Introduce a new F_DUP2FD command to fcntl(2), for compatibility with
Solaris and AIX.
fcntl(fd, F_DUP2FD, arg) and dup2(fd, arg) are functionnaly equivalent.
Document it.
Add some regression tests (identical to the dup2(2) regression tests).

PR: 120233
Submitted by: Jukka Ukkonen
Approved by: rwaston (mentor)
MFC after: 1 month


176955 08-Mar-2008 antoine

Add some checks for amd64 target around usr/lib32 libraries, missed in
previous commit.

Approved by: rwatson (mentor)
X-MFC: with revision 1.13


176934 08-Mar-2008 remko

Improve handling of the tinybsd application wrt ports. Ports that
have dependencies or need to install a new user/group, are not
problematic anymore.

PR: 121367
Submitted by: Richard Arends < richard at unixguru dot nl >
MFC after: 3 days


176748 02-Mar-2008 das

Don't run tests that assume <= 64-bit precision on machines with quad
precision.


176676 01-Mar-2008 scf

Remove a dereference. It was unintended and a no-op.

Use the correct value of errno. Although the errno value passed into
printf() follows the *env() call, it is not guaranteed to be the errno
from that call. When I wrote the regression tester, the environment I
used did pass the errno from the call. Consolidate the print for the
return code and errno into a function in the process of fixing this.

Approved by: wes (mentor)


176662 29-Feb-2008 antoine

Add files to remove when MK_GCOV, MK_IPX or MK_NCP are defined.

Note: it may be a good idea to deduce obsolete usr/lib32/ files from
obsolete lib/ and usr/lib/ files.

PR: 120492
PR: 121118
PR: 121121
Submitted by: KAMIYA Satosi, Richard Tector
Approved by: rwatson (mentor)
MFC after: 1 month


176522 24-Feb-2008 stefanf

Add a regression test for cd.c's revision 1.35.


176407 19-Feb-2008 ru

getopt(3) returns -1, not EOF.


176379 18-Feb-2008 das

Some basic regression tests for {sin,cos,tan}{,f,l}().


176375 17-Feb-2008 das

There are 3 tests here, not 2.


176294 14-Feb-2008 rwatson

Add open_to_operation, a security regression test that opens files with
various open flags and then tests various operations to make sure that
they are properly constrained by open flags. Various I/O mechansms
are tried, including aio if compiled into the kernel or loaded as a
module. There's more to be done here but it's a useful start, running
about 220 individual tests.

This is in support of FreeBSD-SA-08:03.sendfile.


176050 06-Feb-2008 des

mutex_islocked_np -> mutex_isowned_np


176043 06-Feb-2008 silby

This is a regression test to verify the proper behavior of IP ID generation
code. It will push 200000 packets, then report back what the min and max
periods it saw for different IDs were.


175979 05-Feb-2008 matteo

Add missing includes and correct argument to sysctlbyname

PR: misc/120274
MFC after: 1 week


175969 04-Feb-2008 des

After careful consideration (and a brief discussion with attilio@), change
the semantics of pthread_mutex_islocked_np() to return true if and only if
the mutex is held by the current thread.

Obviously, change the regression test to match.

MFC after: 2 weeks


175957 03-Feb-2008 des

Add a regression test for pthread_mutex_islocked_np().

MFC after: 2 weeks


175821 30-Jan-2008 rwatson

Add unix_sorflush, a regression test for the following scenario:

- Process (a) is blocked in read on a socket waiting on data.
- Process (b) is blocked in shutdown() on a socket waiting on (a).
- Process (c) delivers a signal to (b) interrupting its wait.

When the signal is delivered, the kernel panics as sblock() fails in
sorflush(). Even if it didn't panic, shutdown() would block potentially
indefinitely waiting for recv() to succeeded. Fixes to follow.

Reported by: Jos Backus <jos at catnook dot com>


175663 25-Jan-2008 jhb

Update the timestamp regexps in syncstamp() and monostamp() for > 99999
traces where there isn't any leading whitespace before the record number
in the ktrdump output.


175539 21-Jan-2008 obrien

Remove 5.x and 6.x cruft - source upgrades to RELENG_8 from versions prior
to RELENG_7 are not supported.


175469 18-Jan-2008 brueffer

Remove files conditional on the obsolete MK_FORTRAN knob. They are already
listed in ObsoleteFiles.inc anyway.

Reported by: David Wolfskill
Approved by: rwatson (mentor)
MFC after: 3 days


175467 18-Jan-2008 das

expm1(-big) generates an inexact exception but not underflow.


175463 18-Jan-2008 das

Add some regression tests for libm's exponential functions. These
mostly just test corner cases rather than accuracy. Some of the
tests don't pass right now if you compile libm at -O2 due to gcc
constant-folding some things that it shouldn't. I'll fix that
shortly.


175406 17-Jan-2008 emaste

Eliminate warnings by adding headers.


175383 16-Jan-2008 jhb

Add a set of regression tests for the POSIX shm API (shm_open(2) and
shm_unlink(2)).


175364 15-Jan-2008 brueffer

WITHOUT_FORTRAN was removed some time ago. Regen src.conf.5.

PR: 119562
Submitted by: Daniel Rucci <dan@rucci.org>
MFC after: 3 days


175310 14-Jan-2008 das

Tests for lrintl() and llrintl(). I didn't add anything specially
tailored for the long double format; instead, I just modified the existing
tests to test lrintl() and llrintl() as well.


175306 13-Jan-2008 kris

* Remove KTR_CPUMASK, it is not correct to set this

* Explain why 32768 entries is usually not enough

* Increase the scaling ratio to 10 to deal with 32-bit overflows that
can occur in calculating the canvas offsets


175289 13-Jan-2008 keramida

Attach the tr(1) regression tests to the build.

Approved by: das, dds


175288 13-Jan-2008 keramida

Add a new set of regression tests, for the tr(1) utility.

Approved by: das, dds


175258 12-Jan-2008 simon

- Add support for using swap backed md(4) devices for building the
disk image. In some cases this can be a significant speed-up, if
most of the image can be kept in RAM while being populated.

On the 2GB image I'm currently working with, the build time,
excluding buildworld/buildkernel, goes from ~17 minutes to ~6
minutes.

This is not enabled by default, as it might have the opposite effect
on low-memory systems.

- During the generation of the image file be a bit more verbose in the
log file so it is possible to see what's being done.

- Add a NANO_DISKIMGDIR variable which makes it possibly to place the
final images somewhere other than ${MAKEOBJDIRPREFIX}. The default
value for NANO_DISKIMGDIR is $MAKEOBJDIRPREFIX.

Go for it: phk


175015 31-Dec-2007 rwatson

Add regression tests for UNIX domain socket garbage collection. Should be
run from single-user mode, as they look at global open file and inflight
descriptor counts to check for leaks.


174936 27-Dec-2007 simon

- Fix calculation of data slice size when NANO_DATASIZE=-1.

Due to a typo, setting NANO_DATASIZE=-1 resulted in the data slice
being the same size as entire image instead of the size of the
remaining space on the image.

- Fix detection of overcommit of the slices.

This fix mainly result in a nicer error than when newfs etc. tries to
write beyond the end of the disk image.

MFC after: 2 weeks
X-MFC after: RELENG_7 is open again


174811 20-Dec-2007 phk

Ministat was repocopied to src/usr.bin/ministat


174773 19-Dec-2007 dds

Update the number of reported tests to keep prove(1) happy.


174772 19-Dec-2007 dds

Correct the "move file from directory to existing directory" test for
cross-device moves.


174748 18-Dec-2007 dds

Portability improvements to investigate behavior of other OSs.
Now works under Solaris and Linux.


174747 18-Dec-2007 dds

Add more tests. All rename(2)-based tests now succeed.
The performance of the cross-device equivalents is under investigation.


174692 16-Dec-2007 das

Fix an amusing typo that has prevented this from compiling since 2004.


174691 16-Dec-2007 das

Don't try the long double tests on i386. Our reduced precision
can cause them to fail.


174688 16-Dec-2007 das

Remove another Alpha remnant.


174685 16-Dec-2007 das

Regression tests for nan{,f,l}().


174658 16-Dec-2007 dds

Verify that the moved source is no longer there.


174657 16-Dec-2007 dds

Regression tests for upcoming makeup of mv.
Case 20 corresponds to PR bin/118367.


174656 16-Dec-2007 dds

Make the reported number of tests match their actual number.
This fixes the reporting under prove(1)


174655 16-Dec-2007 dds

cd to the correct directory so that the tests can be run from prove(1)


174619 15-Dec-2007 das

Regression tests for csqrt(3).


174571 13-Dec-2007 sam

use ATH environment variable (when set) as the default interface name


174570 13-Dec-2007 sam

Some overdue tlc:
o push include paths to the Makefile
o use the AFTER trick to simplify adding new items
o prepare stat blocks for additional data
o align values for verbose output
o fillin some missing stats

MFC after: 1 week


174550 12-Dec-2007 ru

Fix markup nits.


174549 12-Dec-2007 ru

Option depencies are (again) tracked automatically.


174548 12-Dec-2007 ru

- Fix setting of MK_GSSAPI option by bsd.own.mk; its value should
default to the value of MK_KERBEROS unless set explicitly by
WITH_GSSAPI/WITHOUT_GSSAPI. (This introduces another type of
MK_* variables which itself is questionable.)

- Teach tools/build/options/makeman script that generates the
src.conf(5) manpage about the new type of MK_* variables.

- Fix broken logic in lib/Makefile.


174519 10-Dec-2007 dougb

Hide the building and installation of libgssapi behind the
WITHOUT_KERBEROS knob. While GSS can be used for other things
some third party software (most notably ports/x11/kdelibs3)
takes the presence of libgssapi as an indication that kerberos
is available, and attempts to link with the kerberos libs. If
they are not available, the build will fail.

Because you might want to use GSS but not kerberos, add a knob
to re-enable it if WITHOUT_KERBEROS is present.

Document the new knob, and the new behavior of WITHOUT_KERBEROS.

Not objected and/or generally agreed to by: freebsd-arch

Problem discussed/analyzed in:
PR: ports/116484


174497 09-Dec-2007 dougb

Add a reasonable-sounding description of the WITHOUT_INSTALLLIB knob.


174495 09-Dec-2007 das

Remove some test instrumentation. (The Symbol.map changes broke it anyway.)


174494 09-Dec-2007 das

Fixes to avoid overzealous constant folding.


174491 09-Dec-2007 das

gcc 4 does some overzealous constant folding, and since it doesn't
support FENV_ACCESS, that was causing this test to fail. Use a volatile
to avoid the constant folding.


174245 04-Dec-2007 sam

update copyrights


174244 04-Dec-2007 sam

update copyright's


174228 03-Dec-2007 das

Make sure we set the locale to "C" when testing thousands' separator
support, rather than just "", which refers to the system default based
on the environment.


174205 03-Dec-2007 das

Tests for rounding, and for the leading 0's bug.


174033 28-Nov-2007 bz

Convert errx(-1, ..., strerror(errno)) to err(-1, ...).

Discussed with: rwatson


174032 28-Nov-2007 bz

Add support for tcpmd5 tests.
Add README.tcpmd5 to describe how to build a simple test setup
and run tests.

Convert compile time options to run time options [1].

Discussed with: rwatson
Suggested by: rwatson [1]


173743 19-Nov-2007 sam

o expand usage comments; add cut&paste items for bozo's like me
o add things i want to TODO list
o add Record entry to each event which back-maps to the line # in the ktr file;
useful for finding local context when the ktr file has lots of items that
schedgraph doesn't grok
o add missing KTR_SCHED event handlers
o expose Counter max value through a ymax method for widget building
o show timestamps in records rejected 'cuz time goes backwards


173679 16-Nov-2007 bz

Remove empty setup and cleanup functions for the pfkey test.

Add regression tests for privileged and supposedly unprivileged
IP_IPSEC_POLICY,IPV6_IPSEC_POLICY setsockopt cases.

We may need to review the current 'good' results to make
sure they reflect what we really want.

Discussed with: rwatson
Reviewed by: rwatson


173578 13-Nov-2007 bz

In sys/netipsec/keysock.c rev. 1.19 a missing priv check was added.
Before that non-su users were able to open pfkey sockets as well.

Add a regression test so we can detect such problems in an automated way
in the future.


173568 12-Nov-2007 jeff

- Fix the ktr header regexp so we match lines with very large indexes.
- Add support for messages where cpu load is added to a remote cpu.
- print unmatched lines to stdout


173400 06-Nov-2007 danger

s/maybe/may be/

MFC after: 3 days


173306 03-Nov-2007 sam

o sync w/ net80211 changes
o redo numbering scheme to simplify changing the table


173305 03-Nov-2007 sam

align stats printed out w/o any args

MFC after: 1 week


173304 03-Nov-2007 sam

o add -o ampdu shorthand for viewing most useful ampdu stats
o remove noise from default stat list

MFC after: 1 week


173139 29-Oct-2007 rwatson

Merge Neterion if_nxge driver version 2.0.9.11230 with the following
changes:

01 - Enhanced LRO:
LRO feature is extended to support multi-buffer mode. Previously,
Ethernet frames received in contiguous buffers were offloaded.
Now, frames received in multiple non-contiguous buffers can be
offloaded, as well. The driver now supports LRO for jumbo frames.

02 - Locks Optimization:
The driver code was re-organized to limit the use of locks.
Moreover, lock contention was reduced by replacing wait locks
with try locks.

03 - Code Optimization:
The driver code was re-factored to eliminate some memcpy
operations. Fast path loops were optimized.

04 - Tag Creations:
Physical Buffer Tags are now optimized based upon frame size.
For better performance, Physical Memory Maps are now re-used.

05 - Configuration:
Features such as TSO, LRO, and Interrupt Mode can be configured
either at load or at run time. Rx buffer mode (mode 1 or mode 2)
can be configured at load time through kenv.

06 - Driver Statistics:
Run time statistics are enhanced to provide better visibility
into the driver performance.

07 - Bug Fixes:
The driver contains fixes for the problems discovered and
reported since last submission.

08 - MSI support:
Added Message Signaled Interrupt feature which currently uses 1
message.

09 Removed feature:
Rx 3 buffer mode feature has been removed. Driver now supports 1,
2 and 5 buffer modes of which 2 and 5 buffer modes can be used
for header separation.

10 Compiler warning:
Fixed compiler warning when compiled for 32 bit system.

11 Copyright notice:
Source files are updated with the proper copyright notice.

MFC after: 3 days
Submitted by: Alicia Pena <Alicia dot Pena at neterion dot com>,
Muhammad Shafiq <Muhammad dot Shafiq at neterion dot com>


173009 26-Oct-2007 pjd

Hide geli warnings about sector size beeing bigger than the page size when
doing regression testing.


172803 19-Oct-2007 ru

cached -> nscd


172498 09-Oct-2007 obrien

Mdoc fix.

Submitted by: ru
Approved by: re(implicit)


172495 09-Oct-2007 obrien

Correct lib name.

Submitted by: ru
Approved by: re(kensmith)


172491 09-Oct-2007 obrien

Repo copy libpthreads to libkse.
This introduces the WITHOUT_LIBKSE nob,
and changes WITHOUT_LIBPTHREADS to mean with neither threading libs.
Approved by: re(kensmith)


172440 04-Oct-2007 stefanf

The exit status of a case statement where none of the patterns is matched
is supposed to be 0, not the status of the previous command.

Reported by: Eygene Ryabinkin
PR: 116559
Approved by: re (gnn)


172400 01-Oct-2007 ru

- Add cddl/lib to the list of library directories.
- Add /bin to PATH to suppress a harmless warning from a
makefile that sets a variable using cat(1).

Approved by: re (kensmith)


172399 01-Oct-2007 ru

The shell_1_sh test was failing with "make -jX".

Approved by: re (kensmith)


172398 01-Oct-2007 ru

MK_LIBTHR was misspelled.

Approved by: re (kensmith)


172394 30-Sep-2007 marius

Make the PCI code aware of PCI domains (aka PCI segments) so we can
support machines having multiple independently numbered PCI domains
and don't support reenumeration without ambiguity amongst the
devices as seen by the OS and represented by PCI location strings.
This includes introducing a function pci_find_dbsf(9) which works
like pci_find_bsf(9) but additionally takes a domain number argument
and limiting pci_find_bsf(9) to only search devices in domain 0 (the
only domain in single-domain systems). Bge(4) and ofw_pcibus(4) are
changed to use pci_find_dbsf(9) instead of pci_find_bsf(9) in order
to no longer report false positives when searching for siblings and
dupe devices in the same domain respectively.
Along with this change the sole host-PCI bridge driver converted to
actually make use of PCI domain support is uninorth(4), the others
continue to use domain 0 only for now and need to be converted as
appropriate later on.
Note that this means that the format of the location strings as used
by pciconf(8) has been changed and that consumers of <sys/pciio.h>
potentially need to be recompiled.

Suggested by: jhb
Reviewed by: grehan, jhb, marcel
Approved by: re (kensmith), jhb (PCI maintainer hat)


172240 19-Sep-2007 gnn

Update structure name to follow the new IPsec code.

Reported by: phk
Approved by: re


172106 09-Sep-2007 rwatson

Enhance and expand kernel privilege regression tests in support of
work present in FreeBSD 7.0 to refine the kernel privilege model:

- Introduce support for jail as a testing variable, in order to
confirm that privileges are properly restricted in the jail
environment.

- Restructure overall testing approach so that privilege and jail
conditions are set in the testing infrastructure before tests
are invoked, and done so in a custom-created process to isolate
the impact of tests from each other in a more consistent way.

- Tests now provide setup and cleanup hooks that occur before and
after the test runs.

- New privilege tests are now present for several audit
privileges, several credential management privileges, dmesg
buffer reading privilege, and netinet raw socket creation.

- Other existing tests are restructured and generally improved as
a result of better framework structure and jail as a variable.
For exampe, we now test that certain sysctls are writable only
outside jail, while others are writable within jail. On a
similar note, privileges relating to setting UFS file flags are
now better exercised, as with the right to chmod and utimes
files.

Approved by: re (bmah)
Obtained from: TrustedBSD Project


172031 01-Sep-2007 pjd

Add support for Camellia encryption algorithm.

PR: kern/113790
Submitted by: Yoshisato YANAGISAWA <yanagisawa@csg.is.titech.ac.jp>
Approved by: re (bmah)


171994 27-Aug-2007 remko

Add WITHOUT_ZONEINFO to the build options and regenerate src.conf.5

Reminded by: ceri
Approved by: re (bmah)
Approved by: imp (mentor)


171986 26-Aug-2007 phk

Add option to not fill second code image, this makes the full disk
image compress much better.

Respect pkg_add's internal 200 package limitation.

Approved by: re (bmah)
Spelling fixes by: bmah


171923 22-Aug-2007 remko

Bring in two fixes for TinyBSD:

- Add the bind mtree to the TinyBSD build so that files
can be installed there (else the build fails)
- Change GEOM_GPT to GEOM_PART_GPT since that had been
renamed in current. The kernel configuration provided
by TinyBSD will not build without these changes.

PR: misc/115484
PR: misc/115405
Submitted by: Richard Arends <richard at unixguru dot nl>
Approved by: re (bmah)
Approved by: imp (mentor)


171801 10-Aug-2007 delphij

New regression test updates for rename, etc.

Obtained from: NetBSD
Approved by: re (tmpfs blanket)


171707 03-Aug-2007 des

Add regression tests for flopen(3).

Approved by: re (blanket)


171636 28-Jul-2007 thompsa

wlandebug has been moved to the base system.

Approved by: re (rwatson)


171525 20-Jul-2007 scf

Added environ-replacement detection. For programs that "clean" (i.e., su)
or replace (i.e., zdump) the environment after a call to setenv(), putenv()
or unsetenv() has been made, a few changes were made.
- getenv() will return the value from the new environ array.
- setenv() was split into two functions: __setenv() which is most of the
previous setenv() without checks on the name and setenv() which
contains the checks before calling __setenv().
- setenv(), putenv() and unsetenv() will unset all previous values and
call __setenv() on all entries in the new environ array which in turn
adds them to the end of the envVars array. Calling __setenv() instead
of setenv() is done to avoid the temporary replacement of the '=' in a
string with a NUL byte. Some strings may be read-only data.

Added more regression checks for clearing the environment array.

Replaced gettimeofday() with getrusage() in timing regression check for
better accuracy.

Fixed an off-by-one bug in __remove_putenv() in the use of memmove(). This
went unnoticed due to the allocation of double the number of environ
entries when building envVars.

Fixed a few spelling mistakes in the comments.

Reviewed by: ache
Approved by: wes
Approved by: re (kensmith)


171493 19-Jul-2007 bz

Make clear that WITHOUT_TOOLCHAIN cannot be applied to build targets.

PR: 114220
Reviewed by: simon
Approved by: re (hrs)


171486 18-Jul-2007 pjd

Make fstest work out-of-the-box on Solaris:
- Solaris' setgroups(2) doesn't change process' effective gid, so set it
explicitly.
- POSIX doesn't define O_NOFOLLOW. FreeBSD returns EMLINK when target is
a symbolic link, but Solaris returns ELOOP then.
- Solaris doesn't define O_SHLOCK and O_EXLOCK flags.

Approved by: re (rwatson)


171354 11-Jul-2007 delphij

- Chase for crypto_if.m -> crytpodev_if.m rename in order to
fix doxygen generation.
- Add some missing *_if.m files.

Approved by: re (hrs)


171344 10-Jul-2007 flz

Fix commit mail retrieval when using message-id.

Submitted by: novel
Approved by: re (hrs)


171285 06-Jul-2007 delphij

Add a test case for sed(1) regression - we should not ignore case
when not being asked to do so.

Approved by: re (hrs)


171206 04-Jul-2007 ssouhlal

Add case-insensitive matching to sed, using the 'I' flag, similarly to GNU sed.
For example,
sed /foo/Id
sed s/foo/bar/Ig

Reviewed by: dds
Approved by: re (hrs)


171195 04-Jul-2007 scf

Significantly reduce the memory leak as noted in BUGS section for
setenv(3) by tracking the size of the memory allocated instead of using
strlen() on the current value.

Convert all calls to POSIX from historic BSD API:
- unsetenv returns an int.
- putenv takes a char * instead of const char *.
- putenv no longer makes a copy of the input string.
- errno is set appropriately for POSIX. Exceptions involve bad environ
variable and internal initialization code. These both set errno to
EFAULT.

Several patches to base utilities to handle the POSIX changes from
Andrey Chernov's previous commit. A few I re-wrote to use setenv()
instead of putenv().

New regression module for tools/regression/environ to test these
functions. It also can be used to test the performance.

Bump __FreeBSD_version to 700050 due to API change.

PR: kern/99826
Approved by: wes
Approved by: re (kensmith)


171131 01-Jul-2007 thompsa

Remove wicontrol(8) from the base system. Using wicontrol to configure an
interface has been deprecated since 5.1, wi(4) wireless interfaces are managed
via the net80211 stack and ifconfig.

Approved by: re (rwatson)


171095 29-Jun-2007 sam

Neterion Xframe 10GbE Server/Storage adapter driver.

The nxge driver provides support for Neterion Xframe-I and Xframe-II
adapters. The driver supports TCP Segmentation Offload (TSO/LSO),
Jumbo frames (5 buffer mode), Header separation (2 and 3 Receive
buffer modes), VLAN, and Promiscuous mode.

Submitted by: Neterion
Reviewed by: rwatson
Approved by: re (kensmith)


171046 26-Jun-2007 delphij

Fix a obsecure coredump while testing with tmpfs on amd64.

Approved by: re (kensmith)


171030 25-Jun-2007 delphij

id generation is now handled by uma(9) subsystem,
so remove the (now) irrevelent test case.

Requested by: Howard Su
Approved by: re (tmpfs blanket)


171023 25-Jun-2007 rafan

- Remove UMAP filesystem. It was disconnected from build three years ago,
and it is seriously broken.

Discussed on: freebsd-arch@
Approved by: re (mux)


171016 24-Jun-2007 bushman

- Bugs in gethostbyXXX/getipnodebyXXX regression tests fixed.
Tests for getipnodebyXXX functions now cover most number of flags
combinations.

Approved by: re (kensmith), brooks (mentor)


170809 16-Jun-2007 delphij

MFp4: Add regression tests for tmpfs.

Obtained from: NetBSD via p4
Submitted by: Howard Su


170737 14-Jun-2007 harti

Make the order of tests the same for user and kernel. Use the natural
layer order from bottom to top.


170644 13-Jun-2007 sepotvin

Options spring cleanup:
- Add and document the KVM and KVM_SUPPORT options that
are needed for the ifmcstats(3) makefile
- Garbage collect unused variables
- Add missing inclusion of bsd.own.mk where needed

Approved by: kan (mentor)
Reviewed by: ru


170637 12-Jun-2007 phk

Recoverdisk is now part of the base system.


170614 12-Jun-2007 bms

Add regression test for SSM code.


170613 12-Jun-2007 bms

Import rewrite of IPv4 socket multicast layer to support source-specific
and protocol-independent host mode multicast. The code is written to
accomodate IPv6, IGMPv3 and MLDv2 with only a little additional work.

This change only pertains to FreeBSD's use as a multicast end-station and
does not concern multicast routing; for an IGMPv3/MLDv2 router
implementation, consider the XORP project.

The work is based on Wilbert de Graaf's IGMPv3 code drop for FreeBSD 4.6,
which is available at: http://www.kloosterhof.com/wilbert/igmpv3.html

Summary
* IPv4 multicast socket processing is now moved out of ip_output.c
into a new module, in_mcast.c.
* The in_mcast.c module implements the IPv4 legacy any-source API in
terms of the protocol-independent source-specific API.
* Source filters are lazy allocated as the common case does not use them.
They are part of per inpcb state and are covered by the inpcb lock.
* struct ip_mreqn is now supported to allow applications to specify
multicast joins by interface index in the legacy IPv4 any-source API.
* In UDP, an incoming multicast datagram only requires that the source
port matches the 4-tuple if the socket was already bound by source port.
An unbound socket SHOULD be able to receive multicasts sent from an
ephemeral source port.
* The UDP socket multicast filter mode defaults to exclusive, that is,
sources present in the per-socket list will be blocked from delivery.
* The RFC 3678 userland functions have been added to libc: setsourcefilter,
getsourcefilter, setipv4sourcefilter, getipv4sourcefilter.
* Definitions for IGMPv3 are merged but not yet used.
* struct sockaddr_storage is now referenced from <netinet/in.h>. It
is therefore defined there if not already declared in the same way
as for the C99 types.
* The RFC 1724 hack (specify 0.0.0.0/8 addresses to IP_MULTICAST_IF
which are then interpreted as interface indexes) is now deprecated.
* A patch for the Rhyolite.com routed in the FreeBSD base system
is available in the -net archives. This only affects individuals
running RIPv1 or RIPv2 via point-to-point and/or unnumbered interfaces.
* Make IPv6 detach path similar to IPv4's in code flow; functionally same.
* Bump __FreeBSD_version to 700048; see UPDATING.

This work was financially supported by another FreeBSD committer.

Obtained from: p4://bms_netdev
Submitted by: Wilbert de Graaf (original work)
Reviewed by: rwatson (locking), silence from fenner,
net@ (but with encouragement)


170608 12-Jun-2007 yar

Don't forget to clear out the hold space for each subsequent file
when in -i mode so that each file gets a clean context of its own.

Add a regression test for the bug.

Tested with: regression tests


170607 12-Jun-2007 phk

Add cust_pkg() which iteratively tries to install packages.

Move /usr/local/etc to /etc/local so that installed packages can be frobbed.

Use a more compatible 512MB card geometry.


170535 11-Jun-2007 sam

add 11n stats


170534 11-Jun-2007 sam

o add 11n knob
o gcc42 stuff


170448 09-Jun-2007 grog

Updated tests for changed features.

Submitted by: edwin@


170324 05-Jun-2007 phk

Default to R/O root filesystem


170322 05-Jun-2007 phk

Fix the fstab on the second image, just like updatep2.sh does.


170261 04-Jun-2007 grog

Use correct comment syntax for $FreeBSD$. This file gets put through
cpp, not a shell script.

Pointy hat to: grog


170231 03-Jun-2007 grog

Add regression tests for calendar.

Submitted by: edwin@
PR: bin/113275
MFC after: 2 weeks


169928 24-May-2007 dds

Add sparc64 regression test files.

Submitted by: Carl Johan Gustavsson


169927 24-May-2007 dds

Modify file generation instructions to remove the tty field:
the mapping from number to name differs between systems,
and will cause tests to fail.


169921 23-May-2007 dds

Fix the procedure for generating the test summary files.
Document the procedure for obtaining an appropriately old version of sa.


169856 22-May-2007 dds

Regression tests for sparc64 record formats.

Submitted by: Carl Johan Gustavsson


169855 22-May-2007 dds

Regression tests for amd64 file and record formats.

Submitted by: Larry Rosenman (who also provided access to a testing host)


169854 22-May-2007 dds

Regression tests for the new and legacy process accounting formats.


169852 22-May-2007 dds

Document the .in .out file naming conventions adopted in commit_prep.pl's
exclusions list for header checking.


169851 22-May-2007 dds

Test the integer-arithmetic float conversions encode_timeval and encode_long
in kern_acct.c.


169724 19-May-2007 kan

Introduce WITHOUT_SSP option that allows users to exclude LGPLed
libssp from the build.


169649 17-May-2007 deischen

Add a description for the WITHOUT_SYMVER option.


169523 13-May-2007 rwatson

Add regression tests for ethers(3) functions, including new _r variants.
Four tests currently fail:

test_ether_line_bad_1() and test_ether_line_bad_2() due to bugs in
ether_line(3).

test_ether_ntohost() and test_ether_hostton() due to not being fully
implemented tests.


169311 06-May-2007 rwatson

Add a regression test to detect if waiting on the I/O serialization lock
on socket buffers is interruptible or not, which detacts the regression I
introduced recently in 7-CURRENT (spotted by alfred). This test passes
in older -CURRENT, and with the as-yet uncommitted sx_xlock_sig and
sblock fix patches.


168972 23-Apr-2007 phk

Improve reporting in recoverdisk a good deal.

Submitted by: Ulrich Spoerlein <uspoerlein@gmail.com>
PR: 111630


168966 23-Apr-2007 sam

o fix a buffer overflow in save_key() that occurs with 104-bit wep
o make some variables parameters (frequency of crack, and maximum channel)
o try to spoof mac if association fails

Submitted by: Andrea Bittau <a.bittau@cs.ucl.ac.uk>


168940 22-Apr-2007 kris

Add some notes clarifying usage and a couple of known bugs


168925 21-Apr-2007 mtm

Regression tests for recent changes to inet6_rth_* family of functions
regarding RFC3542 compliance.


168921 21-Apr-2007 yar

Change the semantics of -i (in-place editing) so that it treats
each file independently from other files. The new semantics are
desired in the most of practical cases, e.g.: delete lines 5-9
from each file.

Keep the previous semantics of -i under a new option, -I, which
uses a single continuous address space covering all files to edit
in-place -- they are too cool to just drop them.

Add regression tests for -i and -I.

Approved by: dds
Compared with: GNU sed
Discussed on: -hackers
MFC after: 2 weeks


168912 20-Apr-2007 pjd

Test sending 0 bytes.


168911 20-Apr-2007 pjd

Fix length calculation.


168894 20-Apr-2007 adrian

NanoBSD modifications:

* Break out the boot0 loader selection into a variable - NANO_BOOTLOADER -
so people like me with VGA consoles can override the default (which is
to use boot0sio)
* Put the boot0 configuration options in NANO_BOOT0CFG in case you want
to override the defaults.
* Modify nanobsd.8 to reflect the changes and hint the console default is
serial.

MFC after: 2 weeks


168855 19-Apr-2007 des

Valid error codes for err() and errx() are 1..255.
The correct format specifier for ssize_t is %zd.


168854 19-Apr-2007 pjd

Add more tests to verify last sendfile(2) breakage: test sending more
than a page size and nbytes=0.


168754 15-Apr-2007 bushman

Committing regression tests for all implemented nsswitch databases.
Detailed description and instructions are in the README file.
This work had been basically done during GSoC 2006.

Approved by: brooks (mentor)


168662 12-Apr-2007 bms

Nuke ipblock. A more complete multicast regression test suite is on the way.


168548 09-Apr-2007 bms

Fix a bug whereby group addresses were incorrectly computed in the test.

[Since the change to strict refcounting for in_multi objects, this test
began to fail; formerly the refcount was a count of the number of requests
for a given address, NOT a count of pointers to the object.]


168538 09-Apr-2007 sam

correct copyright attribution; there was no copyright in the patches
from Andrea so I assigned him ownership; this corrects that

Submitted by: Andrea Bittau <a.bittau@cs.ucl.ac.uk>


168502 08-Apr-2007 sam

Due to the recent "aircrack-ptw" WEP cracking discovery, I thought
that it might be worth fixing a couple of bugs in wesside and making
it use the new cracking technique. I think this enhancement makes
the tool quite usable. It is possible to recover keys in only a
couple of minutes.

* Fix ACKs. Firmware will ACK data [just set the MAC addr correctly].
* Fix RX routines. Process all packets read().
* Use aircrack-ptw [built-in] rather than external aircrack.
* Log data in pcap format so that it may be used by others [e.g. aircrack-ng].

Submitted by: Andrea Bittau <a.bittau@cs.ucl.ac.uk>


168444 06-Apr-2007 bms

Add a small test program for the additional socket options which
RFC 3678 (Source-specific Multicast API) brings to FreeBSD.


168409 06-Apr-2007 pjd

Connect ZFS to the build.


168278 02-Apr-2007 jhb

Fix a fd leak in socketpair():
- Close the new file objects created during socketpair() if the copyout of
the new file descriptors fails.
- Add a test to the socketpair regression test for this edge case.


168273 02-Apr-2007 jhb

Add another fd leak test for accept() I used to test the fix in 1.234 of
sys/kern/uipc_syscall.c.


168259 02-Apr-2007 yar

Logically separate the complex `hanoi' and `math' tests from basic tests.


168258 02-Apr-2007 yar

Don't forget to close the range if we branched over its end
and had no chance to match it by the 2nd address precisely.
Otherwise the unclosed range would bogusly extend to the end
of stream.

Add a basic regression test for the bug fixed. (This change
also fixes the more complex case 5.3 from `multitest.t'.)

Compared with: SUN and GNU seds
Tested by: regression tests
MFC after: 1 week


168257 02-Apr-2007 yar

Today SUN and GNU seds fully agree on test 5.3 and behave
in a more reasonable way than BSD sed does: they properly
close the range even if we branched over its end. No doubt,
the range `1,5' should not match lines from 9 through 14.


168211 01-Apr-2007 yar

This trivial change should fix at least 3 similar bugs. All of
them are related to the `c' function's need to know if we are at
the actual end of the address range. (It must print the text not
earlier than the whole pattern space was deleted.) It appears the
only sed function with this requirement.

There is `lastaddr' set by applies(), which is to notify the `c'
function, but it can't always help because it's false when we are
hitting the end of file early. There is also a bug in applies()
due to which `lastaddr' isn't set to true on degenerate ranges such
as `$,$' or `N,$' if N appears the last line number.

Handling early EOF condition in applies() could look more logical,
but it would effectively revert sed to the unreasonable behaviour
rev. 1.26 of main.c fought against, as it would require lastline()
be called for each line within each address range. So it's better
to call lastline() only if needed by the `c' function.

Together with this change to sed go regression tests for the bugs
fixed (c1-c3). A basic test of `c' (c0) is also added as it helped
me to spot my own error.

Discussed with: dds
Tested by: the regression tests
MFC after: 1 week


167893 26-Mar-2007 gnn

Adding tests for Camellia which will be added to the tree soon.
Added tests for aes-ctr which were not present before.


167866 24-Mar-2007 gnn

Update the regression test so that there are actually two independent
networks involved, as opposed to two hosts on one network.

MFC after: 1 week


167763 21-Mar-2007 gnn

Add a test for IPv6 and IPsec which is similar to the one for IPv4.
Add comments to the test for IPv4 with IPsec.
MFC after: 1 week


167755 21-Mar-2007 sam

Overhaul driver/subsystem api's:
o make all crypto drivers have a device_t; pseudo drivers like the s/w
crypto driver synthesize one
o change the api between the crypto subsystem and drivers to use kobj;
cryptodev_if.m defines this api
o use the fact that all crypto drivers now have a device_t to add support
for specifying which of several potential devices to use when doing
crypto operations
o add new ioctls that allow user apps to select a specific crypto device
to use (previous ioctls maintained for compatibility)
o overhaul crypto subsystem code to eliminate lots of cruft and hide
implementation details from drivers
o bring in numerous fixes from Michale Richardson/hifn; mostly for
795x parts
o add an optional mechanism for mmap'ing the hifn 795x public key h/w
to user space for use by openssl (not enabled by default)
o update crypto test tools to use new ioctl's and add cmd line options
to specify a device to use for tests

These changes will also enable much future work on improving the core
crypto subsystem; including proper load balancing and interposing code
between the core and drivers to dispatch small operations to the s/w
driver as appropriate.

These changes were instigated by the work of Michael Richardson.

Reviewed by: pjd
Approved by: re


167569 14-Mar-2007 dds

Rename sed.test to multitest.t to comply with the naming scheme of
the regression suite.


167555 14-Mar-2007 dds

Reinstate error-testing regression tests.


167552 14-Mar-2007 dds

Integrate the tests I wrote in 1992 with our current regression
testing framework and protocol.


167550 14-Mar-2007 dds

Reference results for sed.test (to be renamed into multitest.t).
I have verified these with GNU sed 4.1.5 (and in some cases with Solaris
sed) and they are identical, with the following exceptions:
5.3: The result is unspecified and BSD sed behaves differently.
6.3: GNU sed gets it wrong
7.1: GNU sed gets it wrong
7.8: BSD sed gets it wrong


167549 14-Mar-2007 dds

- Uncomment tests that were commented out
- Update platform-conditional tests to reflect current reality
- Fix conditional for test 7.8: it is the fault of BSD sed


167547 14-Mar-2007 dds

- It looks like BSD and GNU sed can nowadays pass two more tests.
- Test 7.8 fails for GNU sed not BSD.


167546 14-Mar-2007 dds

Use another non-printing test; address 0 now has a special meaning in GNU sed.


167545 14-Mar-2007 dds

Document a procedure for testing individual binaries under development.


167544 14-Mar-2007 dds

Update tests to reflect the state of the art of sed in HEAD and
GNU sed 4.1.5.
Almost all of the tests that were skipped for BSD or GNU sed
now appear to work.


167537 14-Mar-2007 dds

Add sed math regression test.


167536 14-Mar-2007 dds

Add Towers of Hanoi regression test.


167531 14-Mar-2007 dds

Add missing newline to correct failure of the regression test.
According to IEEE Std 1003.1, 2004 "Whenever the pattern space is
written to standard output or a named file, sed shall immediately
follow it with a <newline>."

An attempt at the same correction might have been made with r1.3,
which is however identical with r1.2.


167512 13-Mar-2007 bms

Add raw IP support (protocol 114) to ipbroadcast regression test.


167452 11-Mar-2007 rafan

Add ncursesw, libelf, and libalias profiling libraries

Approved by: delphij (mentor)


167341 08-Mar-2007 bms

Add -A to specify local address for bind().


167340 08-Mar-2007 bms

Support IP_SENDIF in -CURRENT.


167167 02-Mar-2007 bms

Put this old tool for dumping PCI expansion ROM images somewhere useful.

WARNING: THIS IS NOT STABLE ON NON-I386 ARCHITECTURES, AND NEEDS SPECIFIC
KNOWLEDGE OF THE ADDRESS SPACE ON YOUR SYSTEM TO WORK.


167149 01-Mar-2007 bms

Add -t to set IP TTL.


167140 01-Mar-2007 bms

Introduce a test program for IPv4 broadcast datagram send.


166961 25-Feb-2007 bms

Add a regression test for ethernet link-layer multicast memberships.


166567 08-Feb-2007 rwatson

Add 's' after printing the send interval to make it clear it's a send
interval.


166539 06-Feb-2007 pjd

Allow to use umastat on coredumps.

Reviewed by: rwatson


166437 02-Feb-2007 bms

For the IPv4 multicast membership socket regression test:
Add command line flags to increase the number of test iterations.
Be deterministic by default, for automated operation.
Better document assumptions.


166408 02-Feb-2007 sam

create empty opt_ah.h for compiling athstats.o; it just needs
the PHY definitions and not the descriptor so it doesn't matter
if it's correct relative to the hal.o


166389 01-Feb-2007 rafan

Remove old libmytinfo link.

Approved by: delphij (mentor)
Requested by: ache


166289 28-Jan-2007 pjd

Simple README file which shows how to use fstest.


166255 26-Jan-2007 delphij

Replace the GNU gzip with a slightly modified NetBSD gzip. The
NetBSD version is a feature-to-feature re-implementation of GNU
gzip using the freely-redistributable zlib and this version is
expected to be mostly bug-to-bug compatible with the GNU
implementation.

- Because this is a piece of mature code and we want to make
changes so it is added directly rather than importing to
src/contrib.
- Connect newly added code to src/usr.bin/ and rescue/rescue
build.
- Disconnect the GNU gzip code from build for now, they will
be eventually removed completely.
- Provide two new src.conf(5) knobs, WITHOUT_BZIP2_SUPPORT and
WITHOUT_BZIP2.

Tested by: kris (full exp-7 pointyhat build)
Approved by: core (importing a 4-clause BSD licensed file)
Approved by: re (adding new utility during -HEAD code slush)


166232 25-Jan-2007 pjd

MFp4: - When new object is created, it's group ID can be set to process'
effective group ID or to group ID of its parent directory.
- Add some comments from POSIX.
- Verify that after successful O_TRUNC open, size is equal to 0.


166231 25-Jan-2007 pjd

MFp4: When user is not a member of the group which owns a file, even if
he is the file's owner, he can't set set-gid bit.
POSIX requires to return 0 and clear the bit, but FreeBSD returns
EPERM for UFS in such case. For now do the same in ZFS.


166209 24-Jan-2007 jeff

- Add a horrible bit of code to detect tsc differences between processors.
This only works if there is no significant drift and all processors are
running at the same frequency. Fortunately, schedgraph traces on MP
machines tend to cover less than a second so drift shouldn't be an issue.
- KTRFile::synchstamp() iterates once over the whole list to determine the
lowest tsc value and syncs adjusts all other values to match. We assume
that the first tick recorded on all cpus happened at the same instant to
start with.
- KTRFile::monostamp() iterates again over the whole file and checks for
a cpu agnostic monotonically increasing clock. If the time ever goes
backwards the cpu responsible is adjusted further to fit. This will
make the possible incorrect delta between cpus as small as the shortest
time between two events. This time can be fairly large due to sched_lock
essentially protecting all events.
- KTRFile::checkstamp() now returns an adjusted timestamp.
- StateEvent::draw() detects states that occur out of order in time and
draws them as 0 pixels after printing a warning.


166203 23-Jan-2007 jeff

- Print clock information so we know if something is not reported correctly
from the tsc.
- Set skipnext = 1 for yielding and preempted events so we don't show the
event that adds us back to the run queue. It used to be 2 so we would
skip the ksegrp run queue addition and the system run queue addition
but the ksegrp run queue has gone away.
- Don't display down to nanosecond resolution for scheduling events right
now. This can sometimes cause a division by zero.


166065 17-Jan-2007 pjd

Add 3436 file system regression tests in 184 files.
Almost all regression tests are based on very flexible fstest tool.
They verify correctness (POSIX conformance) of almost all file
system-related system calls.

The motivation behind this work is my ZFS port and POSIX, who doesn't
provide free test suites.

Runs on: FreeBSD/UFS, FreeBSD/ZFS, Solaris/UFS, Solaris/ZFS

To try it out:

# cd fstest
# make
# find tests/* -type d | xargs prove


165984 12-Jan-2007 rwatson

Ignore EINPROGRESS error on TCP connect(), and pick up the result of the
non-blocking connect later using select(). This case didn't trigger on
my UP test box, but did on Peter's SMP test box.

Spotted by: peter


165982 12-Jan-2007 rwatson

Add a regression test for sending and writing zero bytes to sockets of
various types, as well as pipes and fifos for good measure. RELENG_6
currently passes all of these tests, but 7-CURRENT fails 0-byte writes
and sends on all stream socket types (and fifos, as they are based on
stream sockets).

Bumped into by: peter
Diagnosed by: jhb
Problem of: andre


165970 12-Jan-2007 joel

Fix typos.


165964 12-Jan-2007 sam

add man page


165963 12-Jan-2007 sam

fix typo

MFC after: 1 week


165935 11-Jan-2007 imp

Remove 3rd clause, per email from bms


165931 11-Jan-2007 stefanf

Add regression tests for exec.c rev 1.30.


165856 07-Jan-2007 das

Fix a few of the tests so that correct implementations actually pass them.


165829 06-Jan-2007 davidxu

Fix compiling.


165824 06-Jan-2007 jeff

- Add colors for up to 8 cpus.


165754 03-Jan-2007 das

Remove the test that ensures that when the string "nan(...)" is converted
to floating-point, the result is a quiet NaN. The current implementation
may return a signaling NaN, and the vendor has no plans for changing this,
for reasons explained in the comment I added.


165748 03-Jan-2007 das

Fix cut-and-paste bugs in the regression tests.


165729 02-Jan-2007 scottl

Expand a comment for clarity and fix a missed substitution.


165725 01-Jan-2007 scottl

Add a simple tool for checking the command queues in the MFI driver. Also add
a simple wrapper for running the MegaCLI tool.


165503 23-Dec-2006 bms

Drop all received data mbufs from a socket's queue if the MT_SONAME
mbuf is dropped, to preserve the invariant in the PR_ADDR case.

Add a regression test to detect this condition, but do not hook it
up to the build for now.

PR: kern/38495
Submitted by: James Juran
Reviewed by: sam, rwatson
Obtained from: NetBSD
MFC after: 2 weeks


164928 06-Dec-2006 davidxu

initialize mutex and cv.


164899 05-Dec-2006 davidxu

Fix spelling.


164898 05-Dec-2006 davidxu

Add a test for pthread's cv and cancellation.


164856 03-Dec-2006 dds

New test cases demonstrating fixed bugs, and the reason why
fmtcheck can't be used.


164662 27-Nov-2006 yar

/usr/sbin/faithd is an INET6-specific tool, and now it won't be built
if MK_INET6 is "no", so add it to the MK_INET6 block.

PR: bin/100805 (audit-trail)


164660 27-Nov-2006 n_hibma

Shorten the KERNCONF filename to the basename in the install target as
well as in the build target, although it is not used in this target.


164635 26-Nov-2006 sam

add rate knob for net80211 rate control modules

MFC after: 1 month


164617 26-Nov-2006 netchild

ah_if.m was removed a while ago


164581 24-Nov-2006 delphij

Make use of mk/ files from a fresh source tree, rather than
the currently installed ones. This makes it possible to use
the script against Makefiles that uses bsd.own.mk on an old
system.

Submitted by: bushman


164558 23-Nov-2006 yar

Fix and extend the -j option to pkill/pgrep WRT the jail
wildcard specifications. Earlier the only wildcard syntax
was "-j 0" for "any jail". There were at least
two shortcomings in it: First, jail ID 0 was abused; it
meant "no jail" in other utils, e.g., ps(1). Second, it
was impossible to match processed not in jail, which could
be useful to rc.d developers. Therefore a new syntax is
introduced: "-j any" means any jail while "-j none" means
out of jail. The old syntax is preserved for compatibility,
but now it's deprecated because it's limited and confusing.

Update the respective regression tests. While I'm here,
make the tests more complex but sensitive: Start several
processes, some in jail and some out of jail, so we can
detect that only the right processes are killed by pkill
or matched by pgrep.

Reviewed by: gad, pjd
MFC after: 1 week


164489 22-Nov-2006 rodrigc

Remove references to mount_devfs, mount_fdescfs, mount_linprocfs,
mount_procfs, and mount_std.

Reminded by: ru


164342 16-Nov-2006 jkim

Fix message size tests for msgsnd(3) and msgrcv(3). msgsz is the length of
actual message and it should not include size of message type.


164331 16-Nov-2006 benno

Add the Transcend 2GB card specs.


164298 15-Nov-2006 rwatson

Add a short regression test to try to exercise races in the non-atomic
nature of implied connect via sendto(). Oddly, uipc_usrreq.c implements
this for stream sockets, but doesn't set the flag in its protocol
definition so that it can actually be used. As such, the stream test is
implemented but doesn't run for now.


164192 11-Nov-2006 maxim

o Indent by tab.


164191 11-Nov-2006 maxim

o Add several regression tests for dup(2), dup2(2) and fcntl(F_DUPFD).

Obtained from: OpenBSD


164124 09-Nov-2006 bms

Update copyright date.

MFC after: 3 weeks


164123 09-Nov-2006 bms

Use C99 types.

MFC after: 3 weeks


164122 09-Nov-2006 bms

Rewrite the format of pirtool output to match what the kernel currently
prints out if bootverbose is set. This is to facilitate the code being
removed from the kernel at a later date.

While we're here, fix the __packed structures, and add some other
PCI interrupt router IDs.

Submitted by: jhb (with some tweaks)
MFC after: 3 weeks


164083 07-Nov-2006 jkim

Use z modifier for size_t and ssize_t.


164041 06-Nov-2006 dds

Add the examples from the manual page.


164040 06-Nov-2006 dds

Updated results for bin/68981

PR: bin/68981


164024 06-Nov-2006 dds

Regress.out is now regress.x.out.


164022 06-Nov-2006 dds

Test the handling of supplied and default parameters.


164004 05-Nov-2006 stefanf

Add regression tests for PR 105078.


163922 02-Nov-2006 n_hibma

Only use the filename part of the kernel configuration file as an argument to
KERNCONF after the file has been copied to the sys/${ARCH}/conf directory. This
allows the use of one kernel config file for multiple images. E.g.:

NANO_KERNEL=../../../../software/nanobsd/default/SOEKRIS

MFC: after 6.2


163861 01-Nov-2006 jb

Add a build option to support WITH_CDDL and WITHOUT_CDDL, defaulting
to WITH_CDDL.

This option enables building code that is licensed under Sun's CDDL.
The DTrace code is licensed that way, so by default it will get built
unless the WITHOUT_CDDL option is used.

There is another build toggle, NO_CTF, which turns off execution of
ctfconvert and ctfmerge in sys.mk, but this can't be implemented as
WITH_/WITHOUT because bsd.own.mk isn't included in all Makefiles and
sys.mk is included automatically by make.


163854 01-Nov-2006 julian

Reworking of how to add ports.

submitted by: Jean Milanez Melo


163848 31-Oct-2006 pjd

Add fs_unrefs field to the super block structure.

Sponsored by: home.pl


163807 30-Oct-2006 julian

Add configuration stubs for adding package derived files to the various
sample configurations.
Submitted by Jeremie Le Hen and tested by Jean Milanez Melo.


163806 30-Oct-2006 julian

Add some code to support including files ffrom packages in the image.

Submitted by: Jeremie Le Hen and tested by Jean Milanez Melo.


163254 11-Oct-2006 julian

Might as well move to the right place if we are not there.
The whole question of how much to rely on teh sources being in /usr/src
needs visiting.


163253 11-Oct-2006 julian

let the user know what configurations are available when asking for it.


163153 09-Oct-2006 maxim

o Grammar.

Submitted by: kris


163150 09-Oct-2006 maxim

o Enable test-sparceaout test since alc@ has fixed the panic in rev. 1.229
sys/vm/vnode_pager.c.
cVS: ----------------------------------------------------------------------


163017 04-Oct-2006 julian

Large rewrite of the tinybsd script.

This allows the user to specify that the root filoesystem should be
an MFS or teh actual medium itself.
Also a new command syntax, along with an interactive mode by default,
with crossinvocation memory of the last used values as defaults for the
current invocation.

Submitted by:jmeloatfreebsdbrasil,com-br


162883 30-Sep-2006 ru

Revise markup.


162846 30-Sep-2006 ru

Removed libc_r build support.


162720 28-Sep-2006 ru

Initializate "offset" variable to zero; otherwise, if not using
the -o option, it might contain garbage.

MFC after: 1 day


162535 21-Sep-2006 julian

Slight tunups to the config files.


162485 20-Sep-2006 julian

In the spirit of nanoBSD and PicoBSD, add TinyBSD.
Submitted by jmeloatfreebsdbrasil,com-br
(Jean Milanez Melo)
As PicoBSD becomes slightly less useful, TinyBSD fills the gap below nanoBSD.


162432 19-Sep-2006 pjd

Move readonly.t regression tests file to where it belongs.
I accidentally added it to a wrong directory.


162354 16-Sep-2006 pjd

Add regression tests for 'geli configure' subcommand.

MFC after: 1 week


162349 16-Sep-2006 pjd

Regression tests for read-only option (attach -r).

MFC after: 1 week


162271 13-Sep-2006 rwatson

dd a series of regression tests to validate that privilege requirements are
implemented properly for a number of kernel subsystems. In general, they
try to exercise the privilege first as the root user, then as a test user,
in order to determine when privilege is being checked.

Currently, these tests do not compare inside/outside jail, and probably
should be enhanced to do that.

Sponsored by: nCircle Network Security, Inc.
Obtained from: TrustedBSD Project


162215 11-Sep-2006 ru

Document the new know, WITHOUT_ASSERT_DEBUG.


162214 11-Sep-2006 ru

- Utilize the "showconfig" top-level target.
- Pass __MAKE_CONF=/dev/null to get a pristine output.


161861 02-Sep-2006 rwatson

Enforce the compile-time threads limit at run-time, so that a high thread
count argument doesn't cause a segfault or memory corruption when the
compile-time array is overrun.


161692 28-Aug-2006 phk

Improve input parsing:

Add "-C <column>" and "-d <delims>" options to chop up input lines.

Make '#' a comment character, rest of line is ignored.

Submitted by: Dmitry Morozovsky <marck@rinet.ru>


161526 22-Aug-2006 ru

Remove alpha left-overs.


161341 15-Aug-2006 simon

Move the setup of "diskless" /etc magic files from install_etc() to a
separate function which is called right after install_etc(). This makes
it simpler to (ab)use nanobsd.sh as a framework to build more normal
FreeBSD images where a normal /etc is used, since setup_nanobsd_etc()
can just be redefined.

OK'ed in principle by: phk
MFC after: 1 week


161200 10-Aug-2006 sam

checkpoint new version


161047 07-Aug-2006 keramida

Fix some minor nits in the README file of wesside

Reviewed by: sam, Andrea Bittau <a.bittau@cs.ucl.ac.uk>


161031 07-Aug-2006 sam

add wesside


161030 07-Aug-2006 sam

another tool that uses the raw tx api

Submitted by: Andrea Bittau <a.bittau@cs.ucl.ac.uk>


161029 06-Aug-2006 sam

use proper tx series

Submitted by: Andrea Bittau <a.bittau@cs.ucl.ac.uk>


161003 05-Aug-2006 sam

make it work after the api change

Submitted by: Andrea Bittau <a.bittau@cs.ucl.ac.uk>


160997 05-Aug-2006 sam

hook packet injection tools up


160996 05-Aug-2006 sam

test programs for 802.11 packet injection

Submitted by: Andrea Bittau <a.bittau@cs.ucl.ac.uk>


160995 05-Aug-2006 sam

802.11 packet injection test tool

Submitted by: Andrea Bittau <a.bittau@cs.ucl.ac.uk>


160994 05-Aug-2006 sam

crude stumbler using raw packet api's

Submitted by: Andrea Bittau <a.bittau@cs.ucl.ac.uk>


160993 05-Aug-2006 sam

raw tx stat


160985 04-Aug-2006 jb

Fix for architectures where sizeof(void *) > sizeof(int).


160922 02-Aug-2006 netchild

Fix build when .CURDIR != .OBJDIR.

Noticed by: "Alexander Mogilny" <sg@astral.ntu-kpi.kiev.ua>


160855 31-Jul-2006 yar

Tell the bitter truth that WITHOUT_GNU and WITHOUT_PAM
don't have any effect now.


160851 31-Jul-2006 yar

Document some more src.conf(5) options:
WITHOUT_GNU, WITHOUT_NS_CACHING, WITHOUT_PAM.

Noticed by: src/tools/build/options/makeman


160850 31-Jul-2006 yar

Actually skip over undocumented options with "continue"
to avoid artifacts in the manpage generated. Previously
an orphaned paragraph on dependencies of such an option
would appear.


160808 29-Jul-2006 yar

Extend the MK_INET6 section by rescue/ping6 and the manpages.


160786 28-Jul-2006 simon

Add a test program which performs some very basic tests of libmp(3).
It is by no means expected to perform a complete test of the library
for correctness, but is meant to test the API to make sure libmp (or
libcrypto) updates don't totally break the library.


160783 28-Jul-2006 thomas

'make distribution' must be run from src, not src/etc, so that the proper
set of /usr/share/mk/* is available. This is necessary to build a 7.x
NanoBSD image on a 6.x host.

Reviewed by: phk


160779 28-Jul-2006 yar

Do not forget about INET6 and MK_INET6_SUPPORT.


160777 28-Jul-2006 yar

Populate the MK_INET6 block.


160725 26-Jul-2006 simon

Add Memory Corp 512MB CF Flash.

MFC after: 3 days


160500 19-Jul-2006 rwatson

Add a test case for closing a UDPv6 socket that has been connected to
the IPv6 loopback address.

Warns ?= 2.


160499 19-Jul-2006 rwatson

Add very basic regression test for netinet6: create and close raw,
UDP, and TCP IPv6 sockets.


160416 17-Jul-2006 marcel

Add regression tests of the emulation of the long branch conditional form.
These tests can obviously only be run on Merced processors, as they don't
implement the long branch.


160388 15-Jul-2006 thomas

When creating the NanoBSD disk image, install boot blocks from the
newly-built world, in preference to those from the host system.

Reviewed by: phk


160328 13-Jul-2006 phk

Create the diskless magic files in /etc during the install_etc() step
instead of setup_nanobsd(), because this gives customize tasks a chance
to fiddle the details.

Inspired & tested by: Jordan Coleman <jordan@JordanColeman.com>


160202 09-Jul-2006 maxim

o style.Makefile(5): WARNS= -> WARNS?=.


160201 09-Jul-2006 rwatson

When extending a file with truncate, check that newly added bytes have
a value of 0 in the extended region.

Make sure that we get EINVAL back if we try to truncate a read-only
file descriptor.


160200 09-Jul-2006 rwatson

Add regression tests to make sure that attempting to call ftruncate() on
various non-file objects fails.


160199 09-Jul-2006 rwatson

Add very basic ftruncate() regression test, with a comment rather more
thorough than the tests regarding what should be tested.


160172 08-Jul-2006 netchild

Add (missing) and remove (obsolete) .m files.


160053 30-Jun-2006 sam

o fix join/rejoin format
o add netbsd portability glue

MFC after: 2 weeks


159895 23-Jun-2006 sam

dump new cabq stats


159829 21-Jun-2006 obrien

Fix type warnings on 64-bit machines.


159784 20-Jun-2006 sam

ipw statistics tool


159460 09-Jun-2006 flz

Tweak mfc.pl to generate backout patchsets.

Approved by: cperciva (mentor)


159328 06-Jun-2006 pjd

Add regression tests for geli(8) authentication feature.

Supported by: Wheel Sp. z o.o. (http://www.wheel.pl)


159327 06-Jun-2006 pjd

- Update regression tests after recent changes.
- Verify various sector sizes.


159239 04-Jun-2006 pjd

Add regression tests for IPsec.


159099 31-May-2006 maxim

Output directory has gone, remove it from Makefile.


159098 31-May-2006 maxim

Fix test for empty interpreter.


159097 31-May-2006 maxim

o Add various regression tests for execve(2) syscall.

Obtained from: NetBSD


159095 31-May-2006 maxim

o Let getopt(3) report errors in command line arguments.
o If something is wrong with options, then output short usage help message.
o Output errstr returned from strtonum(3).

PR: bin/98141
Submitted by: Andrey Simonenko


159076 30-May-2006 matteo

Make recoverdisk compile on amd64 and possibly other 64bit archs.
Bump WARNS to 6.

PR: amd64/97566
Reviewed by: phk@
MFC after: 3 days


159069 30-May-2006 des

The tinderbox has moved to projcvs.


159045 29-May-2006 maxim

o Add a collection of regression tests for ancillary (control)
data passing for unix domain sockets, stream and datagram.

There are 15 tests:

Test/Type of socket STREAM DGRAM
----------------------------------------------------------------------
Sending, receiving cmsgcred 1 6
Receiving sockcred (listening socket has LOCAL_CREDS) 2 n/a
Receiving sockcred (accepted socket has LOCAL_CREDS) 3 n/a
Receiving sockcred n/a 7
Sending cmsgcred, receiving sockcred 4 8
Sending, receiving timestamp 5 9
Sending, receiving cmsgcred (no control data) 10 13
Sending cmsgcred, receiving sockcred (no control data) 11 14
Sending, receiving timestamp (no control data) 12 15

Currently we pass 8 tests. All the rest marked as TODO.

PR: kern/90800
Submitted by: Andrey Simonenko


159039 29-May-2006 des

Add RELENG_5_5 to the 5.x lineup.


159032 29-May-2006 maxim

o Test truncate(2) on fifo: it should ignore the request and
return success.

PR: kern/98064
Submitted by: Kirk Russell


159010 28-May-2006 netchild

Add a disclaimer regarding public/internal functions to every subsystem for
now.

Discussed on: cvs-all
Helped with the wording: "Ben Kaduk" <minimarmot@gmail.com>


158961 26-May-2006 netchild

This is the kernel subsystem API documentation generation framework.

It uses doxygen to generate the API documentation. For each subsystem
a very small (about 20 lines with comments) subsystem specific Doxyfile
has to be written (have a look at the README for more). All common doxygen
options are specified in a separate file.

The framework is configured to not only generate the HTML version, but also
a PDF version (the paper size is hardcoded to DIN A4 currently and depending
on the subsystem you have to increase some limits in the latex configuration
of your system, the README tells more about this).

It also allows cross-references between the subsystems (it generates doxygen
tag files).

Currently the docs are generated in OBJDIR, but this may change after
coordination with doc@. The makefile is prepared to generate/move various
parts of the generated docs to different destinations.

TARGET_ARCH is respected and some env-vars are set for architecture specific
handling of the source (the README tells more).

Subsystems for which docs are generated:
- cam - crypto - dev_pci
- dev_sound - dev_usb - geom
- i4b - kern - libkern
- linux - net80211 - netgraph
- netinet - netinet6 - netipsec
- opencrypto - vm

Requested by: gnn


158911 25-May-2006 rwatson

Use WARNS and rely on rules rather than an explicit target for the
test binary.

Reported by: maxim


158910 25-May-2006 rwatson

Add a basic regression test for sendfile() over TCP, which sends varying
lengths of headers and data and makes sure it receives about the right
number of bytes.


158886 24-May-2006 mr

make cryptotest compile after the latest changes to cryptodev.h


158820 22-May-2006 maxim

o Correct comments: remove a reference to non-existent gdbinit.9 man page;
correct a path to the kernel build directory; gdb lost -k key.

Reviewed by: grog
MFC after: 1 week


158772 20-May-2006 maxim

o Convert to Test::Harness testing infratructure.


158758 20-May-2006 trhodes

Switch value back to values.

Requested by: ru


158719 18-May-2006 pjd

Add missing stats.hst_nodesc statistics.


158687 17-May-2006 phk

Send the pcvt(4) driver off to retirement.


158660 16-May-2006 trhodes

Some minor wording/description changes.

Reviewed by: ru (two months ago)


158577 14-May-2006 maxim

o A tiny regression test exposes bug in rip_disconnect().


158561 14-May-2006 bms

Add multicast group join/leave functionality to IPv4 regression
test suite.


158526 13-May-2006 sobomax

o Add an option allowing to start search from some offset instead of offset 0;

o mesure distance between UFS1 and UFS2 superblocks independently.

MFC after: 1 week


158514 13-May-2006 des

Remove alpha from the HEAD lineup.


158496 12-May-2006 des

Forgot to add RELENG_6_1 here as well.


158405 10-May-2006 des

Add RELENG_6_1 to the lineup.


158356 08-May-2006 jmg

add a diff line so you can check your commit before hitting enter...


158337 06-May-2006 maxim

o Take an account a media sectorsize for medium and bigsize calculation.
o Introduce -r and -w keys which allow to load and save a worklist.
o Replace README by man page.

PR: bin/96677
Submitted by: Ulrich Spoerlein
Approved by: phk
MFC after: 1 month


158297 05-May-2006 sobomax

o Make it possible to compile find-sb on non-FreeBSD system (MacOS X in my
case). Can be useful for recovering in some cases;

o use SBLOCK_UFS2 instead of SBLOCK_UFS1 to calculate likely start of the UFS2
partition from the beginning of disk.


158246 02-May-2006 phk

Avoid coredumps if stddev cannot be computed (if all datapoints are identical)
Small cleanup of label printing.


158212 01-May-2006 netchild

Add profile libs.

Submitted by: Pawel Worach <pawel.worach@gmail.com>


158209 01-May-2006 pjd

For some time now, -i and -P options are mutually exclusive, there's even
a regression test init-i-P.t which asserts this, but it looks I forgot to
update nokey.t regression test.

MFC after: 1 day


157986 23-Apr-2006 dwmalone

Add some new options to mac_bsdestended. We can now match on:

subject: ranges of uid, ranges of gid, jail id
objects: ranges of uid, ranges of gid, filesystem,
object is suid, object is sgid, object matches subject uid/gid
object type

We can also negate individual conditions. The ruleset language is
a superset of the previous language, so old rules should continue
to work.

These changes require a change to the API between libugidfw and the
mac_bsdextended module. Add a version number, so we can tell if
we're running mismatched versions.

Update man pages to reflect changes, add extra test cases to
test_ugidfw.c and add a shell script that checks that the the
module seems to do what we expect.

Suggestions from: rwatson, trhodes
Reviewed by: trhodes
MFC after: 2 months


157835 18-Apr-2006 ru

Fix an obvious bug.

Submitted by: Alex Lyashkov <umka@sevcity.net>


157717 13-Apr-2006 ru

Implications are auto-generated.


157622 10-Apr-2006 marcel

MFp4:
o Add mount and umount actions so that partitions can be in use.
o Extend the testing of the add verb to include overlapping
partitions.
o Add tests for the remove verb. this includes tests to remove
a partition when in use (i.e. is mounted).
o Add a MD5 checksum to the output of the conf action so that
it can be tested. Make sure the MD5 doesn't vary based on
certain dynamic behaviour that is irrelevant to the output.
o Add MD5 checksums to the expected result of conf actions.


157621 10-Apr-2006 marcel

MFp4:
Add support for read-write parameters. Allow an optional initializer
for read-write parameters. Print the value of those parameters on
success following the PASS.


157603 09-Apr-2006 rwatson

Add a simple regression test that creates and tears down route sockets,
and confirms that only SOCK_RAW works with socket(), and nothing works
with socketpair().


157602 09-Apr-2006 rwatson

Add simple regression tests that creates UNIX domain sockets using
socket() and socketpair() of SOCK_STREAM and SOCK_DGRAM types. It
also confirms that SOCK_RAW fails.


157600 09-Apr-2006 stefanf

Test that variable assignments preceding special built-ins affect the current
shell environment, eg after "VAR=val eval" VAR remains set. Currently fails
but will be implemented soon.


157579 07-Apr-2006 des

Don't select a default value for $machine until after we've examined $arch.

Noticed by: mjacob


157439 03-Apr-2006 netchild

Milosz (sorry for not using the right 'l', it will not display corretly
in the commit log) submitted support for some NO_* knobs for delete-old*
and check-old. I converted it to the new WITHOUT_* knobs (more correctly:
MK_*) and added some dummy ones so that people can see what's missing.

Volunteers can have a look at http://phk.freebsd.dk/misc/build_options/
for a list of files.

The location looks a little bit odd to me, but I don't care about the
color of this bikeshed and follow the suggestion of our build
infrastructure guru to place it "somewhere under src/tools/ please". [1]
The build/mk/ directory looks more sane to me than the other ones there.

Submitted by: milosz.galazka@gmail.com
Suggested by: ru [1]


157428 03-Apr-2006 rwatson

Add a second pass to the close-before-accept test using a call to the
tcp drop sysctl. This should exercise the ECONNABORTED accept case.


157426 03-Apr-2006 rwatson

Add regression test for tcpdrop sysctl.


157425 03-Apr-2006 rwatson

Add a regression test to exercise the case where accept() is called and
the next waiting socket has had a close on the remote endpoint already.


157415 02-Apr-2006 stefanf

Add test cases that check utility syntax errors and redirection errors. For
special built-in utilities they must terminate the shell, for other
utilities only a error message shall be written. We currently fail both
tests.


157402 02-Apr-2006 rwatson

When running the second part of the test, kill off the server process from
the first part before starting, or the TCP port we want to bind may be in
use still. Sleep for a short period between tests.

Use SIGTERM instead of SIGKILL.


157401 02-Apr-2006 rwatson

Pass the right pid into the parent and child tasks so that when a test
fails, we kill the right partner process.


157400 02-Apr-2006 rwatson

Add makefile for tcpsocktimewait missed in previous commit.


157387 02-Apr-2006 rwatson

Add a short regression test that triggers a TCP socket to enter time wait
while the socket is still open; one variant closes the socket while in
time wait, and a second lets time wait expire while the socket is open.


157379 01-Apr-2006 phk

Overlooked that src.conf was built from here.


157176 27-Mar-2006 des

Reflect progress in process title.


157163 27-Mar-2006 rwatson

Add spxabort, a simple netipx/spx regression test that triggers
pru_abort() by closing a listen socket while completed connections are
presenting in its listen queue. Unfortunately, it's difficult to
trigger the other two pru_abort() cases using user APIs, so they are
not covered by this test.


157152 26-Mar-2006 rwatson

Add simple regression test to ping pong a data packet over SPX in stream
mode. Support both connection via connect() and sendto(), but don't
compile in sendto() for now, since netipx doesn't appear to actually
implement that (doh).


157151 26-Mar-2006 rwatson

Add a simple IPX datagram regression test, which opens two IPX datagram
sockets, binds a local port, sends a datagram, and confirms that it is
received.


157150 26-Mar-2006 rwatson

Add a short README with configuration hints to get the netipx regression
tests up and running. This is likely a message to myself in six months
when I've completely forgotten how.


157149 26-Mar-2006 simon

Use tr(1) to lowercase strings in a way which works with all locales.

Approved by: cperciva (mentor)


157146 26-Mar-2006 rwatson

Modify ipxsocket regression test to create and close sockets several
times, with variable length sleeps between socket() and close(). This
will help to ensure that IPX/SPX timers fire while the sockets are
open, and hence have PCB's on the IPX pcb list, so that if timers are
going to stumble over PCB types they don't expect, it will happen as
part of this test.


157139 26-Mar-2006 rwatson

Add simple ipxsocket regression test: open, and close, various IPX socket
types supported by the FreeBSD netipx implementation.


157132 25-Mar-2006 phk

Get the MK_FOO column right


157118 25-Mar-2006 phk

Update build survey scripts


156939 21-Mar-2006 ru

Fix generation of '$FreeBSD$'.


156938 21-Mar-2006 ru

Slightly better description.


156937 21-Mar-2006 ru

A tool to generate the src.conf(5) manpage.


156933 21-Mar-2006 des

Open the lock file write-only.


156932 21-Mar-2006 ru

Prepare to autogenerate the src.conf(5) manpage.


156931 21-Mar-2006 ru

Remove an outdated README.


156886 19-Mar-2006 rwatson

Merge Perforce change 93572 from TrustedBSD audit3 branch:

Simple audit pipe ioctl regression test.

Obtained from: TrustedBSD Project


156815 17-Mar-2006 rwatson

Change s_net to s_node when printing the destination address.


156775 16-Mar-2006 ru

NO_MAN is not needed here.


156735 15-Mar-2006 ru

Style: NO_MAN doesn't need any value.


156496 09-Mar-2006 phk

In addition to -b (suppress builds) add -k (suppress kernel build) and
-w (suppress world).


156391 07-Mar-2006 ume

NOMAN --> NO_MAN


156365 06-Mar-2006 wkoszek

Allocate proper amount of memory. Otherwise, we pass the end of a buffer,
thus having unpleasant warning. Was found by jemalloc redzone code.

Reviewed by: rwatson
Approved by: cognet (mentor)


156362 06-Mar-2006 sam

fixups

Submitted by: ru
MFC after: 3 days


156329 06-Mar-2006 sam

fix for non-i386/amd64 machines

Submitted by: marcel
MFC after: 3 days


156211 02-Mar-2006 des

Update copyright years and remove third clause.


156210 02-Mar-2006 des

Read site.rc after default.rc.


156209 02-Mar-2006 des

Ignore generated files.


156110 28-Feb-2006 sam

when acpi does not explicitly enumerate lapic/cpu's there should
only be 1

Reviewed by: jhb


155960 23-Feb-2006 wkoszek

Fix the way in which median is calculated. If the data source has even
number of data points, value should be calculated by adding two middle
elements and dividing them by 2.

Approved by: cognet (mentor)


155928 22-Feb-2006 sam

test program to check cpu counting

MFC after: 1 week


155894 22-Feb-2006 mdodd

Add option -w to specify graph width.
Use COLUMNS, terminal width for default graph width.

Reviewed by: rwatson


155892 22-Feb-2006 rwatson

Add multi-process support to simple http micro-benchmark, now the default.
Use -t for thread support. Also added are -n to specify number of threads
or process, and -s to set the length of the test.


155891 22-Feb-2006 rwatson

Add multi-process support to simple httpd micro-benchmark, which is now
the default. With -t, threads are used.


155561 12-Feb-2006 pjd

Add regression test which verifies that options -P and -i cannot be used
together.

MFC after: 3 days


155246 03-Feb-2006 des

Use -O2 on RELENG_6 as well


155185 01-Feb-2006 pjd

Add regression tests which will verify that giving no key components for
init/attach/setkey subcommands is really impossible.

MFC after: 3 days


155087 31-Jan-2006 pjd

Add simple tests which verify that redzone(9) works properly.


155041 30-Jan-2006 des

Avoid triggering autovivification of %config entries, which would result in
an empty addenda section.

Handle kernel configs that lack a "machine" line by guessing at the location
of GENERIC (assuming that it is in the same directory as the config file)


154961 28-Jan-2006 rwatson

Use $FreeBSD$ for the juggle version, rather than $P4$. This is good for
two reasons:

(1) juggle is now maintained in CVS, not P4, so the CVS revision number is
the authoritative one.
(2) Apparently $P4$ requires special handling and juggle was not marked
as needing it, resulting in problems for the P4 importer.

Requested by: gordon


154830 25-Jan-2006 flz

- Fix infinite loop in strip_log().
- Remove useless variable.

Submitted by: jkim
Approved by: jkim


154668 22-Jan-2006 davidxu

s/sigval/sival/g


154466 17-Jan-2006 phk

Add two new variables:

# Size of the /etc ramdisk in 512 bytes sectors
NANO_RAM_ETCSIZE=10240

# Size of the /tmp+/var ramdisk in 512 bytes sectors
NANO_RAM_TMPVARSIZE=10240

And a last_orders() shell function which can be redefined to copy
finished images away, order peanuts or whatever else is appropriate


154385 15-Jan-2006 flz

I missed a whitespace in the generated commit message.

Approved by: ssouhlal (implicit)


154314 13-Jan-2006 flz

Bump version.

Approved by: ssouhlal (implicit)


154313 13-Jan-2006 flz

Now with multi-commit support.

Use: `./mfc.pl -m "msg-id-1 msg-id-2" -i hurray'
or `./mfc.pl -f - -i yippee' and copy/paste two commit logs

Approved by: ssouhlal (implicit)


154279 13-Jan-2006 flz

- Fix issue when X-FreeBSD-CVS-Branch is not HEAD.

Submitted by: jkim
Approved by: jkim


154231 11-Jan-2006 flz

Ok, I've created a test suite to avoid such regressions. Sorry for the noise.

Approved by: ssouhlal (implicit)


154229 11-Jan-2006 flz

- Fix another bug, it seems sometimes mail is sent to cvs-all but not cvs-ports.

Approved by: ssouhlal (implicit)


154228 11-Jan-2006 flz

- Fix search.
- Fix author matching.

Approved by: ssouhlal (implicit)


154208 11-Jan-2006 flz

- Remove netcat dependency by using fetch (not sure why i used nc
in the first place).
- Add some XXX lines as a TODO.
- Add a cvs diff command to the generated commit script.
- Add cdiff/colordiff to the list of optional dependencies.
- Fix a problem when giving the commit mail without the headers to
mfc.pl -f, it should now work correctly.
- Bump version.

Approved by: ssouhlal (implicit)


154187 10-Jan-2006 flz

- Add a new MFC script that takes a message-id, a commit mail or a query string and
generates a patchset along with a commit message and a commit script if the user has
commit rights.
- Add a README file to give a quick description of each script's purpose.

Approved by: netchild


154069 06-Jan-2006 phk

Add missing ' and '

Submitted by: simon


154068 06-Jan-2006 phk

Make this more readable and add more devices.

Partially from: mich@FreeBSD.org


154023 04-Jan-2006 harti

Add a new leaf to the net.link.generic.ifdata.%d sysctl to retrieve
the name and unit number assigned by the driver. This is needed by
SNMP to find interfaces after they have been renamed.

MFC after: 4 weeks


153946 01-Jan-2006 avatar

Adding another multi-byte characters related regression test for recent
nmount(2) adoption.


153838 29-Dec-2005 dfr

Add a new extensible GSS-API layer which can support GSS-API plugins,
similar the the Solaris implementation. Repackage the krb5 GSS mechanism
as a plugin library for the new implementation. This also includes a
comprehensive set of manpages for the GSS-API functions with text mostly
taken from the RFC.

Reviewed by: Love Hörnquist Åstrand <lha@it.su.se>, ru (build system), des (openssh parts)


153790 28-Dec-2005 rwatson

Add 'juggle', a simple IPC micro-benchmark that uses various IPC types to
perform varying number of small IPC operations. It runs using a single
process and one thread, a single process and two threads, and using
multiple processes. Critical to its performance measure are the cost and
frequency of context switches, locking overhead, and threading
performance. The benchmark generates .csv output appropriate for reading
into a spreadsheet to generate summary statistics and perform statistical
tests easily.


153470 16-Dec-2005 scottl

Fix compiling on platforms with 64bit time_t.


153393 13-Dec-2005 des

Add a -c option to control caddr_t replacement (which was commented out in
the previous revision)


153392 13-Dec-2005 sam

fix include path


153391 13-Dec-2005 sam

update


153390 13-Dec-2005 sam

fix include pathnames


153389 13-Dec-2005 des

Add a script that converts K&R-style function definitions to ANSI style.


153381 13-Dec-2005 des

Print user, system and real time upon exit.


153318 11-Dec-2005 sam

this didn't make it in the last commit


153317 11-Dec-2005 sam

o move programs to separate directories and use stock Makefiles;
this simplifies including them in crunchgen images
o rename 80211* programs to wlan* as was originally intended


153314 11-Dec-2005 sam

remove cts burst extension stats


153235 08-Dec-2005 rwatson

After printing per-cpu cache contents, summarize total cached items and
entries across the caches.

Fix an off-by-one error in counting caches.


153233 08-Dec-2005 rwatson

Teach umastat about the variable-length array of per-CPU caches at the end
of struct uma_zone. It is declared as an array of size [1], but then
sized at run-time by UMA to include room for mp_maxid+1 CPUs. We have to
copy the uma_zone first at the declared structure size, then check to make
sure it's not an internal zone before copying the larger size (UMA
internal zones don't use per-CPU caches). This fixes umastat for SMP.


153189 07-Dec-2005 pjd

Convert gstripe(8) regression tests to the new framework.


153188 07-Dec-2005 pjd

Convert gshsec(8) regression tests to the new framework.


153187 07-Dec-2005 pjd

Convert graid3(8) regression tests to the new framework.


153186 07-Dec-2005 pjd

- Make use of geom_subr.sh to improve regression tests.
- Keep class-specific data in conf.sh file.


153185 07-Dec-2005 pjd

Finish conversion of gconcat(8) regression tests to the new framework.


153184 07-Dec-2005 pjd

Add file with helper functions for geom tools regression tests.


153183 07-Dec-2005 pjd

Convert gnop(8) regression tests to the new framework.


153182 07-Dec-2005 pjd

Convert gmirror(8) regression tests to the new framework.


153114 05-Dec-2005 rwatson

Add a simple KVM tool to dump the kernel state of UMA, including walking
the keg/zone lists, summarizing cache state, and walking bucket lists in
each zone. I seem to get inconsistent results on SMP, possibly due to
local header problems, but it seems to work quite well on UP. This tool
requires sufficient privilege to read /dev/mem (or a core dump), and is
for debugging purposes rather than administrative monitoring purposes
(use vmstat instead).


153065 03-Dec-2005 ru

Move the 2->3 upgrade kit on the attic.


152832 26-Nov-2005 davidxu

Add code to test POSIX message queue.


152663 21-Nov-2005 scottl

Teach schedgraph how to parse KTR_CRITICAL records. critical_enter/exit
events are now plotted as a counting graph, similar to CPU load, so that
their duration and critnest values can be visualized.


152458 15-Nov-2005 phk

Add geometry of SiliconSystems 4GB CF card


152414 14-Nov-2005 des

Use the new syntax for GENERIC.


152413 14-Nov-2005 des

Build a PAE kernel if a PAE config exists.


152412 14-Nov-2005 des

Add support for the += operator, which appends to a multiple-value variable.


152411 14-Nov-2005 des

Add support for building other kernels than LINT and GENERIC.


152402 13-Nov-2005 marcel

Update to match geom_gpt:1.35

o Change the result of gctl(001) now that a bogus verb still requires
a valid geom,
o Insert gctl(024) to test for an appropriate error when a bogus verb
is given that does have a proper geom parameter.


152345 12-Nov-2005 marcel

Instead of saving the unit number of the md(4) device name, save the
whole name. This does not unnecessarily close the door that in some
future we want to test on something other than md(4) devices.

Also add a "conf" action so that we can check whether a gctl actually
did the right thing or not. It's one thing to check that the result
strings are as expected, but it doesn't tell us if the end result is
correct. This needs a bit more fleshing out, but for now a visual
(i.e. manual) check suffices.


152251 09-Nov-2005 rwatson

Add unix_passfd, a simple set of regression tests for UNIX domain socket
file descriptor passing. These tests are not all currently passed.


152186 08-Nov-2005 davidxu

Add code to test queued SIGCHLD.


152158 07-Nov-2005 pjd

Add tests for -t option with short tty name - pkill(1) should accept both
(eg. "ttyv0" and "v0").


152155 07-Nov-2005 davidxu

Add sigqueue test code.


152131 06-Nov-2005 rwatson

Fix two minor typos that caused schedgraph to exit with an exception
when running on traces referencing >2 CPUs.


152121 06-Nov-2005 maxim

Fix the path to aac_ioctl.h in the comment and style includes.

MFC after: 1 week


152120 06-Nov-2005 maxim

Fix include: aac_ioctl.h was moved from sys/dev/aac/ to sys/sys.

PR: misc/88549
Submitted by: Sokolov Alexey
MFC after: 1 week


151797 28-Oct-2005 stefanf

Add test cases for the command built-in, including its -v and -V options which
I'll commit real soon.

Count the number of found test cases instead of hard-coding them. Allow an
arbitrary exit status.


151705 26-Oct-2005 pjd

Change u_int64_t to uintmax_t and use %ju, so it compiles on 64bit archs.
I changed every u_int64_t to uintmax_t, as we should use eventually
uint64_t anyway those days.


151654 25-Oct-2005 rwatson

Updates and enhancements to the multi-threaded httpd performance test
tool:

- Use uname(3) to query the OS name to report in the HTTP headers.
This is probably more useful than hard-coding FreeBSD.

- If no path is specified, create a 1k temporary file and send that
instead. Pass a file descriptor into http_serve() rather than using
a global fd.

- Add more carriage returns to the HTTP headers to be a bit more
correct. (Suggested by: andre)

- Read to a buffer rather than a single character to reduce the number
of recv() system calls pulling in the HTTP request.

- Properly wait for two, not one, \n's on input.


151443 18-Oct-2005 harti

Add first tests for semicolon handling. The first test fails. This is
probably a bug in the parser.


151442 18-Oct-2005 harti

Add more tests for escaped newline handling and fix a test that currently
should fail because of a bug in the parser (test 2).


151261 12-Oct-2005 ambrisko

This test can run now.


151175 09-Oct-2005 des

Add RELENG_6_0.


151172 09-Oct-2005 marcel

Rough implementation of the create and add verbs. The verbs cause
in-memory changes only and as such are only useful for prototyping
and regression testing purposes.


151069 07-Oct-2005 damien

Import iwi-specific tools. Can help debug firmware or connection issues.


150997 06-Oct-2005 rwatson

Don't hard-code port numbers, let the user specify them.


150992 06-Oct-2005 rwatson

Improve realism of benchmark httpd: return some HTTP headers as part
of the sendfile() system call.


150990 06-Oct-2005 rwatson

Add basic simplified HTTP benchmark tools to the netrate suite:

- http is a lightweight, multithreaded HTTP query tool, which performs
a timed measurement of the rate at which it can download files using
single-fetch HTTP/1.0. Other than specifying the IP and a URL path,
it requires zero configuration.

- httpd is a lightweight, multithreaded HTTP server tool, which exports
a single file of choice to the HTTP client, and responds with it no
matter what the request. Other than specifying the file to export,
it requires zero configuration.

The goal of these tools is to measure the network costs associated with
HTTP serving, rather than file system, HTTP protocol parsing, error
handling, etc, and as such, parts relating to less interesting components
of HTTP testing are intentionally omitted. Both are linked against
libpthread by default.


150970 05-Oct-2005 rwatson

Add simple TCP connect and TCP receive benchmark components, intended to
measure the rate of TCP connection round trips supported by a host at
the socket layer.


150956 05-Oct-2005 brooks

Add regression tests for trimdomain(3).


150734 29-Sep-2005 fjoe

Use mkuzip(8) instead of create_compressed_fs.


150717 29-Sep-2005 phk

Fix a bug in disk geometry calculation.

Fix NANO_TOOLS usage in FlashDevice()


150572 26-Sep-2005 phk

This one goes as well.


150571 26-Sep-2005 phk

Remove the old Makefile based nanobsd build method, the new shell script
based is far better and the only one supported from now on.


150553 25-Sep-2005 phk

Correct filesystem mountpoint


150511 24-Sep-2005 simon

Make it possible to set the NANO_TOOLS variable to a directory outside
of $NANO_SRC, which can e.g. be used if the nanobsd scripts are not in
the source tree being built.

Improved by: phk
Approved by: phk


150416 21-Sep-2005 philip

Fix typo. MAILWRAPER -> MAILWRAPPER.

Spotted by: Andrea Campi <andrea+freebsd_cvs_all -at- webcom.it>
Pointy hat to: philip


150412 21-Sep-2005 phk

Update these scripts to be more userfriendly and usage safe.


150367 20-Sep-2005 phk

Add a convenience function to set NANO_MEDIASIZE, NANO_HEADS and NANO_SECTS
for commonly used flash devices by

FlashDevice Sandisk 256MB

in the config file.


150366 20-Sep-2005 phk

Create an /etc/nanobsd.conf in the built image and put the disk drive name
there for scripts to use.

Create a noauto fstab entry for the configuration partition (/cfg).

Add NANO_TOOLS env-var to point to the nanobsd sources relative to
NANO_SRC.

Add -h argument which prints a usage.

Add -b argument which skips build steps and goes directly to install steps.

Complain about extraneous arguments, it's usually a forgotten '-c'

Add convenience function to register customization function.

Add some sample customization functions:
cust_comconsole
cust_allow_ssh_root

Rename setup_diskless() to setup_nanobsd(), it makes more sense.

Add various comments etc.


150343 19-Sep-2005 phk

Dump the environment for reference.
Add a function to add customization commands.


150332 19-Sep-2005 rwatson

Small regression test tool to generate two forms of ENOSPC on a file
system: out of blocks, and out of inodes. Useful for exercising the
uprintf(9) calls in UFS/ext2fs in order to detect races.


150328 19-Sep-2005 phk

Create fstab before linking stuff into /conf


150321 19-Sep-2005 phk

Missing ')'


150308 19-Sep-2005 marcel

o Extend the suite to run more than just the driver. We need to run
mdconfig(8), because we need a disk to work on.
o Extend the number of tests now that we have a disk.
o Simplify the driver. All parameters are ASCII strings now.


150305 19-Sep-2005 marcel

Add the beginnings of a testsuite for testing GPT control requests.
The testsuite is based on a simple driver program that builds a
request from the arguments passed to it and issues the request to
Geom. The driver emits FAIL with the error string or PASS depending
on whether the request completed with an error or not. A -v option
has been added to the driver and causes the request to be dumped.
The -v option to prove(1) controls the -v option to the driver.

The testsuite itself contains a hash of which the key constitutes
the arguments and the value is the expected result.


150286 18-Sep-2005 rwatson

Add a regression test for listen()'s backlog argument, both at time of
creation and at time of update using an additional call to listen().
This test also exercises SO_LISTENQLIMIT, a forthcoming socket option
that allows the retrieval (but not setting) of the queue limit.

Discussed with: andre


150263 17-Sep-2005 csjp

Remove reference to bpfstat, this no longer exists.


150156 15-Sep-2005 maxim

Remove checks for shutdown(2) on non-connected socket.


150094 13-Sep-2005 rwatson

Add two small tests to set and clear two file I/O flags using ioctl on
a fifo: FIONBIO, FIOASYNC.


150093 13-Sep-2005 rwatson

Restructure fifo_io event-related tests in order to support test cases
relating to O_RDWR file descriptors, which while not defined in POSIX,
are in fact used:

(1) Revise assumption that we have two file descriptors when testing I/O
operations on a fifo. Provide cleanup routines that handle either
two or three file descriptors (including a kqueue descriptor).

(2) Add an openfifo_rw() routine to supplement openfifo().

(3) kqueue_setup() now configures an existing kqueue to monitor a new
file descriptor, rather than allocating a new kqueue to monitor two
existing file descriptors.

(4) Wrap all direct poll/select/kqueue/FIONREAD interactions in a single
function, assert_status(), which takes a file descriptor, kqueue
descriptor, assertion of read/writable/exception states, and
test description, then tests the assertion. This reduces the bulk
of calls in many of the tests, making them shorter, more readable,
and easier to determine correct.

(5) Add a new test_events_rdwr() function, which performs a basic create/
write/read event test on a O_RDWR fifo file descriptor. This is
currently failed by our fifo code in HEAD due to a bug in FIONREAD
handling. Fix to be merged shortly.


150092 13-Sep-2005 csjp

Garbage collect bpfstat. This is handled by netstat now.

Requested by: rwatson


150091 13-Sep-2005 rwatson

Teach fifo_io how to use ioctl(FIONREAD) to determine if a fifo is
readable, and use that in addition to poll+select+kqueue to verify
appropriate readability.


150076 13-Sep-2005 rwatson

Remove a debugging printf.


150064 12-Sep-2005 rwatson

Comment test_lseek().

Add test_kqueue(), which registers and unregisters various kqueue filter
types on a fifo in order to make sure that EVFILT_READ, EVFILT_WRITE can
be registered, and that EVFILT_NETDEV can't be registered. For now, we
don't test that EVFILT_VNODE can be registered on fifos, as that has been
broken at some point.


150059 12-Sep-2005 rwatson

Further updates to fifo_io regression test:

- Teach fifo_io about kqueue monitoring of fifo file descriptor status,
and add test cases for kqueue to match existing case for poll and
select. Add a new cleanup routine, cleanfifokq(), for use in tests that
use kqueues. kqueue_setup() sets up kqueue sessions, and kqueue_status()
returns file descriptor status.

- Correct a bug in select handling relating to the nfds argument, which
was incorrect so resulted in select occuring on the wrong file descriptor,
and possible false positive/negative results.

- Clarify error reporting in one byte write+read tests to distinguish
errors in the after case from the before case.


150043 12-Sep-2005 maxim

o Add shutdown(2) regression tests. At the moment we cannot pass
shutdown-on-non connected socket test, kern/84761.


150032 12-Sep-2005 rwatson

Add fifo_misc, a regression test to hold misc. functional tests for fifos
that don't obviously fit into create, open, and io. For now, add only a
regression test to make sure that lseek() fails with ESPIPE (which it
doesn't).


150031 12-Sep-2005 rwatson

Use different temporary directory templates for fifo_io and fifo_open so
that if the tests fail to GC their working spaces, it's clear which it is.


150022 12-Sep-2005 rwatson

Add fifo_io, a regression test for I/O operations on POSIX fifos. We
currently can't pass this regression test due to broken poll() and
select() support for fifos, but past the basic I/O operation tests.


149998 11-Sep-2005 rwatson

After going to some trouble to create a temporary directory in which to run
fifo tests, chdir to it.


149985 11-Sep-2005 rwatson

Add fifo_open, a basic regression test for opening fifos, which tests
the blocking and non-blocking forms of open based on the POSIX spec for
now O_NONBLOCK should be handled.


149959 10-Sep-2005 rwatson

Add fifo_create, a simple regression test for mkfifo(2).


149810 05-Sep-2005 csjp

Now that the PID is constantly refreshed, introduce a pidname function which
when given a PID consults the kern.proc.pid sysctl variable to pull out the
pcomm data.


149796 05-Sep-2005 rwatson

Add a regression test to test two variations on the same bug: joining a
multicast group using a raw socket, then removing the interface on which
the group is found, and joining a multicast group using a udp socket,
then removing the interface on which the group is found. An if_disc
interface is used as the interface on which to attach.

NB: A panic currently results from running this regression test, so do
so with caution.

PR: 77665
Reported by: Gavin Atkinson <gavin dot atkinson at ury dot york dot ac dot uk>
Reported by: Brooks Davis <brooks at FreeBSD dot org>


149791 05-Sep-2005 stefanf

- Add tests for hash and return and more tests for set -e.
- Simplify regress.sh, sort tests.


149788 04-Sep-2005 stefanf

Simplify and add PR 77067 which addresses the same bug.


149785 04-Sep-2005 stefanf

Fix syntax error that crept in somehow.


149781 04-Sep-2005 stefanf

Add a couple of regression tests for /bin/sh.


149629 30-Aug-2005 sam

script to set ifs parameters based on distance; derived from program
of the same name by Gunter Burchardt

MFC after: 3 days


149605 29-Aug-2005 sobomax

Extend utility to allow recovering single file from the deffective
media.

MFC after: 2 weeks


149535 27-Aug-2005 simon

Correct a comment to match the configuration parameter it describes.

MFC after: 3 days


149474 25-Aug-2005 pjd

Add regression tests for '-L' option.


149472 25-Aug-2005 pjd

'-F' option behaviour was reverted, so revert previous commit.


149436 24-Aug-2005 pjd

'-F' option now needs locked pidfile. Modify regression tests respectively.


149381 23-Aug-2005 csjp

Add support for processing the "bd_locked" flag offered by the bpf
stats structure.


149120 16-Aug-2005 phk

Increase flexibility in disk-layout


149103 15-Aug-2005 phk

Put more stuff in logfiles instead of stdout


149082 15-Aug-2005 phk

Cleanup and polishing.


149073 15-Aug-2005 phk

After much experimentation, settle for the simplest model for customize
scripts.


149014 13-Aug-2005 phk

Prune empty directories in /usr

Move argv parsing.


148884 09-Aug-2005 phk

Update to latest version of this tool.

Takes about a week for a full run.


148800 06-Aug-2005 sam

sigh, sizeof the correct variable so we can match ifname's > 4 bytes


148681 03-Aug-2005 rwatson

Add a few more system call timing cases:

Rename current socket creation test to socket_stream.
Add new socket_dgram test.
Add new socketpair_stream test.
Add new socketpair_dgram test.


148665 03-Aug-2005 sam

simplify use with non-ath devices; search the wlan sysctl nodes to
locate the right one for the specified interface

MFC after: 3 days


148648 02-Aug-2005 phk

polish various bits.


148647 02-Aug-2005 phk

Ignore CVS directories


148614 01-Aug-2005 phk

typo


148604 31-Jul-2005 phk

Add stuff to HTML output.


148601 31-Jul-2005 phk

The beginnings of a tool to survey the build options (NO_THIS, NO_THAT etc)
for effect.


148513 29-Jul-2005 des

In realpath(), make sure each path component consists only of safe
characters, and untaint it.


148512 29-Jul-2005 des

Differentiate between empty and short reports, and raise the bar for what
we consider a short report to 128 characters. Canonicalize %%HOME%%.


148510 29-Jul-2005 des

Don't email reports that are empty or very short, as can happen if tbmaster
fails to exec the tinderbox script.


148473 28-Jul-2005 des

Shorten src / obj paths while capturing logs, making them both smaller and
easier to read.


148459 27-Jul-2005 pjd

Add regression tests (121 in total) for GEOM_ELI class.
To use them, run:

# prove /usr/src/tools/regression/geom_eli

Sponsored by: Wheel Sp. z o.o.
http://www.wheel.pl
MFC after: 1 week


148425 26-Jul-2005 csjp

Add a description for bpfstat


148424 26-Jul-2005 csjp

Introduce a bpfstat utility. This program can be used to retrieve
stats provided by bpf(4). This program will live in tools/ for now
until we figure out where it will live permanently. Based on some
discussions on developers@, it is likely that we will be adding
this functionality to netstat(1) at some point.


148422 26-Jul-2005 phk

Add the first snapshot at rewriting the nanobsd build to be a shellscript.

The overall idea is to get a single build script which will not need
editing, but instead overrides and changes happen by config files passed
as arguments.


148378 25-Jul-2005 philip

Add some more NO_FOO options. I'm not sure if they're correctly sorted in the
size-scheme. Also add commented NO_BIND_FOO options for people who want named
but not all of the bloat it likes to include by default.

While here, make a comment about BOOT_COMCONSOLE_SPEED.


148377 25-Jul-2005 philip

Add fstab entries for ALTROOTSLICE and CFGSLICE, allowing us to do away with
most of the hardcoding of device names in installed convenience scripts.

Provide a new script (root/updatep) to easily update the ALTROOTSLICE. It
does the same as updatep1/updatep2 without hardcoded device names. If noone
protests, I'd like to get rid of updatep1/updatep2 at some point.

As an extra bonus: turn on the error led while updating (on hardware with a
led).


148327 23-Jul-2005 pjd

Change jail IP from 1.0.0.127 to 127.0.0.1, which shows, that this test
doesn't examine the real issue as it pass without problems.


148322 22-Jul-2005 sam

update for recent additions


148321 22-Jul-2005 sam

update with new msg classes


148311 22-Jul-2005 rwatson

Add a simple multicast socket regression test set:

- Test that the basic socket options have the right defaults, that we can
change them, read them back, etc.

- Add and remove some multicast addresses.

- Send a loopback multicast address and make sure it arrives intact.

There's more that could be done here, but it's a start.

MFC after: 3 days


148224 21-Jul-2005 phk

In 2003, a -s flag was added to ministat to separate the
avg/median/stddev bars onto separate lines for readability if the
ranges overlapped. In 2005, ministat was extended to support more than
2 datasets, but the -s code was not updated. It will coredump if run
with -s and >2 sets.

PR: 82909
Submitted by: Dan Nelson <dnelson@allantgroup.com>


148209 20-Jul-2005 des

Catch up.


148208 20-Jul-2005 des

Remove redundant rc files.


148207 20-Jul-2005 des

CURRENT -> HEAD, and dump ia64 and powerpc.


148206 20-Jul-2005 des

Use 'HEAD' instead of 'CURRENT', while retaining backward compatibility.


148205 20-Jul-2005 des

Include RELENG_4_11 and RELENG_4.


148204 20-Jul-2005 des

Include RELENG_5_4 and RELENG_5. Chuck out ia64.


148203 20-Jul-2005 des

Add rc files for RELENG_6.


148117 18-Jul-2005 imura

Add another regression tests for msdosfs which covers msdosfs_conv.c rev 1.45.

Requested by: silby


148024 15-Jul-2005 gad

Correct one regression test (which was expected an incorrect answer), and
add a few more tests. This matches bug fixes recently committed to 'env'.


147985 14-Jul-2005 philip

Fix a minor buglet making the code match the comment. Fractional cylinders
confuse fdisk and break the NanoBSD build.

This is an MT5/6 candidate.

MFC after: 3 days


147522 21-Jun-2005 gad

Upgrade these regression tests to track recent changes to `env'.

Approved by: re (blanket `env')


147495 20-Jun-2005 gad

Add a suite of regression tests for all the recent changes to `env',
using my own script to handle it. I wrote my own partially because
of all the quoting-issues involved with testing what I wanted to test,
and partially because this lets me commit one script and one data file,
instead of one-file-per-regression-test.

This suite was good enough for my initial testing (and it did help me
find a few bugs that would have otherwise been missed). I'm not sure
how well it will work in general use, but I figured I might as well
commit it. It won't *hurt* to have it available. At the worst, people
can just ignore it.

Approved by: re (blanket `env')


147300 11-Jun-2005 maxim

o setsockopt(2) cannot remove accept filter. [1]
o getsockopt(SO_ACCEPTFILTER) always returns success on listen socket
even we didn't install accept filter on the socket.
o Fix these bugs and add regression tests for them.

Submitted by: Igor Sysoev [1]
Reviewed by: alfred
MFC after: 2 weeks


147035 06-Jun-2005 sobomax

Add entry for recoverdisk.


146856 01-Jun-2005 harti

Add a test for escaped newline handling.


146855 01-Jun-2005 harti

Add support for TODO tests. These are tests that are supposed to fail,
because of a make bug that should be fixed.


146822 31-May-2005 harti

Change the test infrastructure so that tests are easier to maintain and
so that make(1) will run in an almost clean environment and enhance the
description of the test infrastructure.

Add the ability to have multiple tests carried out per test script.

Give some tests more meaningful names.

Fix the usage message from the test scripts.

Make it possible to pass several commands to the test scripts like:
'sh test.t setup run compare clean'.


146689 27-May-2005 rwatson

dd a '-n' option to ministat, which causes it to display only summary
statistics, not graph and statistical test output. Useful for automated
processing.


146454 20-May-2005 harti

Add a test to check whether in compat mode make detectes builtins
on the command line and really executes the shell instead of directly
executing the command.


146452 20-May-2005 harti

Add a test to ensure that in compat mode when a line contains no
shell meta characters it is not passed to the shell, but the command
is executed directly (given that the line is not a shell builtin) and
that the line with a meta character is passed to the shell.


146449 20-May-2005 harti

Add a test that test whether we can replace the shell to use by
make with another shell and set all its parameters (meta and builtins
not tested here).


146406 19-May-2005 phk

Make the path to make.conf a parameter which can be overridden.

NB: you have to use absolute path!


146405 19-May-2005 phk

Save space by using -b 4096 -f 512 for newfs.
Retain -i 8192 to avoid wasting inodes.


146404 19-May-2005 phk

Run the "files" customization script


146402 19-May-2005 phk

Add some runtime admin/tool scripts


146399 19-May-2005 phk

Add a couple of basic customization scripts.


146386 19-May-2005 phk

Explain the magic


146381 19-May-2005 harti

Some test cases for .SHELL target: builtin shell selection and
changing the path of a builtin shell.


146261 16-May-2005 ru

Make <runefile.h> internal to libc.

Suggested by: phantom


146251 16-May-2005 rwatson

Add an #ifdef'd non-blocking version of the test.

Update copyright.


146250 16-May-2005 rwatson

Close the connect socket as well as the listen socket on completion.

Update copyright.


146234 15-May-2005 marcel

o -n option added.
o -x option added.


145904 05-May-2005 avatar

Catching up with the latest crypto API changes in net80211.

Reviewed by: sam


145901 05-May-2005 ume

add simple test script.


145885 04-May-2005 ume

- add $FreeBSD$.
- enable -r option for regress target.


145860 04-May-2005 ume

- add $FreeBSD$.
- do service lookup.
- add options to use gethostbyname(3) or getipnodebyname(3) instead
of getaddrinfo(3).
- add option to do reverse lookup.


145858 04-May-2005 ume

This commit was generated by cvs2svn to compensate for changes in r145857,
which included commits to RCS files with non-trunk default branches.


145719 30-Apr-2005 des

Reduce diffs against actual production configuration.


145718 30-Apr-2005 des

Remove a line which merely echoed the builtin default.


145717 30-Apr-2005 des

Split the 'clean' command into 'cleansrc', 'cleanobj' and 'cleanroot'.
Specifying 'clean' is equivalent to specifying all three.


145716 30-Apr-2005 des

Add 'cleanobj' to the default target list.


145620 28-Apr-2005 harti

Add an initial regression test suite for make(1).

Submitted by: Max Okumoto <okumotu@ucsd.edu> (partly, initial version)


145468 24-Apr-2005 davidxu

Adjust code to be more reliable.


145467 23-Apr-2005 davidxu

Add a program to test if tls data is clean.


145367 21-Apr-2005 mux

Fix printf() format string errors with 64-bit architectures.

Spotted by: pav


145282 19-Apr-2005 phk

Remove redundant line, add comment about termcap


145233 18-Apr-2005 avatar

Adding another multi-byte characters related regression test for msdosfs.

Tested by: njl
Reviewed by: silby, bde, sam (mentor)


145176 17-Apr-2005 silby

Add another regression test - one we don't pass right now.


145175 17-Apr-2005 silby

Have the regression test use a path in /tmp for a mount point
instead of a directory that only exists on my machine.


145165 16-Apr-2005 trhodes

Those who are ungodlike should be returned an error.


145141 16-Apr-2005 rwatson

Starting point for a regression test for mac_bsdextended(4)/libugidfw(3).
Currently only performs basic tests against the library string routines,
and queries less important kernel state.

Obtained from: TrustedBSD Project
Sponsored by: SPAWAR, SPARTA
MFC after: 3 days


145086 14-Apr-2005 stefanf

Also test \0 in the format string.


145033 13-Apr-2005 phk

sort and expand the prunelist in a more or less generally sensibly
order. Put some strategic comments in about how much storage is
necessary and a longer explanation on the top.

It is now pretty trivial to put nanoBSD on as little as a 64MB CF card.

Sponsored by: Soekris Engineering.


145032 13-Apr-2005 phk

Introduce NANOBSD_PRUNE which can be used to zap out bits we don't
want to carry forward.


145031 13-Apr-2005 phk

Use df -i


145028 13-Apr-2005 stefanf

Add a few regression tests for printf(1).


145003 13-Apr-2005 phk

Add NO_DICT handle. Saves almost 3.5 MB installed.


144993 13-Apr-2005 mdodd

Add support for more than two datasets. Currently limited to 7 though
the limit is only the number of meaningful graph symbols available.

Statistical comparison is performed between the first dataset and
any further datasets.

No objection by: phk


144982 13-Apr-2005 mdodd

Save argv[0] and use it in usage message.


144944 12-Apr-2005 avatar

Adding a brief description for pirtool.

Reviewed by: sam (mentor)


144850 10-Apr-2005 rwatson

Centralize usage in usage(), and use in preference to fprintf().

List possible tests in usage().

When running a test, print the test name.


144784 08-Apr-2005 silby

A simple regression test for msdosfs. Not the best, but it would have caught
the recent trouble msdosfs had.


144533 02-Apr-2005 das

Add missing test-rem.t.


144349 30-Mar-2005 sam

print new stats for cts burst extension logic


144345 30-Mar-2005 sam

fix typo


144304 29-Mar-2005 sam

handle rejoin event


144094 25-Mar-2005 das

A few simple regression tests for remainder(), remainderf(),
remquo(), and remquof().


143880 20-Mar-2005 pjd

Add regression tests for pkill/pgrep.

MFC after: 3 days


143864 20-Mar-2005 jmg

I forgot to commit this fix that is now kgdb aware...


143763 17-Mar-2005 phk

I keep forgetting that I wanted the customize logs collected too.

Reminded by: Lennart Sorth, Andrea Campi and others.


143710 16-Mar-2005 das

- Replace fe[gs]etmask() with feenableexcept(), fedisableexcept(), and
fegetexcept().
- Add additional tests for the above.
- Output a separate success message for each of the 8 components of
this set of tests.


143565 14-Mar-2005 jeff

- ktrace(1) has nothing to do with schedgraph. Remove that from the
instructions.


143473 12-Mar-2005 phk

Add NO_GPIB


143472 12-Mar-2005 phk

DTRT with /var so that any packages installed are correctly recorded.


143471 12-Mar-2005 phk

Enable packet mode in boot0, this makes it unimportant if the
geometry is 100% correct on most hardware.


143413 11-Mar-2005 rwatson

Check the return value of shutdown().


143409 11-Mar-2005 rwatson

Add sigpipe, a simple UNIX domain socket and TCP regression test that is
intended to verify that SIGPIPE is delivered to a process writing or
sending on a socket that has been shut down for write. If available,
SO_NOSIGPIPE is also tested.

This regression test is currently passed by RELENG_4, but not by HEAD or
RELENG_5, due to a bug in the write() code for sockets. SO_NOSIGPIPE is not
present in RELENG_4, however, so is not tested there.

Reported by: Mikko Tyolajarvi <mbsd at pacbell dot net>
PR: 78478


143231 07-Mar-2005 das

Test cases for nextafter{,f,l} and nexttoward{,f,l}.


143096 03-Mar-2005 des

Markup nits.


143095 03-Mar-2005 des

Correct the default value for %%TINDERBOX%%.


143044 02-Mar-2005 ru

Add hacks that I use to test cross-builds (by building on
native and foreign architectures and comparing products).
They eliminate most of the differences caused by different
object directory paths, timestamping, and identification.

(Note WORLDTMP was renamed to ${OBJTREE}${.CURDIR}/tmp.)


143032 02-Mar-2005 harti

Repo-copy tools/regression/usr.bin/make to tools/build/make_check
and adjust the path in the Makefile for the upgrade_checks target.
These checks are really feature upgrade checks that should be fast
and just find out whether we need to build a new make before
proceeding with other targets like buildworld. This makes the
place free for a real regression test suite in the old place.


142976 02-Mar-2005 ambrisko

This will not compile without:
http://www.ambrisko.com/doug/listio_kqueue/listio_kqueue.patch

Note: it is a good idea to run this against a physical drive to
exercise the physio fast path (ie. lio_kqueue /dev/<something safe>)
This will ensure op's counting per LIO request is correct. It is
currently broken the above patch fixes it.

Sponsored by: IronPort


142971 02-Mar-2005 ambrisko

Add an AIO & kqueue regression test. It is a good idea to run this
against a disk as the argument. If you don't it will use a temp file.
The raw disk will use the kernel physio fast path method until the
max number of pending op's is reached then it will queue them. File
system op's are always queued. This is more important with LIO since
operation can get split across and accounting of op's is broken with LIO.

Note that this was broken when locking was added to kqueue (ie. 5.3)
My fix needs to be better integrated with FreeBSD.

Next is an LIO test and implementation.

Sponsored by: IronPort


142871 01-Mar-2005 trhodes

Add sysdoc, a small set of scripts which will parse a kernel binary and
modules to rip out the available sysctls. It will then produce a manual
page which may be installed with 'make install'. Currently typing 'make'
in the directory uses the default /boot/kernel files. To use a specific
directory, run sysdoc -k [location].


142843 01-Mar-2005 das

- Split tests into three rough categories.
- Use fesetround() instead of fpsetround(), and add tests for
various rounding modes.
- Test that all NaNs generated are quiet.

Some of these tests won't pass until problems in vendor sources
(gdtoa and gcc) are fixed and new versions imported, but I
want to get these changes into the tree before I accidentally
blow them away again. :-(


142842 01-Mar-2005 das

- Split the printfloat test into 11 individually wrapped and packaged
tests. (Buy 10, get one free!) The separate categories were
already there; they just weren't labeled.
- Use fesetround() instead of fpsetround(), since the former is
standard and implemented on all supported architectures. Add
tests for each rounding mode.
- Add additional tests for subnormals.

Some of these tests won't pass until problems in vendor sources
(gdtoa and gcc) are fixed and new versions imported, but I
want to get these changes into the tree before I accidentally
blow them away.


142683 27-Feb-2005 ru

Bootstrap gencat(1).

OK'ed by: phantom


142640 27-Feb-2005 ru

As threatened, drop support for source upgrades from pre-5.3.

Inspired by: obrien


142582 26-Feb-2005 ru

Make the format of LC_CTYPE files architecture independent by
introducing the disk formats for _RuneLocale and friends.

The disk formats do not have (useless) pointers and have 32-bit
quantities instead of rune_t and long. (htonl(3) only works
with 32-bit quantities, so there's no loss).

Bootstrap mklocale(1) when necessary. (Bootstrapping from 4.x
would be trivial (verified), but we no longer provide pre-5.3
source upgrades and this is the first commit to actually break
it.)


142146 20-Feb-2005 rwatson

Add a simple regression test for stream UNIX domain sockets and the
bind()/connect() system calls, which is intended to confirm that the
right successes and errors occur when rendezvousing via the file system
name space.


141762 12-Feb-2005 rwatson

Also build the netblast sub-directory, not just netreceive and netsend.

MFC after: 3 days


141761 12-Feb-2005 rwatson

Mark the signum argument to signal_handler() as __unused.

MFC after: 3 days


141750 12-Feb-2005 ru

Add to CFLAGS.


141640 10-Feb-2005 phk

Update a little bit.


141452 07-Feb-2005 obrien

Fix "to a file" example so it works (one must touch(1) the file first).


141438 07-Feb-2005 des

Sort branches in correct numeric order.


141392 06-Feb-2005 des

Replace RELENG_4_9 (no longer supported) with RELENG_4_11.


141097 01-Feb-2005 nik

Add to CFLAGS, rather than overriding it. Use LDFLAGS for the -L option,
and LDLIBS to specify -ltap.

Submitted by: ru


141092 01-Feb-2005 nik

Link against libtap (ports/devel/libtap). Replace the calls to assert()
with calls to libtap::ok1(), and make sure the correct number of tests is
planned for, and that the exit code is correct.


141053 30-Jan-2005 phk

Use awk to correctly calculate partioning, round things off to cylinders
and reserve first track etc.


140922 28-Jan-2005 marcel

Wrap calls to memcpy(3) in a function called block_copy(). This way,
and as long as we're not compiling with IPA, gcc(1) won't optimize
the call away. The whole purpose of using memcpy(3) is to avoid
misaligned loads and stores when we need to read or write the value
in the unaligned memory location. But if gcc(1) optimizes the call
to memcpy(3) away, it will typically introduce misaligned loads and
stores. In this context that's not a good idea.


140920 27-Jan-2005 marcel

Skip the register based postinc stores here and don't count them
in the number of tests. This way we avoid skipped tests for non-
existent memory access combinations. The number of tests dropped
from 60 to 48.


140919 27-Jan-2005 marcel

Make the local variables global so that the compiler cannot assume
too much about them. This prevents certain peephole optimizations
at -O that invalidate the tests.


140918 27-Jan-2005 marcel

Fix the unaligned store with post increment test: The misaligned pointer
stopped pointing to the value the moment we wrote it due to the post
increment. So, grab the value for comparison out of the data structure
directly.


140893 27-Jan-2005 marcel

The unit test for unaligned loads/stores can be found under ../ia64.


140892 27-Jan-2005 marcel

Add tests for post increment. This bumps the number of tests up to
60. The postinc store tests currently fail (value mismatch). Hence
the score as of this commit is 48 out of 60. Either the kernel or
the tests need to be fixed.


140643 22-Jan-2005 rwatson

Use WARNS?= instead of WARNS= in Makefiles so that global warning
settings can override local ones.

Pointed out by: ru


140599 21-Jan-2005 ru

Fixed xrefs.


140589 21-Jan-2005 bms

Braino. Revert previous commit, NO_MAN was already corrected.

Noticed by: imp


140586 21-Jan-2005 bms

Catch up with NO_MAN->NOMAN change.


140585 21-Jan-2005 bms

If a device resides in physical slot 0, report it as being on-board as
per PIR specification.
Add the VIA VT82C686 PCI interrupt routing function as a known chipset.


140584 21-Jan-2005 bms

Fix a masking error. Update copyright.


140583 21-Jan-2005 bms

Do not treat an invalid PIR table checksum as a fatal error condition, but
do print a warning about it.
Correct a stupid logic error.
Update copyrights. Fix whitespace bug.

MFC after: 1 week


140558 21-Jan-2005 silby

Add two more pipe regression tests. Not yet hooked into the test framework.


140407 18-Jan-2005 phk

ioctl(2) commands are u_long not int.
Pass zero for sysctl new argument length, not NULL);


140352 16-Jan-2005 rwatson

In refactoring the test before committing, a pointer was passed instead
of a structure for the sockaddr_in. Pass the pointer to connect()
instead of the pointer to the pointer.

Specify a port number to connect to.


140348 16-Jan-2005 rwatson

Add udpconnectjail, a simple regression test to exercise an (as yet)
unfixed bug in the jail() implementation relating to using the connect()
system call on UDP sockets.

PR: 26506


140109 12-Jan-2005 sobomax

Add test which excersises problem with unability to change association of
already associated datagram unix domain socket by issuing connect() system
call.


140089 11-Jan-2005 das

Regression tests for [l]lrint[f]() and [l]lround[f]().


140074 11-Jan-2005 pjd

Introduce a new GEOM class - SHSEC. It provides sharing secret between
the given providers. Without even one of the configured components there
should be no way to get the secret.

Supported by: WHEEL Sp. z o.o.
http://www.wheel.pl


140069 11-Jan-2005 pjd

Fix incorrect comment.

MFC after: 3 days


139701 05-Jan-2005 arr

- Initial revamp of vop_table.tcl. This scripting is ugly and will be
cleaned up; just wanted to make a place holder. The biggest issue is
that it is an incomplete revamp; that is... the inconsistent naming
table generation is not done yet ... will be added soon with the clean
up. The purpose of this script is to handle the vop_vector changes that
phk@ did over the recent weeks.


139651 03-Jan-2005 rwatson

Add a simple regression test for mlock()/munlock() to make sure they
work on a single page as root, and fails on a single page as nobody.
Intended to help diagnose reports regarding insecure memory use with
gnupg.


139596 02-Jan-2005 marcel

Replace a mention of the ia64_unaligned directory with one of the
ia64 subdirectory. All ia64 specific regression tests live under
the ia64 directory.


139595 02-Jan-2005 marcel

Regression test for unaligned loads and stores for short, int, long,
float, double and long double types. No post-increment tests yet.
All tests are skipped if the debug.unaligned_test sysctl variable
cannot be set to 1.


139529 31-Dec-2004 sam

new stat


139366 28-Dec-2004 arr

- Add some notes on what is required to run schedgraph.py successfully.
This was pulled from Jeff Roberson's email to current@ "the other day."

Approved by: jeff@


139321 26-Dec-2004 jeff

- For preemption and yield events, we want to skip the next two state events
as they are the setrunqueue() and sched_add() calls. Since they happen
immediately before the thread is placed on a run queue they would normally
dwarf the more informative preemption or yield event and it is implicitly
understood that a thread is back on the run queue as part of these events.


139320 26-Dec-2004 jeff

- Call self.checkstamp() in the cpu load parsing functions in case the
timestamp has wrapped.


139319 26-Dec-2004 jeff

- The regexp for the load should have been (/d+), fix this so loads over 9
are properly represented.


139313 26-Dec-2004 jeff

- Add 'schedgraph' a scheduler trace visualization tool written with
python and tkinter. Schedgraph takes input from files produces by
ktrdump -ct when KTR_SCHED is compiled into the kernel. The output
represents the states of each thread with colored line segments as well
as colored points for non-state scheduler events. Each line segment and
point is clickable to obtain extra detail.


139142 21-Dec-2004 pjd

Wait a bit after creating device.


139141 21-Dec-2004 pjd

When RAID3 device is configured in "verify" mode, synchronization of the
parity component is now force on creation.
Change regression test which check "verify" mode to work properly after
this change.


139121 21-Dec-2004 keramida

Fix the build of netrate/ with WARNS=5 and add a Makefile.inc to
make it the default for all the netrate test tools.

Approved by: rwatson


139119 21-Dec-2004 ru

NOHTML -> NO_HTML


139118 21-Dec-2004 ru

Overhaul ppp(8) build options so they are safe to use in
/etc/make.conf:

NOALIAS -> retired (support provided by PPP_NO_NAT)
NOATM -> PPP_NO_ATM (also subject to NO_ATM global)
NODES -> PPP_NO_DES (support was broken, now recovered)
NOI4B -> PPP_NO_I4B (also subject to NO_I4B global)
NOKLDLOAD -> PPP_NO_KLDLOAD
NONAT -> PPP_NO_NAT
NONETGRAPH -> PPP_NO_NETGRAPH
NOPAM -> PPP_NO_PAM (will be subject to NO_PAM global)
NORADIUS -> PPP_NO_RADIUS
NOSUID -> retired (support provided by PPP_NO_SUID)
PPP_NOSUID -> PPP_NO_SUID


139115 21-Dec-2004 ru

NOINET6 -> NO_INET6


139114 21-Dec-2004 ru

NOGAMES -> NO_GAMES


139106 21-Dec-2004 ru

NODOCCOMPRESS -> NO_DOCCOMPRESS
NOINFO -> NO_INFO
NOINFOCOMPRESS -> NO_INFOCOMPRESS
NOLINT -> NO_LINT
NOPIC -> NO_PIC
NOPROFILE -> NO_PROFILE


139105 21-Dec-2004 ru

NOATM -> NO_ATM


139104 21-Dec-2004 ru

NOLIBC_R -> NO_LIBC_R
NOLIBPTHREAD -> NO_LIBPTHREAD
NOLIBTHR -> NO_LIBTHR


139103 21-Dec-2004 ru

Start the dreaded NOFOO -> NO_FOO conversion.

OK'ed by: core


139017 18-Dec-2004 phk

Change terminal state, not terminal type


138822 13-Dec-2004 gallatin

Make kttcp work in -stable (and -current)

- Removed kttcp_sosend() and kttcp_soreceive() in favor of using
sosend() / soreceive() with UIO_NOCOPY. The locking changes in the
socket layer make merging the kttcp_so* and the so* routines a real
pain. It was a lot easier to just use the integrated routines.

- Eliminated KTTCP_MAX_XMIT restrictions on send and receive sizes
because I encountered no problems with streams larger than MAX_INT.
MAX_INT bytes is only good for a few seconds at 4Gb/sec ;)

- Removed Giant from send / recv routines.

- Fixed character device protos, cdevsw init, etc, to work in 5.x /
6.x

Reviewed by: sam
MFC after: 1 week


138578 08-Dec-2004 sam

Loadable modules that run test vectors for net80211 crypto plugins.


138576 08-Dec-2004 sam

o new tools for futzing with 80211 and ath debug masks symbolically
o update stats programs to reflect driver and net80211 changes


138515 07-Dec-2004 harti

Fix builds with a read-only directory and a make upgrade. This is done
by forcing the creation of an object directory for the make regression
tests. Let make handle the tracking of the dependency and installation
of test_shell script.

Submitted by: ru


138513 07-Dec-2004 pjd

Raidtest is now in the ports collections.


138449 06-Dec-2004 rwatson

Print a warning if running as !root for aio_md_test rather than failing
the test. Privilege is required in order to allocate an md device.


138447 06-Dec-2004 rwatson

Add a basic aio functionality regression test, which simply writes and
then reads from a fairly broad range of object types: regular file,
fifo, UNIX socketpair, pty, UNIX pipe, and an md device. Not a deep
test of functionality, just a basic test that aio_write followed by
aio_read returns the correct data in a relatively timely manner.

Requested by: phk


138432 06-Dec-2004 ru

Make this work under debugging, e.g., "make -dl".


138381 05-Dec-2004 obrien

Now as a full blown port.


138317 02-Dec-2004 harti

Make the tests runnable on a read-only src. To do this you must make sure
that you create one of the object directories make knows (see make(1)).
This uses the -C flag, so add a test that checks that make actually accepts
-C. Also fix the test that selects csh via the .SHELL target to work for
tcsh users too.

This commit renames shell_test to shell_test.sh. There is no history
to preserve so go without a repo-copy.

Reviewed by: ru


138269 01-Dec-2004 nik

The following code sets up two connected TCP sockets that send data to each
other until the window is closed. Then one of the sockets is closed, which
will generate a RST once the TCP at the other socket does a window probe.

All versions of FreeBSD prior to 11/26/2004 will ignore this RST into a 0
window, causing the connection (and application) to hang indefinitely.
On patched versions of FreeBSD (and other operating systems), the RST
will be accepted and the program will exit in a few seconds.

Submitted by: Michiel Boland
Reviewed by: silby


138227 30-Nov-2004 harti

Chmod the shell testscript to be executable if it isn't already. According
to the CVS-Meisters x-mode just happens to work, but is not guaranteed to
do so. Try to be on the safe side.


138161 28-Nov-2004 phk

Change CUSTOMIZE example.


138160 28-Nov-2004 phk

Make it possible to specify a list of customize scripts.

Look for them in ./Customize first, then relative to . and then absolute.


138159 28-Nov-2004 phk

Add various customize scripts.


138158 28-Nov-2004 phk

Hardlink the generated /etc/fstab to /conf/base/etc/fstab


138152 28-Nov-2004 phk

don't mv(1) nonexistent directories.


138151 28-Nov-2004 phk

Reduce -j12 to -j3


138080 25-Nov-2004 harti

Add some regression tests for the .SHELL target. I'm not sure that the
output of shell_2j is actually correct - it just tests what make currently
does. Make should switch on echoing for the second line, shouldn't it?


138073 25-Nov-2004 peter

Remove the build32.sh hack, it is now slightly broken (missing some
compile args) and would be harmful to use. Leave the README pointing
to WITH_LIB32 for now.


137960 21-Nov-2004 tjr

Remove regression tests for the obsolete rune interface.


137923 20-Nov-2004 das

Remove the uarea column from the DDB 'ps' display, and from grog's gdb
scripts.

Reviewed by: arch@


137892 19-Nov-2004 obrien

Catch up with PHK's sio(4) cuaa->cuad rework [sys/dev/sio/sio.c rev. 1.456].


137882 19-Nov-2004 obrien

Catch up with PHK's sio(4) cuaa->cuad rework [sys/dev/sio/sio.c rev. 1.456].


137675 13-Nov-2004 bz

Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.
If turned on no NIS support and related programs will be built.

Lost parts rediscovered by: Danny Braniss <danny at cs.huji.ac.il>
PR: bin/68303
No objections: des, gshapiro, nectar
Reviewed by: ru
Approved by: rwatson (mentor)
MFC after: 2 weeks


137587 11-Nov-2004 nik

Switch over to a different, more flexible test output protocol that's
understood by Perl's Test::Harness module and prove(1) commands.

Update README to describe the new protocol. The work's broken down into
two main sets of changes.

First, update the existing test programs (shell scripts and C programs)
to produce output in the ok/not ok format, and to, where possible, also
produce a header describing the number of tests that are expected to be
run.

Second, provide the .t files that actually run the tests. In some cases
these are copies of, or very similar too, scripts that already existed.
I've kept the old scripts around so that it's possible to verify that
behaviour under this new system (in terms of whether or not a test fails)
is identical to the behaviour under the old system.

Add a TODO file.


137581 11-Nov-2004 des

RELENG_5 is now -STABLE (but without powerpc)


137330 07-Nov-2004 des

Install in /usr/local/bin.


137318 06-Nov-2004 pjd

Add description of all available options.


137317 06-Nov-2004 pjd

Allow to write random data while testing RAID device, so we can also
test data integrity.


137206 04-Nov-2004 phk

Remove vinum bits.


137201 04-Nov-2004 phk

Remove references to NO_VINUM


137130 02-Nov-2004 rwatson

Add a small regression test that opens a TCP socket, listens on it,
performs a non-blocking connect from another socket, and then closes
the listen socket rather than accepting. This is intended to
exercise the close path in which connections are aborted due to a
close on the listen socket while the connection is in the listen
queue.


136955 25-Oct-2004 blackend

Typo: s/Exampes/Examples


136912 24-Oct-2004 ru

For variables that are only checked with defined(), don't provide
any fake value.

While here, sort NO*'s in dictionary order to ease searching by a
human being.


136910 24-Oct-2004 ru

For variables that are only checked with defined(), don't provide
any fake value.


136844 23-Oct-2004 rwatson

Use errx() instead of fprintf()/exit() for conciseness.

Suggested by: ru (some time ago)


136843 23-Oct-2004 rwatson

Use errx() instead of perror()/exit() for conciseness.

Suggested by: ru (some time ago)


136842 23-Oct-2004 ru

Add a regression test for the alternate shell specification.


136815 23-Oct-2004 des

Use %zu to format size_t instead of %jd and an intmax_t cast.

Approved by: hamlet


136808 23-Oct-2004 phk

Stop amd64 warnings.


136768 22-Oct-2004 blackend

Add NO_BLUETOOTH and NO_AUTHPF variables. [1]
While I'm there use lowercase "yes" for consistency.

Approved by: phk [1]


136766 22-Oct-2004 blackend

Sort NO* variables.

Approved by: phk


136748 21-Oct-2004 blackend

Remove NOLIBPTHREAD=yes since BIND related binaries (dig etc.) require
LIBPTHREAD.

Approved by: phk


136639 18-Oct-2004 keramida

Typo fix.

PR: misc/72801
Submitted by: Hywel Mallett <circular@hmallett.co.uk>


136618 17-Oct-2004 maxim

Fix a typo: s/kerncruft/kernelcruft/.

PR: misc/72792
Submitted by: Hywel Mallett


136613 17-Oct-2004 ru

Fixed a typo.

Submitted by: Pawel Worach


136497 13-Oct-2004 keramida

Add a regression test for floating-point output in the Greek locale.
See revision 1.3 of src/share/numericdef/el_GR.ISO8859-7.src

Reviewed by: das (a while ago)


136405 11-Oct-2004 peter

Don't leave noschg files laying around in /tmp


136391 11-Oct-2004 rwatson

Resort unprivileged uid with privileged socket after unprivileged uid
with privileged socket in test runs.

If running unprivileged and instructed to use unprivileged sockets,
don't try and use raw sockets.


136390 11-Oct-2004 rwatson

A number of improvements to the IP socket option API regression test:

- Consistently use err/errx/warnx throughout, rather than using perror()
and exit().

- Teach the tests how to better manage (and therefore test) privilege:
in particular, how to create sockes with root credentials but exercise
the privileges with non-root credentials, etc.

- Teach the test suite to apply each of the non-IP_HDRINCL options across
each of SOCK_DGRAM, SOCK_STREAM, and SOCK_RAW.


136387 11-Oct-2004 stefanf

Add regression tests for ilogb{,f,l}().


136384 11-Oct-2004 rwatson

Add a simple exercise suite for IP-level socket options. The suite
atempts to read and write various IP-level socket options as root and
nobody, making sure the initial values are as expected, that they can
be changed to valid values and take effect, etc. No attempt is made
to check for the correct implementation of side effects (such as
changes in packet headers) as yet.

The IP options section is currently broken but will be fixed shortly.

Not all multicast options are currently tested.


136337 09-Oct-2004 rwatson

Add a simple C-based TCP connection generator, which generates and
closes the specified number of TCP connections sequentially and
synchronously. Useful for trying to trigger races in the accept
code.


136274 08-Oct-2004 rwatson

Add a version of netsend that uses the interval timer rather than
explicit clock reads to set an overall duration to the send, and
blasts rather than trying to clock output. The goal of netblast,
unlike netsend, is to send as many UDP packets as possible; the
cost is that there's no ability to control the rate, and there's
less accuracy in the timing as the interval timer granularity is
relatively low.


136259 08-Oct-2004 rwatson

Use int format string, not a long format string.


136257 08-Oct-2004 phk

Only print progress statistics once per second.


136157 05-Oct-2004 sam

add 80211watch program


136156 05-Oct-2004 sam

simple program to watch 802.11 events through a routing socket


135954 30-Sep-2004 rwatson

While calling perror() on send() failure was useful for debugging the
if_em "wedging" problem, large numbers of perror() calls impacts send
performance. As such, just count the error, don't print it.


135952 30-Sep-2004 rwatson

Add syscall_timing, a simple timing micro-benchmark for some
characteristic system calls. I've been sending this to people for
a while, and figured it would be more efficient to just put it in
CVS.


135911 28-Sep-2004 phk

This is a small tool which will read an entire disk(partition) using
1M blocks and optionally write the read data to a file or disk.

If a read error happens, the 1M block gets put on the end of the worklist
and will be retried with 64k blocksize.

If a read error happens again, the 64k block gets put at the end of the
worklist and will be retried with single sector reads.

The program keeps trying until you stop it.

You can refresh a disk:

recoverdisk /dev/ad1 /dev/ad1

or salvage a floppy:

recoverdisk /dev/fd0 myfloppy.flp


135760 24-Sep-2004 jmg

add my script that helps me handle MFC's. It takes in a commit message
and generates the proper (hopefully) update -j lines + commit line to do
the MFC... This has saved me a lot of time doing recent MFC's...

You still should use diff to verify the changes before doing the commit..


135750 24-Sep-2004 rwatson

Print number of "waits" per second during transmission, not just waits
per call to send().


135744 24-Sep-2004 des

Add mfc.


135743 24-Sep-2004 des

A simple shell script to help MFC an entire directory to a branch where it
does not already exist.


135551 21-Sep-2004 rwatson

Improve netsend timing logic in various ways:
- Centralize time comparison.
- Check clock resolution to make sure it has enough granularity to
implement the desired wait interval.
- Keep track of how many times the timing loop has to spin waiting
for the next send time; report statistics.
- Add commented out warning about deadlines being missed when
spinning.
- Improve statistics reporting generally to provide a more useful
summary of sender condition after a run.


135536 21-Sep-2004 rwatson

Set default socket size for netreceive to 128k to reduce the chances
of the buffer overflowing before netreceive can be scheduled to read
the packets from the socket.


135520 20-Sep-2004 des

Don't forget to check defined() before testing the value.


135518 20-Sep-2004 ru

Make this use a standard bsd.subdir.mk.


135485 19-Sep-2004 rwatson

netsend uses an arbitrary maximum send rate to reject bogus arguments.
It was previously 1mpps; raise to 10mpps. While here, get the error
message right.


135480 19-Sep-2004 des

Recognize options with values. If an option is present in both GENERIC
and the custom kernel, but its value has been modified, it will now be
kept in its correct spot instead of being moved to the bottom.


135425 18-Sep-2004 rwatson

Modify accept_fd_leak regression test to generate "PASS" output, not
just "FAIL" output, in order to make it consistent with other tests in
the regression test tree.


135287 16-Sep-2004 peter

Update path to c++ internals includes for the 3.4 location.
No longer use make -k since the libraries target should build now.
Remove hacks for gnu/lib/libregex.


135285 16-Sep-2004 peter

Add libmagic to the explicit build-tools list.


135282 15-Sep-2004 peter

Make libcrypto/libssh cross compile


135281 15-Sep-2004 peter

Fix typo in rev 1.2 "-DNOINFOall" should be "-DNOINFO all"


135278 15-Sep-2004 des

Comment lines may have leading whitespace.

PR: 71773
Submitted by: Antoine Brodin <antoine.brodin@laposte.net>


135157 13-Sep-2004 rwatson

Add a very basic README for tcpstream.


135132 13-Sep-2004 rwatson

Add tcpstream, a simple TCP stream generator that uses a pseudo-random
sequence to detect data corruption visible to an application.


135042 10-Sep-2004 rwatson

Add netrate (netreceive, netsend), a tool for generating (and sinking)
UDP packets of specified size at a fixed rate. I've been using this for
netperf-related testing.


134956 08-Sep-2004 des

Make the output more suitable for use in a frameset.


134911 07-Sep-2004 sam

new version of cryptotest (w/ only code from me)

Reviewed by: imp


134758 04-Sep-2004 stefanf

Add a regression test for <tgmath.h>.


134681 03-Sep-2004 ru

Join the effort in simplifying this makefile. ;)


134662 02-Sep-2004 rwatson

Pass O_NONBLOCK directly to fcntl() rather than the pointer to an int
holding the value O_NONBLOCK. This worked previously because I was
lucky.


134661 02-Sep-2004 rwatson

Don't override the rule used to build a binary by providing our own
compiler line.


134494 29-Aug-2004 des

Add -c option to preserve comments from GENERIC in the output.


134439 28-Aug-2004 des

Add genericize, a Perl script that converts a kernel config into something
more easily diffable against GENERIC.


134254 24-Aug-2004 obrien

Update for latest make(1) changes.

Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu>


134238 24-Aug-2004 rwatson

Make sure to properly initialize 'size' to sizeof(sin) before passing
it into accept(). Depending on the initial value in memory, it is
otherwise possible to get EINVAL.


134236 24-Aug-2004 rwatson

Add a basic kqueue + UNIX domain socket pair regression test to do some
elementary exercising of kqueues on datagram and stream sockets. Note
that the datagram write kqueue case is left untested due to potentially
confusing behavior for the developer (me) that might require attention.


134170 22-Aug-2004 pjd

Regression tests for 'verify reading' algorithm.


134133 21-Aug-2004 thomas

Fix positional parameter reference to ${10}.
Fix target location for generation of fstab.

PR: bin/70795


134125 21-Aug-2004 pjd

Add regression test for the new "round-robin reading" feature.


134087 20-Aug-2004 pjd

Add description of raidtest tool.


134078 20-Aug-2004 pjd

- fflush() standard output before fork()ing.
- Remove redundant 'break'.


134077 20-Aug-2004 pjd

Add the raidtest tool, which can be used for performance tests of storage devices.
It uses random offsets, random requests size and random operation type (READ or
WRITE). It also allows to run many processes to send I/O requests in parallel.


134075 20-Aug-2004 des

Remove a couple of warnings and tweak an error message.


134074 20-Aug-2004 des

Copy open_locked() from tinderbox.pl and use it to optionally acquire a
lock file upon startup. If this fails, tbmaster will simply terminate.


134005 19-Aug-2004 des

Print the patch file name in the warning message for missing patch files.


134004 19-Aug-2004 des

Clean up, add update_releng_[45].rc.


134003 19-Aug-2004 des

RELENG_5 is now available.


134002 19-Aug-2004 des

Branches of interest are RELENG_4_{8,9,10}.


134001 19-Aug-2004 des

Comment out the timeout setting; it doesn't work properly.


133900 16-Aug-2004 thomas

Example configuration files for customize.sh.

Approved by: re (scottl)


133895 16-Aug-2004 thomas

Add documentation of the newly-added user-configurable Makefile knobs.

Approved by: re (scottl)


133891 16-Aug-2004 thomas

Add example customization script, to be used through CUSTOMIZE Makefile knob.

Approved by: re (scottl)


133890 16-Aug-2004 thomas

Properly identify the root filesystem to be used in /etc/fstab in each
slice of the flash card, ensuring that the loader will mount the root fs
from the booted slice by default.

Allow usage of FFS volume labels instead of hardcoded device names through
WITH_GEOM_VOL Makefile knob.

Approved by: re (scottl)


133835 16-Aug-2004 dfr

Remove some debug cruft from the Makefiles and make them ${.OBJDIR}
friendly.


133831 16-Aug-2004 pjd

Add regression tests for GEOM_RAID3.


133652 13-Aug-2004 ru

Replaced COPTS by equivalent CFLAGS.


133643 13-Aug-2004 fjoe

Regen.


133641 13-Aug-2004 fjoe

Regression test for geom_uzip.


133639 13-Aug-2004 harti

Add a regression test for the ATM call control stuff.


133593 12-Aug-2004 harti

Now that make more correctly handles variable assignments
in .MAKEFLAGS targets enable the regression test for this.


133385 09-Aug-2004 dds

Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived
software (original contributor).

Reviewed by: imp


133325 08-Aug-2004 thomas

Include the nanoBSD make.conf in the top-level nanoBSD Makefile, so
all configuration knobs (both system settings and nanoBSD-specific ones)
can be tuned by modifying a single file. Move KERNCONF default value
to make.conf.

Attempt to resolve CFGMASTER like CUSTOMIZE, first relative to ${.CURDIR},
then as an absolute path.

Allow optional additional arguments to be passed to the CUSTOMIZE script.


133165 05-Aug-2004 harti

Back out something I'm working on that crept in with the last commit.

Spotted by: ru


133164 05-Aug-2004 harti

Remove extra spaces. Remove double quotes around error messages -
they are not needed and will actually be printed.

Submitted by: ru


133162 05-Aug-2004 dfr

This file is not suppose be be all one big comment :-(

Pointed out by: ssouhlal


133161 05-Aug-2004 harti

Add another test that checks for a working '+' command flag.


133123 04-Aug-2004 jmg

add a set of scripts that I posted to -current last year. This makes
debugging kernels and kernel modules much easier. It will automaticly
locate kernel source, extract kernel module information, and rerun gdb
to load kernel module symbol information (if available by compiling module
w/ debuging symbols).

I have not run these recently, so may need to be updated to work with
gdb6. Feel free to fix as appropriate for -current.


133117 04-Aug-2004 pjd

Add regression test for "prefer" balance algorithm in MIRROR class.


133109 04-Aug-2004 harti

Add a regression test for the passing of command line
variable assignments via the MAKEFLAGS environment variable.


133105 04-Aug-2004 rwatson

Add minimal socketpair() regression test to confirm that we can create
(and close) PF_UNIX socket pairs, and that we can't create PF_INET
socket pairs. More tests to follow.


133066 03-Aug-2004 dfr

Add regression tests for TLS.


132904 30-Jul-2004 pjd

Add GEOM_MIRROR class which provide RAID1 functionality and has many useful
features. The gmirror(8) utility should be used for control of this class.
There is no manual page yet, but I'm working on it with keramida@.

Many useful tests provided by: simon (thank you!)
Some ideas from: scottl, simon, phk


132704 27-Jul-2004 jkh

After conferring with Apple legal, update the license of this to APSL 2.0
and change the URL link to point to the appropriate license text.


132679 27-Jul-2004 jmg

add a command to calculate the ratios of cnt_hold and cnt_lock to locks
from mutex profiling... This takes cnt_* and divides it by count, so
lower is better...

Sample command:
sh mtxpercent.sh | sort -rn +7 -8

SEE ALSO
MUTEX_PROFILING(9)


132664 26-Jul-2004 pjd

Change naming scheme from /dev/<name>.stripe to /dev/stripe/<name>.


132663 26-Jul-2004 pjd

Change naming scheme from /dev/<name>.concat to /dev/concat/<name>.


132649 26-Jul-2004 rwatson

Simple attachment regression test to attach the "accf_data" accept
filter to an inet socket and check at various points during the socket
life cycle that the filter can or cannot be attached, and that once
attached that the right one is attached and that it can be queried.


132524 22-Jul-2004 silby

Add two more programs useful for testing the correctness of pipes.


132499 21-Jul-2004 tjr

Add test programs for mbsnrtowcs() and wcsnrtombs().


132479 21-Jul-2004 silby

Make this test compile again and remove its dependency on sys/pipe.h.


132438 20-Jul-2004 silby

Add a simple regression test for the stat st_size bug just fixed in
sys_pipe.c


132392 19-Jul-2004 tjr

Add a skeleton makefile that runs the tests out of libc/regex/grot.


132391 19-Jul-2004 tjr

Oops, test error behaviour of wctrans(), not wctype().


132384 19-Jul-2004 das

While testing fe[gs]etround(), make sure FLT_ROUNDS reflects the
proper rounding mode as well.


132304 17-Jul-2004 rwatson

Explicitly specify ATPROTO_DDP constant rather than '0' when binding
a netatalk socket. No functional change.


132302 17-Jul-2004 rwatson

Add a simple tool to bind netatalk sockets and perform send operations.
This isn't a classic regression test in that it doesn't have a notion of
pass fail, it's more of an exercise tool. It attempts to exercise
unbound, bound, unconnected, and connected variations on SOCK_DGRAM
sockets.


132296 17-Jul-2004 rwatson

gcc now objects to a default label without any contents. Because I want
to have a comment present in the default case, add a 'break' to each
default case that previously had no actual statements.


132295 17-Jul-2004 rwatson

Add simple regression test to detect leakage of file descriptors when
accept() returns EAGAIN on a non-blocking listen socket. This is the
tool I used to check that such a bug was resolved when merging accept()
locking.


131986 11-Jul-2004 dfr

Experimental support for using doxygen to generate kernel documentation.


131873 09-Jul-2004 des

When cleaning house, don't try to remove what isn't there.


131863 09-Jul-2004 harti

Use and explicite 'sh' to run the scripts, because they may be checked
out non-executable.


131737 07-Jul-2004 ru

Arguments to options aren't necessarily separated with whitespace.

Noticed by: harti


131233 28-Jun-2004 mux

Update the location of the Hart's database as well.


131230 28-Jun-2004 mux

The location of the Boemler's PCI database has moved. Update comments
to reflect reality.


131099 25-Jun-2004 sobomax

Add qsort, mergesort and heapsort regression tests.


130915 22-Jun-2004 des

Set up logging before trying to lock the sandbox; otherwise tbmaster(1)
will just log a mysterious "tinderbox returned exit code 35".


130849 21-Jun-2004 des

Initialize $timeout to 0.


130846 21-Jun-2004 des

Add a timeout after which tinderbox(1) will kill its children and exit.


130491 14-Jun-2004 rwatson

Update for so_state->sb_state, SB_* flag renames.

Submitted by: rik


130464 14-Jun-2004 des

Add a JOBS config keyword, which corresponds to the --jobs tinderbox(1)
command line option.


130463 14-Jun-2004 des

Update-only configs.


130376 12-Jun-2004 des

Group tinderbox results by config name. Skip configs whose names start
with "update_".


130375 12-Jun-2004 des

Include the config name in the log file name.


130330 11-Jun-2004 das

Add some fenv.h regression tests.


130120 05-Jun-2004 des

Log the config name in the history file.


129822 28-May-2004 thomas

Add trailing backslash missing from previous checkin.


129821 28-May-2004 thomas

Support for optional initialization of the configuration slice by
specifying the name of a directory to be copied there in Makefile
variable CFGMASTER.


129819 28-May-2004 thomas

Look up ${CUSTOMIZE} in ${.CURDIR} first, and then as a path name by itself,
assuming in the latter case that it is an absolute path name.


129782 27-May-2004 brooks

Fix stupid patch(1) tricks. Apparently patch thinks all files match the
empty file so if you accidently apply a patch created with diff -N
twice, you get files with duplicate contents.

Reported by: Antoine Brodin <antoine.brodin at laposte.net>


129759 26-May-2004 brooks

Add support for an /etc/eui64 file modeled on /etc/ethers. The API is
modeled on ethers(3) except that all functions are thread-safe.

Reviewed by: simokawa


129578 22-May-2004 pjd

Add regression tests for geom_stripe and geom_nop.

Supported by: Wheel - Open Technologies - http://www.wheel.pl


129257 15-May-2004 des

If asked to build a kernel without first building world, build the
kernel toolchain first.


129115 11-May-2004 tjr

Test accumulation of partial multibyte characters in conversion
state objects.


128883 03-May-2004 pjd

Add regression tests for GEOM Gate:
- test-1.sh - Tests ggatec(8) and ggated(8) on lo0.
- test-2.sh - Tests ggatel(8) on a regular file.
- test-3.sh - Tests ggatel(8) on a md(4) device.


128847 02-May-2004 thomas

Be consistent in using variable names instead of parameter numbers.


128785 01-May-2004 smkelly

A new version that does exponents and lots of other neat things. Update
from the original author of math.sed.

Submitted by: K S Braunsdorf <sed@ksb.npcguild.org>


128687 27-Apr-2004 phk

More POLA handling of CUSTOMIZE variable


128675 27-Apr-2004 thomas

Take boot0sio from the newly-built world, both for consistency's sake and
to cater for host systems where it is not present.

Reviewed by: phk


128385 18-Apr-2004 obrien

Script for downloading and printing in hex, the offical vendor ID's from
USB.org.


128184 13-Apr-2004 ru

Teach the script where libssl actually lives.

Submitted by: Michael Bretterklieber <mbretter@a-quadrat.at>


128005 07-Apr-2004 tjr

Reset internal conversion state after triggering conversion errors;
the state is undefined according to the standards, and our undefined
behaviour has changed.


127647 30-Mar-2004 peter

Add a snapshot of build32.sh for amd64 systems. The readme and comments
describe the (severe) restrictions and future plans.


127636 30-Mar-2004 des

Previous commit fixed one braino but left another in place.


127530 28-Mar-2004 phk

Tell fdisk(8) about our geometry.

Strictly speaking this is unnecessary, but it allows nanobsd to work
on systems from before the -x and -y arguments to mdconfig(8) worked
for vnode backing.

Submitted by: "Oivind H. Danielsen" <oivind.danielsen@kopek.net>


127527 28-Mar-2004 marcel

Add a simple tool that prints out a register offset table to map
from the gdb(1) register number to offsets within struct reg and
struct fpreg. The tool is useful only on selected platforms. On
ia64 the registers are all over the place to simplify handling of
them in various situations, but which makes creating or maintaining
such an offset table error prone to do by hand.
Since remote kernel debugging operates on the same register numbers,
it would be a natural choice to use an identical offset table in the
kernel. However, since the kernel does not operate on struct reg nor
struct fpreg in the remote gdb(1) case, such would not make sense.
Whether we want to use this tool to create offsets for use in the
kernel or duplicate the knowledge of which register number maps to
what register is something that will become clear soon.

Note: in order to build cross debuggers, one cannot use target
headers and/or target definitions. That's why offsets need to be
hardcoded in the first place. Unpleasant, but necessary.


127160 18-Mar-2004 des

Braino in previous commit.


127065 16-Mar-2004 des

Given the impact of CFLAGS and COPTFLAGS on the build, report them in
the log, even when not verbose.


127064 16-Mar-2004 des

Whitespace nit.


127049 16-Mar-2004 des

Set TZ to UTC so dates in the history file will match dates in the logs.


127048 16-Mar-2004 des

Build the tinderbox with -O2.


127047 16-Mar-2004 des

The documentation lists configuration variables in uppercase, so dump
them in uppercase.


127046 16-Mar-2004 des

Add configuration shortcuts for CFLAGS and COPTFLAGS.


127045 16-Mar-2004 des

Allow the user to override CFLAGS and COPTFLAGS on the command line.


126934 13-Mar-2004 phk

TMPDIR is magic, use TMPMNT

Spotted by: harold barker <hvb@fs0.sm.dsms.com>


126856 11-Mar-2004 simon

- Use variable names instead of numbers for the script arguments to
improve readability.
- Use mktemp to create the temporary files and directory.
- Mount temporary md(4) backed file system on a temporary directory,
instead of /mnt.

Approved by: phk


126820 10-Mar-2004 phk

Add an option to write collected data to file in binary format. This
is very useful for collecting test-data for trial runs.


126807 10-Mar-2004 phk

We don't retain 'x' bits in CVS so explicity use sh to run script.


126805 10-Mar-2004 phk

Add first cut at "nanobsd":

Nanobsd should make it very simple for people to create (CF-)disk images
for embedded us of FreeBSD.

Currently only works for 256MB disks. More agrressive shaving of the
build image can reduce that much further.


126564 03-Mar-2004 pjd

Add regression tests for geom_concat class.


126451 01-Mar-2004 ru

Removed extraneous parentheses.


126344 28-Feb-2004 ache

Add getopt_long.c if ${BOOTSTRAPPING} < 502104


126200 24-Feb-2004 johan

style.Makefile(5):
Use WARNS?= instead of WARNS=.


126123 22-Feb-2004 des

Fix some cosmetic issues in warning and error messages.


126085 21-Feb-2004 green

Add some more comments and a -4 argument to restrict searches to only
A (not default A and AAAA) records. Now the longest time that a -4
thread might hang trying to resolve is only 2:30 instead of 5:00 ;)


126058 21-Feb-2004 green

Print the maximum resolution time encountered by each thread. Did you
know that the resolver might keep trying on a getaddrinfo() for up to
FIVE MINUTES?


126049 20-Feb-2004 green

Add my getaddrinfo(3) stress-tester as gaithrstress. The most obvious
regressions would be to see the program or your kernel crashing.

If you want to give it something to really test out, try a much more
reentrant version of the resolver.
<URL:http://green.homeunix.org/~green/reentrant_resolver.patch>
Any Mozilla-based browser would show you a clear difference.


126039 20-Feb-2004 ru

Unbreak the upgrade path from 4.9 after removal of GNU getopt and
<gnuregex.h>.


125936 17-Feb-2004 des

Remove configurations which aren't used in production.


125799 14-Feb-2004 des

Cosmetic changes to the recipient addresses.


125731 12-Feb-2004 des

Add %%sender%% to the recipient list.


125730 12-Feb-2004 des

Set the default sender address to <tinderbox@freebsd.org>, and the
default recipient to %%sender%%.


125573 07-Feb-2004 ru

Convert to plain bsd.prog.mk makefile.

Reviewed by: scottl


125550 07-Feb-2004 scottl

Add a simple tool for checking the queue stats in the aac(4) driver. The
ioctl interface for this has been here for years, so it might as well get
used.


125514 06-Feb-2004 ru

From what I can tell, install.sh supported all of the install(1)
options since revision 1.2, so removed the XXX comment now.

Fixed bogus test(1) expression that would be evaluated as a null
string test if script is run without arguments, compacted option
lists.


125500 05-Feb-2004 ru

Added missing DPADD.


125499 05-Feb-2004 ru

Fixed ``make checkdpadd''. Removed redundant dependency.


125478 05-Feb-2004 des

Use more generic directories (most prominently, s|/home/des|%%HOME%%|)


125425 04-Feb-2004 des

Don't forget to install stable.rc.


125401 03-Feb-2004 des

Remove RELENG_4, leaving only security branches.


125400 03-Feb-2004 des

Add a "stable" config for 4-STABLE.


125399 03-Feb-2004 des

Allow multiple configs to be specified to a single tbmaster instance.


125305 01-Feb-2004 des

Untaint the hostname before trying to use it on a command line.


125291 01-Feb-2004 des

Use `uname -n` as default for the HOSTNAME configuration variable.


125227 30-Jan-2004 ru

Add a test for what was broken in rev. 1.28 and fixed in rev. 1.29
of make/str.c.


125219 29-Jan-2004 ru

Add a test for what was fixed in revs. 1.28 and 1.29 of make/str.c.


125204 29-Jan-2004 harti

These scripts run the protocol test suites for the SSCOP, SSCF-UNI and
UNI protocols. The actual test suites are not in these directories because
of their size. One needs to install the atmsupport port (the script
will remind you, if it cannot find the port).

The SSCOP test suite includes booth the ETSI and the ITU-T test suite,
the SSCF-UNI test suite is home grown and the UNI test suite is the
P2MP ETSI test suite. Others may follow.


125203 29-Jan-2004 harti

Add a simple test script for the ng_atmpif node.

Submitted by: Vincent Jardin <vjardin@free.fr>


124983 25-Jan-2004 des

Fix the case where .OBJDIR != .CURDIR.


124981 25-Jan-2004 des

This setup was used for amd64 and powerpc before they reached the point
where a normal buildworld would succeed. It is no longer required.


124963 25-Jan-2004 des

I don't normally use my middle name, so remove it from attributions in
man pages (though not from copyright notices). While I'm here, add email
addresses where appropriate.


124920 24-Jan-2004 des

Include the hostname in the history file.


124918 24-Jan-2004 des

Bump the date.


124917 24-Jan-2004 des

Bump version number to reflect the addition of cvsup support.


124916 24-Jan-2004 des

Ignore incomplete logs when figuring out what branches and platforms
to display.


124915 24-Jan-2004 des

I won't be using stanley any more.


124914 24-Jan-2004 des

Drop RELENG_5_1 due to lack of resources.


124913 24-Jan-2004 des

Add powerpc, which should build cleanly now.


124891 23-Jan-2004 des

Document the CVSUP and REPOSITORY configuration variables.


124890 23-Jan-2004 des

Add support for tinderbox.pl's --cvsup and --repository options.
Sort %CONFIG.


124889 23-Jan-2004 des

Document cvsup support.


124888 23-Jan-2004 des

Add support for using cvsup instead of cvs to update the source tree.
Fix the "clean" command: don't try to rmdir symlinks, and run chflags
before trying to delete the chroot tree.
Tweak some error and info messages.


124826 22-Jan-2004 imp

Remove references to cryptotest


124799 21-Jan-2004 imp

Theo de Raadt has brought to our attention that he wrote at least part
file and that he has not released it under a free license. Until the
matter can be resolved, honor his claim and remove it.

PR: misc/61676


124708 19-Jan-2004 das

Add regression tests for printf's %a/%A formats.

While here, disable some of the long double tests on i386, since
FreeBSD/i386 is the only port that doesn't evaluate long doubles in
their full precision (due to constant folding bugs in gcc).


124707 19-Jan-2004 das

Add regression tests for some of the bugs recently discovered in the
vendor's strtod() implementation.

While here, disable some of the long double tests on i386, since
FreeBSD/i386 is the only port that doesn't evaluate long doubles in
their full precision (due to constant folding bugs in gcc).


124650 18-Jan-2004 das

Work around a recently-introduced gcc bug. The compiler no longer
accepts certain floating point constant representations that are
legal in C99.


124384 11-Jan-2004 des

Add ${IMAGES} to CLEANFILES.


124383 11-Jan-2004 des

Store binary files in uuencoded form.


124196 06-Jan-2004 bms

Add pirtool, a tool for dumping the $PIR table on i386 machines at runtime.

Requested by: mdodd


124009 31-Dec-2003 grog

Rename "msgbuf" to "dmesg", a more easily remembered name.
"Fix" documentation by removing periods and commas.


123983 30-Dec-2003 grog

Remove calls to 'y' macro.


123979 30-Dec-2003 grog

Remove current implementation of kldstat macro.

Add new kldstat, kldstat-v and kernel macros. The kldstat macro is
functionally equivalent to the previous implementation, but it looks
prettier and it matches the kldstat-v macro better. kldstat-v gives
output similar to userland kldstat -v (note lacking space), and kernel
loads a new kernel and dump.

Submitted by: des


123953 29-Dec-2003 grog

Add documentation for previously undocumented macros, and correct
existing documentation. This is not made any easier by the
brain-damaged format required for the documentation: one line, no full
stops or commas.


123952 29-Dec-2003 grog

Add documentation for previously undocumented macros. This is not
made any easier by the brain-damaged format required for the
documentation: one line, no full stops or commas.

Remove macro xy. I can't see any use for it any more.


123951 29-Dec-2003 grog

Add comments to deter people from using this file directly. That's
not the intention.

Rearrange "you may want to change these values" values to the top, and
reduce their number as much as possible.

tr macro: Require a parameter (because gdb is too stupid to understand
optional parameters), and create macros tr0, tr1 and trf which call it
to connect to /dev/cuaa0, /dev/cuaa1 and firewire connections
respectively.

Split kld symbol load into two separate macros: revision 1.5
simplified things for the /dev/mem case, but broke it for anything
else. Now the simple /dev/mem version is called kldsyms, and the
version for serial debugging and processor dumps is called getsyms,
and still requires this irritating cut and paste.

Change comments on startup to make life easier for the poor
(de)bugger.


123709 22-Dec-2003 grog

Explain what all this is about.


123493 12-Dec-2003 des

Revert the last two commits. It seems that compat mode is actually faster
than non-compat (using -j1), though reading the make(1) sources suggests
that the opposite is true.


123457 11-Dec-2003 des

Don't pass -P option to make(1) as it confuses the error detection logic.


123456 11-Dec-2003 des

Always pass -j to make(1), even when we only want one job. It disables
compat mode and hopefully improves tinderbox performance.


123446 11-Dec-2003 des

PowerPC doesn't need NOLIBC_R and NOFORTH (and hasn't for quite a while now)


123444 11-Dec-2003 des

Install experimental.rc as well.


123303 08-Dec-2003 phk

Add a small program to test/measure with the RFC 2783 API for timing
external signals.


123261 07-Dec-2003 sam

add install rule


123260 07-Dec-2003 sam

o report 0 instead of -1 for xmit rate when in transition
o report rssi in running display
o futz with column widths in running display


123259 07-Dec-2003 sam

fix comment


123249 07-Dec-2003 des

Log all results to a history file in the log directory.


123143 04-Dec-2003 des

Merge in uncommitted changes from the running configuration.


123142 04-Dec-2003 des

RELENG_5_2 is right around the corner.


123022 28-Nov-2003 ru

Understand the old pseudo-device config(8) file directive, for 4.x.


122994 26-Nov-2003 phantom

Learn about new world order


122629 13-Nov-2003 sam

fixup include filenames; this stuff used to be in the kernel source tree


122628 13-Nov-2003 sam

honor environment settings of SYSDIR and BINDIR


122592 13-Nov-2003 sam

add in-kernel ttcp performance tool


122546 12-Nov-2003 des

Remove leftovers from old color determination scheme.
Tune the speed at which colors change.


122544 12-Nov-2003 des

braino in age computation


122543 12-Nov-2003 des

Use graded colors to more clearly indicate relative age.


122541 12-Nov-2003 des

Turn the table around: platforms across, branches down.
Also fix some bogus tabification in here documents.


122536 12-Nov-2003 des

Belatedly include RELENG_4_9 in the build, and rotate RELENG_4_7 out.


122275 08-Nov-2003 sam

add 802.11 layer stats dumper


122274 08-Nov-2003 sam

catchup with if_xname change


122033 04-Nov-2003 green

Add a "-f" flag for asf(8) which performs a search to find the each module
no matter where in the directory structure it may be. Use this and the "-k"
flag in the generated gdbinit files so that the "getsyms" function in gdb
requires no user intervention to run and will find every module if they're
in the kernel build's module directory. This is still quite useful for
cases where gdb knows that the path for some modules is /boot/kernel and
others are in the object directory for /usr/src/sys/$ARCH/compile/kernel.

Approved by: grog


121795 31-Oct-2003 phk

Attached is a small patch to ministat that separates the
avg/median/stddev bars onto two lines. Useful for datasets that
overlap.

Submitted by: Dan Nelson <dnelson@allantgroup.com>


121732 30-Oct-2003 tjr

Add regression tests for sgetrune() and sputrune().


121669 29-Oct-2003 sheldonh

Update the location of the Hart list.


121094 14-Oct-2003 des

Add the "TB ---" prefix to error and warning messages so that early
failures (e.g. failure to lock the sandbox) don't result in empty failure
reports.


121002 11-Oct-2003 des

Tweak the colors for failed runs


121001 11-Oct-2003 des

Show stale results (8 hours old or more) in a paler color.


120991 10-Oct-2003 des

Cosmetic nits.


120990 10-Oct-2003 des

Collapse the Architecture and Machine columns to conserve screen space.


120987 10-Oct-2003 des

Discourage line breaks between the time of day and the time zone.


120986 10-Oct-2003 des

Add support for tinderbox(1)'s -h option.


120985 10-Oct-2003 des

There is no need for $have_logs since we determine what platforms and
branches to show from what logs are actually present on disk.


120984 10-Oct-2003 des

Document the -h option.


120982 10-Oct-2003 des

Report the version number and hostname at the top of the log. Allow the
user to override the hostname on the command line (for whatever reason).
Add a comment to explain why a particular piece of code is commented out.


120981 10-Oct-2003 des

s/GMT/UTC/


120962 10-Oct-2003 des

Allow wrapping between the date and the time. s/GMT/UTC/.


120961 10-Oct-2003 des

Build RELENG_5_1.


120923 09-Oct-2003 des

Instead of using hardcoded column and row headers, scan the log directory
to see what's of interest.


120922 09-Oct-2003 des

Build a couple of security branches.


120676 02-Oct-2003 ru

Fix a bug that prevented exists() from finding "foo/", "foo/."
and "foo/.." when ".PATH: foo" was also given.

PR: bin/34062


120245 19-Sep-2003 sam

o the kernel sysctl uses 'avg' for a key; change to suit
o change header field widths to match the kernel so columns line up


120235 19-Sep-2003 sam

fix build


120228 19-Sep-2003 des

Add support for stop files, the existence of which signals tbmaster to
skip particular platforms or configs, or simply stop running.


120227 19-Sep-2003 des

Check that $verbose is defined before using it in a comparison.


119910 09-Sep-2003 des

Make char signed by default.

Submitted by: grehan


119067 18-Aug-2003 phk

In case of zero span data supress the histogram plot.


118856 13-Aug-2003 phk

A small statistics tool for gauging the statistical significance
of data from benchmarks etc. Implements "Student's t" for various
confidence levels, defaults to 95%.

If your benchmarks are not significant at the 95% confidence level,
we don't want to hear about it.


118506 05-Aug-2003 des

Add a comment about hcomp.


118447 04-Aug-2003 des

gif -> png


118425 04-Aug-2003 des

A Perl script which tries to "compress" headers by removing comments and
superfluous whitespace.


118329 01-Aug-2003 des

Parts of the patch have been committed.


118324 01-Aug-2003 des

powerpc patch.


118323 01-Aug-2003 des

Use a more generic patch name.


118322 01-Aug-2003 des

powerpc still needs a patch.


118321 01-Aug-2003 des

Re-add support for patches.


118298 01-Aug-2003 des

Use PNG instead of GIF; add WWWOWN and WWWGRP variables to the Makefile;
add a shortcut icon.


118297 01-Aug-2003 des

The rc files have been repo-copied to a separate subdirectory.


118262 31-Jul-2003 pb

Add a regression test for the big pipe bug.

Suggested by: silby


118252 31-Jul-2003 des

Braino in previous commit: lists are comma-separated.


118251 31-Jul-2003 des

Make the experimental platforms tinderbox extra verbose.


118129 28-Jul-2003 ru

A simple tool to sanity check the contents of release/*/dokern.sh
and release/*/drivers.conf.


118118 28-Jul-2003 des

DATE and PATCH are always defined, but may be empty.


118117 28-Jul-2003 des

Remove redundant "targets", add NOLIBC_R and NOFORTH to environment


118116 28-Jul-2003 des

Install experimental.rc


118115 28-Jul-2003 des

Document --dump


118114 28-Jul-2003 des

Revive the powerpc tinderbox that used to run on 9ball.


118113 28-Jul-2003 des

stanley uses a different sandbox.


118112 28-Jul-2003 des

Don't mail out failure reports from stanley.


118111 28-Jul-2003 des

- add a -d option which dumps the configuration and exits
- initialize single-valued configuration variables to '' rather than undef
- allow empty values in configuration files
- take care to untaint $etcdir


118032 25-Jul-2003 des

powerpc isn't tinderbox-ready yet.


117997 25-Jul-2003 des

Ready to go live.


117966 24-Jul-2003 des

Complain about extraneous command line arguments.


117936 23-Jul-2003 des

Install rc files from ${.CURDIR}, not ${.OBJDIR}.


117935 23-Jul-2003 des

Sample configuration files.


117934 23-Jul-2003 des

Rewrite tbmaster to use configuration files instead of a hard-coded hash.


117933 23-Jul-2003 des

Improve the markup a little.


117900 22-Jul-2003 dds

Test 8.16 in sed.test tests the ability of a sed to handle an empty
regular expression as the first argument to a substitute command. If
used to test a sed which (erroneously) evaluates this at translation
time rather than at execution time, the bugged sed is put into an
infinite loop. This mode of failure seems excessive. Such a failing
sed is the Free Software Foundation's sed 3.02.

The specific test was also not being executed for the BSD sed.

Both problems are now fixed.

PR: misc/25585
Submitted by: Walter Briscoe <w.briscoe@ponl.com>
Approved by: schweikh (mentor)
MFC after: 2 weeks


117852 21-Jul-2003 sam

add stat dumper for the safenet driver


117719 18-Jul-2003 des

Look for logs in the directory where we place the output.


117718 18-Jul-2003 des

Fix taint bug in previous commit.


117717 18-Jul-2003 des

Generate index.html in the same directory.


117226 04-Jul-2003 ru

Fixed broken arithmetic expression parser.

Reminded by: bde
In memory of: alane


116997 28-Jun-2003 sam

bring in ath-specific test tool; more to follow


116969 28-Jun-2003 das

Add regression tests for floating point parsing in scanf(3).


116625 20-Jun-2003 des

amd64 is actually stable enough for the regular -CURRENT tinderbox now.


116332 14-Jun-2003 des

Set the precedence on failure reports to "bulk" so I don't get tons of
vacation notices every time the tree breaks.


116253 12-Jun-2003 grog

Replace hard-coded module path with a keyword which gets changed when
the kernel is built.


116008 08-Jun-2003 grog

Make defproc work.


116007 08-Jun-2003 grog

Make btpp and fr work. There's still more to be done.


116006 08-Jun-2003 grog

Terminate echoed lines. Unlike echo(1), gdb echo doesen't
automatically terminate them.


115929 07-Jun-2003 grog

Get the manual section number for kldstat(8) right. Comment change only.

Pointed out by: yar


115928 07-Jun-2003 grog

Modify startup mode: don't specify the file name for the debug kernel,
so it needs to be (and can be) specified on the command line. Don't
try to automatically connect to a remote machine, so that the same
.gdbinit file can be used for analysing processor dumps.


115926 07-Jun-2003 grog

Add macros for kernel debugging. These have been around for a
while, and they will need some more tuning before they're really
useful, but at the moment they're better than nothing.

Indirectly reminded by: dwhite


115894 06-Jun-2003 tjr

Regression tests for wctype(), iswctype(), wctrans(), towctrans().


115875 05-Jun-2003 des

Mail out -STABLE tinderbox failures as well.


115829 04-Jun-2003 fanf

Add tests for the behaviour of substitution when the regex can match
a zero-length string. This shows bugs in the s///g and s///2+ cases.


115749 02-Jun-2003 sam

Merge from private version:

o add hash operations
o make AES operations useful: split into 3 ops based on key length (specify
aes for AES w/ 128 bit keys, aes192 for 192-bit keys, and aes256 for
256-bit keys
o add -c option to force encrypt->decrypt result to be compared against the
original plaintext (need to compare it against a known good implementation
like openssl)
o change multi-threaded test output to be more meaningingful
o fix default block size selection to consider algorithm's blocking needs


115721 02-Jun-2003 phk

write pattern to /dev/ccd3 not /dev/ccd3c


115318 26-May-2003 des

Remember to close the read end of the pipe.


115122 18-May-2003 ru

-lbsdxml lives in lib/libexpat. *Blush*

Submitted by: tmm (Makefile.inc1)


115118 17-May-2003 des

Document the DATE configuration field.


115117 17-May-2003 des

Fix a bug in report() which prevented two failure reports today from
reaching the lists. Also add support for tinderbox.pl's --date option.


115098 17-May-2003 des

Make sure realinstall works when ${.OBJDIR} != ${.CURDIR}.


115097 17-May-2003 des

Make some spaces non-breakable.


115096 17-May-2003 des

Constrain the chekout date to ISO format (yyyy-mm-dd) and add a special
case, "today", which corresponds to 00:00 on the day the run starts.

Remove NO_CPU_CFLAGS and NO_CPU_COPTFLAGS. This should be safe since we
clear the environment and set __MAKE_CONF to /dev/null. NO_CPU_CFLAGS
actually breaks the Alpha release by preventing the inclusion of -mieee
in CFLAGS.

Do not set BUILDNAME as the release/Makefile already constructs a better
one than we do (though I wish there was a way to s/-SNAP/-TINDERBOX/)


115070 16-May-2003 des

More configuration tweaks. Rename %CONFIGS to %SETUPS to make the code
clearer (particularly to someone who has read the man page). Don't print
anything on stderr.


115068 16-May-2003 des

Document the fact that tinderbox(1) accepts environment variables on the
command line. Also sort the xrefs correctly.


115067 16-May-2003 des

More oats for the beggars' horses.


115066 16-May-2003 des

Be careful what you wish for - you might get it!

Wished for by: ru


115065 16-May-2003 des

Add a 'patch' command rather than apply the patch unconditionally.
Don't try to clean the release chroot, leave that to the release Makefile.


115064 16-May-2003 des

Don't be so sensitive; /\bStop\b/ can occur in normal output and trick
tbmaster into thinking the build failed. Look for /^Stop in / instead.


115062 16-May-2003 des

Overhaul the reporting code, making sender, recipient and subject fully
configurable.

Add support for tinderbox.pl's --patch.

-STABLE releases won't build with NOPERL (kernel builds use Perl).


115061 16-May-2003 des

Add support for local patches (which are also passed on to make release)

--verbose was a little too verbose, especially while cleaning the sandbox.


115039 15-May-2003 des

Explicitly set the sandbox directory (it defaults to ~/tinderbox which is
wrong when running a release tinderbox as root)

Use the setup's COMMENT field in the subject of the failure report, instead
of just "$branch tinderbox".

Tweak the test setups.


115038 15-May-2003 des

'make release' should run from src/release, not src.


115028 15-May-2003 des

Make 'clean' and 'update' commands rather than options. Invoke 'update'
(but not 'clean') in all setups. Bump tinderbox.pl version to 2.1, mostly
for the 'release' command added in the previous commit.


115027 15-May-2003 des

Make the ENV configuration variable a hash rather than an array.

Build LINT on -STABLE now that tinderbox.pl knows how. Also try to build
LINT on powerpc and amd64 (this is a formality as they don't have NOTES
so nothing will be built)

Add two setups for release testing, with plenty of NO* to speed things up.

If the config key was not specified on the command line, try to guess it
from the hostname.


115026 15-May-2003 des

Add a 'release' command which builds a release. It currently sets
NOCDROM, NODOC and NOPORTS to save time and space, but I may remove
those at a later date so we can use the results to populate a snapshot
server.

Document the --machine option.

Make $arch and $machine default to the correct values for the current
system. This shouldn't make any difference unless you run the
tinderbox on a pc98 machine, since for all other platforms, $arch and
$machine are the same.

Only set kernel-related variables if actually building a kernel or a
release.

Be paranoid and cd to the correct directory in each stage so we're
sure we invoke make(1) in the right place.

To support building LINT on -STABLE, don't try to 'make LINT' unless
NOTES exists, but build LINT if the config file exists even if there
is no NOTES.


115025 15-May-2003 des

use 5.006_001 (for new open() syntax)


115024 15-May-2003 des

Add a Makefile for the web bits.


115023 15-May-2003 des

Untabify string literals.


115022 15-May-2003 des

Don't show platforms for which we have no logs.


115021 15-May-2003 des

CSS uses C-style comments, not C++-style.


115020 15-May-2003 des

These are the sources for the tinderbox summary page.


114778 06-May-2003 des

Start mailing -CURRENT tinderbox failures to the lists.


114742 05-May-2003 des

Remove BOOT2_UFS=UFS1_ONLY from the -CURRENT tinderbox environment; it
should no longer be necessary.

Re-enable Kerberos 5 in the -STABLE tinderbox (incorrectly disabled in
the previous commit)

Prepare for, but do not actually enable, mailing reports to
appropriate FreeBSD mailing lists.


114709 05-May-2003 markm

Turn MAKE_KERBEROS5 into NO_KERBEROS by negating the logic. Some extra
cleanups were necessary in release/Makefile, and the tinderbox code
was syntax checked, not run checked.


114416 01-May-2003 des

Start running amd64 builds on 9ball.


113949 23-Apr-2003 jkh

Sync with latest and greatest Apple sources (which, among other things, fix
the style flag).

Submitted by: Conrad Minshall <conrad@apple.com>
Reviewed by: jkh
Obtained from: Apple Computer, Inc.


113724 19-Apr-2003 das

Add a dozen new tests with the general theme of getting trailing
zeroes right.


113508 15-Apr-2003 ru

A version of <sys/endian.h> in RELENG_4 doesn't have 64-bit functions.

Spotted by: simokawa


113469 14-Apr-2003 das

Add a test case for printf("%5.0f", 0.001).


113434 13-Apr-2003 phk

Remove the "run GEOM in userland harness" test stuff, it's been OBE.


113433 13-Apr-2003 phk

Give mdconfig a couple of seconds to deconfigure in case debugging is being
printed to a serial console.

Reverse the order of args to diff to make it more logical.


113400 12-Apr-2003 ru

Make sure legacy stuff comes last. Some tools that use
legacy stuff (binutils) depend on this order.

For this to work, provide (and use) specialized versions
of bsd.prog.mk and bsd.lib.mk that include the standard
versions first, then augment CFLAGS, DPADD, LDADD, and
LDFLAGS as necessary, with the legacy stuff.

Tested on: 4.0-RELEASE


113368 11-Apr-2003 ru

libc_gen/basename.c depends on include/libgen.h.


113293 09-Apr-2003 phk

Update these two reference vectors.


113291 09-Apr-2003 phk

Add script to run kernel based regression test and the reference vectors
for the current XML images.


113290 09-Apr-2003 phk

Utility to load one of our XML images into a MD(4) device.


113192 07-Apr-2003 das

Additional regression tests for grouping, parsing of '.*', and printing
of %f formats where the number of significant digits is < expt.


113185 06-Apr-2003 imp

-legacy and /.../legacy/... looks better than build or bootstrap in
the logs, so use that instead.

Submitted by: obrien.


113162 06-Apr-2003 tjr

Test for bug in revision 1.54 of vfprintf.c.


113157 06-Apr-2003 imp

We can't use ${WORLDTMP}/usr/{include,lib} for the compat layer. This
is because we populate these directories later, and a subsequent
-DNOCLEAN build may fail. So, we put them in
${WORLDTMP}/build/usr/{include,lib} instead and adjust Makefile.boot.

Again, this works on -stable and -current, but might break older
versions.

Submitted by: ru@


113156 06-Apr-2003 imp

Don't need the gccism include_next since we won't create this file
when a real sys/endian.h exists.

Submitted by: ru@


113147 05-Apr-2003 das

Regression tests for printf()'s floating point formats.
Tests for correct printing of subnormals are lacking.


113136 05-Apr-2003 imp

Migrate to a new way of dealing with building from old revisions of
FreeBSD. This method attempts to centralize all the necessary hacks
or work arounds in one of two places in the tree (src/Makefile.inc1
and src/tools/build). We build a small compatibility library
(libbuild.a) as well as selectively installing necessary include
files. We then include this directory when building host binaries.

This removes all the past release compatibilty hacks from various
places in the tree. We still build on tip of stable and current. I
will work with those that want to support more, although I anticipate
it will just work.

Many thanks to ru@, obrien@ and jhb@ for providing valuable input at
various stage of implementation, as well as for working together to
positively effect a change for the better.


113001 03-Apr-2003 imp

2.x->3.0 upgrade tools are no longer needed. 5.x is unlikely to fit
on a 2.1/2.2 root disk anyway.

OK'd by: peter


112698 27-Mar-2003 das

Write negative zero as '-0.0'. Otherwise, it is parsed as an integer
before being cast to a floating point type, and the sign is lost.


112545 24-Mar-2003 sam

add missing %u to show mcr1full count


112456 21-Mar-2003 davidxu

Follow new upcall quantum code in kernel.


112394 19-Mar-2003 sam

o add missing copyright notices
o new hifnstats program to dump hifn driver statistics
o new ipsecstats program to dump fast ipsec statistics


112217 14-Mar-2003 des

Allow the configuration to specify environment variables (passed on
the command line to tinderbox.pl)
Build Kerberos V in all setups (this was previously taken care of by
tinderbox.pl).
Tweak the 9ball configuration to make powerpc builds work (with a
little help from a toolchain patch provided by grehan)


112216 14-Mar-2003 des

Support multiple verbosity levels.
Allow the user to specify environment variables on the command line.
Set the correct variables for cross-building.
Don't arbitrarily define MAKE_KERBEROS5 and BOOT_UFS.


112100 11-Mar-2003 sam

use relative pathname to driver-private file (instead of absolute)


112098 11-Mar-2003 sam

add simple program to dump ubsec driver statistics


111992 08-Mar-2003 markm

KerberosIV deorbit sequence: Remove references to KerbIV libs.


111950 06-Mar-2003 des

Prepare for removal of KerberosIV from the tree.


111876 04-Mar-2003 phk

Fix a bug in the white-space remover.


111522 26-Feb-2003 davidxu

Remove


111520 26-Feb-2003 davidxu

This commit was generated by cvs2svn to compensate for changes in r111519,
which included commits to RCS files with non-trunk default branches.


111426 24-Feb-2003 des

Hacks to get i386 and pc98 building:
- TARGET=${TARGET_MACHINE}
- BOOT2_UFS=UFS1_ONLY


111417 24-Feb-2003 sam

o add -b option to enable batching
o add #ifdef __FreeBSD__'s around the profiling so the code compiles on openbsd
o update a comment about expected performance for Broadcom hardware


111364 23-Feb-2003 des

If more than one argument were given on the command line, interpret the
additional arguments as a series of architectures to build. This is
useful for running subsets of a particular configuration.


111304 23-Feb-2003 des

Add LINT to the target list for the test setup.


111303 23-Feb-2003 des

Add LINT to the taget list for CURRENT.


111302 23-Feb-2003 des

Don't try to build LINT if there is no NOTES file.


111208 21-Feb-2003 des

Don't omit --update on 9ball.


111171 20-Feb-2003 davidxu

Adjust code for new kse_release interface.


111081 18-Feb-2003 des

Properly terminate some warning messages.


111077 18-Feb-2003 des

Explicitly set TZ to GMT (including in the build environment)


111050 17-Feb-2003 des

- build powerpc world on 9ball
- log directly into two files: a full log and a summary
- set timezone to GMT before starting


110956 15-Feb-2003 des

Log to stdout if no file was specified.


110939 15-Feb-2003 des

Avoid an undef warning.


110851 14-Feb-2003 des

Decrease verbosity, fix some configuration problems.


110824 13-Feb-2003 des

Make the tinderbox log lines less obtrusive.


110823 13-Feb-2003 des

Pass KERNCONF on the command line rather than in the environment,
since the command line is included in the log.


110822 13-Feb-2003 des

Complete overhaul of the configuration system, allowing the user to
select one of multiple configurations at runtime.


110800 13-Feb-2003 des

GC the old tinderbox script.


110791 13-Feb-2003 des

Place the logs in the tinderbox directory rather than cwd.


110790 13-Feb-2003 des

Move away the old log file before starting the tinderbox so we don't
accidentally post the old log if the tinderbox script failed to start
altogether.


110788 13-Feb-2003 des

- run the tinderbox script in verbose mode
- use /\bStop\b/ instead of /^\*\*\* Error/ to identify errors


110773 12-Feb-2003 des

Simplify the log accumulation code. It turns out that the trick of
looking for ^===> can give quite annoying false positives, especially
when building kernels, so drop it; the context can be inferred from
make's "Stop in /foo/bar/baz" messages anyway.

Also add a case that I'd missed the first time around (which happens
to be the common case, not the exception...)


110772 12-Feb-2003 des

NO_KERNELCLEAN was a booboo.


110771 12-Feb-2003 des

Welcome tbmaster, TinderboxNG's better half.


110770 12-Feb-2003 des

Slight cleanup; adjust verbosity; unlink the logfile before opening it
to tickle 'tail -F'.


110760 12-Feb-2003 des

Teach whereintheworld to preserve TinderboxNG log messages.


110758 12-Feb-2003 des

Make "CURRENT" the default branch, and special-case it in the update
code so it results in -A rather than -rCURRENT.


110735 11-Feb-2003 des

Say hello to Tinderbox 2.0, the choice of a new generation!


110654 10-Feb-2003 gad

The regression-tests for 'make' *expect* to trigger make's warning:
warning: duplicate script for target "double" ignored
The regression-tests do try to hide that message, but the message does
still appear when using -j (eg: 'make -j5 buildworld'). This changes the
regression-test so the expected warning message will not be seen even
when -j is specified.

Reviewed by: jmallett ru


110569 08-Feb-2003 mike

Add more tests. Specifically, infinity cast from other types should
always be classified as infinity.


110535 08-Feb-2003 davidxu

Add a missing inline keyword.


110405 05-Feb-2003 mike

Add regression test for soon-to-be-committed fpclassify().


110160 31-Jan-2003 seanc

Add a getopt-ified version of an old tool that I've been using for ages:
backout_commit.rb. Tool can be used to automate the
process of backing out either small or large commits based off of
one or more commit messages. The result of the script is a shell
script which can be edited or run as needed. New and dead files
are taken into consideration. See the program's usage statement for
more configuration details. Here's an example usage:

<programlisting>
$ mutt
[find commit message, save to disk as cvsmsg.txt]
$ backout_commit.rb ~/cvsmsg.txt
Backout directory: /usr
Backout script: backout-2003-01-31-14-04.sh

Scanning through cvsmsg.txt...done.

Change to /usr and run this script. Please look through this script and
make changes as necessary. There are commented out commands available
in the script.

Example script usage:
mv backout-2003-01-31-14-04.sh /usr
cd /usr
less backout-2003-01-31-14-04.sh
/bin/sh backout-2003-01-31-14-04.sh
rm -f backout-2003-01-31-14-04.sh
</programlisting>


110153 31-Jan-2003 phk

Update reference vectors to include BSD's <type> output.


110151 31-Jan-2003 phk

Add Apple partitioning test case.

Use correct name for image data file


109974 28-Jan-2003 phk

Add more scaffolding to make this compile kernel code.


109485 18-Jan-2003 des

Don't truncate lines if an error occurred.


109484 18-Jan-2003 des

Indentation cleanup.


109416 17-Jan-2003 phk

Add a regression test for ccds layout policy.


109317 15-Jan-2003 phk

Make sure we find all vnode method vectors in /sys.


109024 09-Jan-2003 schweikh

Fix a useless use of cat. Save a process today.


109007 09-Jan-2003 des

Document tinderbox and whereintheworld, and move diffburst in its
alphabetical place.


109006 09-Jan-2003 des

My version of fenner's "make world" log summarizer.


109005 09-Jan-2003 des

Sample tinderbox script & build settings.


108833 06-Jan-2003 sam

more crypto test stuff:

o cryptotest can now run multiple threads with -t option
o cryptotest can now "profile" time spent doing symmetric ops with -p
o cryptostats dumps the crypto statistics block
o cryptokeystat is an openbsd app that tests public key ops


108820 06-Jan-2003 phk

geom_bsd need -lmd to link now.


108639 04-Jan-2003 tjr

Add a regression test for wordexp() and wordfree().


108605 03-Jan-2003 phk

Add various command line options, most notably sort order.

Submitted by: "Matthew Emmerton" <matt@gsicomp.on.ca>
Sat on for far too long: phk


108470 30-Dec-2002 schweikh

Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/
Add FreeBSD Id tag where missing.


108088 19-Dec-2002 tjr

Add a test program for perror() that demonstrates two bugs in the
current implementation.


108069 19-Dec-2002 tjr

Test that if the buffer argument (`s') to wcrtomb() is NULL then
the value of the supplied wide character is ignored and L'\0' is used
instead. Remove incorrect comments about "internal buffer" since wcrtomb()
does not have one (wctomb() does).


108045 18-Dec-2002 mike

Add regression test for strerror()/strerror_r().

Based on: src/lib/libc/string/strerror.c (rev 1.8)


107954 16-Dec-2002 phk

Goto WARNS 5 with assorted changes.


107951 16-Dec-2002 phk

Update this one too.


107950 16-Dec-2002 phk

Get the test-suite into sync with the kernel again.


107852 14-Dec-2002 sam

add program used to exercise/test /dev/crypto symmetric crypto functionality

Obtained from: openbsd (originally)


107375 28-Nov-2002 ru

Add a test for what was fixed in revisions 1.39 and 1.50 of
make/parse.c (allow embedded `:' and `!' in target names).

Approved by: re


107374 28-Nov-2002 ru

Moved make(1) regression tests from src/Makefile to where they
belong (src/tools/regression/usr.bin/make), and use the latter
to test if make(1) is adequate for building the world.

Approved by: re


107183 23-Nov-2002 davidxu

Directly load %edx from mailbox


107167 22-Nov-2002 davidxu

Fix context restore bug.


107165 22-Nov-2002 julian

Don't flip the "we're it" bit until we are all there..
(don't fill in the mailbox pointer until we have unloaded all the
previous contents of the mailbox context block)


107138 21-Nov-2002 davidxu

Correctly save eflags.


107035 18-Nov-2002 davidxu

Adjust code for new mailbox format.

Reviewed by: deischen, mini


106727 10-Nov-2002 tjr

Add test cases for btowc() and wctob() in multibyte locales.


106726 10-Nov-2002 tjr

Test for the zero-length buffer bug corrected in mbrtowc.c revision 1.3.


106686 09-Nov-2002 tjr

Add regression tests for mblen(), mbtowc(), wctomb(), mbstowcs() and
wcstombs(). These tests have already found two libc bugs.


106495 06-Nov-2002 tjr

Add missing #includes of <stdio.h>. Correct a few typos in comments.


106336 02-Nov-2002 davidxu

add missing '!', don't why it was lost when checked in.


106080 28-Oct-2002 tjr

Simplify by using inference rules properly.


105980 26-Oct-2002 tjr

Add tests for btowc(), mbrlen(), mbsrtowcs() and wcsrtombs().


105973 26-Oct-2002 tjr

Add regression tests for mbrtowc(3) and wcrtomb(3).


105907 25-Oct-2002 jmallett

Hide the test in <target> under '.if make(<target>)' so as to not get any
errors/warnings related to crud in said test block.


105898 24-Oct-2002 phk

Redo reference vectors to include the mediasize and sectorsize.


105896 24-Oct-2002 phk

Resync with kernel.


105334 17-Oct-2002 joe

Fix a bug that showed up when trying to produce a database for
subdirectories, and ended up making us loop forever.

Add the username to the md5 of the commit to make it slightly more
unique.

Make the 'cvs' run quietly.


104512 05-Oct-2002 phk

Use in-tree libbsdxml instead of ports based libexpat.

Sponsored by: DARPA & NAI Labs.


104511 05-Oct-2002 phk

Match the new g_io_deliver() API in the kernel.

Sponsored by: DARPA & NAI Labs.


104510 05-Oct-2002 phk

Pass sbuf to the kernel routines to match new kernel code.

Sponsored by: DARPA & NAI Labs


104442 04-Oct-2002 wollman

Yesterday, FreeBSD-current ate my disklabel.
Today, I wrote a program to tell me where the partitions used to be.
Now I have my /media filesystem back.


104380 02-Oct-2002 archie

-Wall'ify (mostly).


104288 01-Oct-2002 ru

test -h is deprecated; use -L instead.

PR: bin/40846


104070 27-Sep-2002 phk

Update to match current kernel code.

Fix a couple of reference data which were found to be in error.

Sponsored by: DARPA & NAI Labs.


103973 25-Sep-2002 archie

Adjust for KSE function name changes.


103910 24-Sep-2002 ache

Make it works with POSIX sort (POS arg)
All old sorts understand -k too.


103840 23-Sep-2002 julian

Add ability to make threads that run on > 1 cpu
this DOES NOT WORK YET. (well it kind-of-does but it's unsafe)

Submitted by: davidxu


103581 19-Sep-2002 mini

Update the KSE test utility to the new KSE API.


103436 17-Sep-2002 peter

Initiate deorbit burn for the i386-only a.out related support. Moves are
under way to move the remnants of the a.out toolchain to ports. As the
comment in src/Makefile said, this stuff is deprecated and one should not
expect this to remain beyond 4.0-REL. It has already lasted WAY beyond
that.

Notable exceptions:
gcc - I have not touched the a.out generation stuff there.
ldd/ldconfig - still have some code to interface with a.out rtld.
old as/ld/etc - I have not removed these yet, pending their move to ports.
some includes - necessary for ldd/ldconfig for now.

Tested on: i386 (extensively), alpha


103392 16-Sep-2002 phk

Pick up modules from the compile directory instead of /boot/kernel.

Allow the script to operate on any convenient kernel.

Submitted by: "Matthew Emmerton" <matt@gsicomp.on.ca>


103343 15-Sep-2002 phk

Some change in src/share/mk seems to have made it possible to remove
50% of the active ingredients in these Makefiles.


103288 13-Sep-2002 phk

Overhaul the kernel-simulation bits here to use pthreads instead.

If somebody wanted to, this could for the beginning of a "libkernel"
which could be used to run kernel code in userland.

Sponsored by: DARPA & NAI Labs.


103010 06-Sep-2002 phk

Remove magicspace from reference data.

Sponsored by: DARPA & NAI Labs.


103008 06-Sep-2002 phk

expat2 changed the name of their include file to expat.h

Sponsored by: DARPA & NAI Labs.


103007 06-Sep-2002 phk

Fix an indentation typo.

Sponsored by: DARPA & NAI Labs.


103006 06-Sep-2002 phk

Add a zeroed out sector one for the GPT hack and test T003.

Sponsored by: DARPA & NAI Labs.


101902 15-Aug-2002 alfred

Add regression tests for sysvipc.

Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>
Obtained from: NetBSD


101677 11-Aug-2002 schweikh

Fix typos; each file has at least one s/seperat/separat/
(I skipped those in contrib/, gnu/ and crypto/)
While I was at it, fixed a lot more found by ispell that I
could identify with certainty to be errors. All of these
were in comments or text, not in actual code.

Suggested by: bde
MFC after: 3 days


100794 28-Jul-2002 jmallett

As of revision 1.38 of make/parse.c, our make(1) will warn too. Note that
this isn't just for the sake of testing behaviour, and that things really
do break if this regression occurs.


100354 19-Jul-2002 phk

Update to current reality: change COMPILEDIR and work on "R"ead-only-data
symbols as well.


99400 04-Jul-2002 tjr

Update another mention of <CR><CR> I missed the first time around (rev 1.2)


99355 03-Jul-2002 tjr

Note that two carriage returns aren't required after entering the
initial setup anymore (since process.c rev. 1.25). Add $FreeBSD$.

MFC after: 2 weeks


99073 29-Jun-2002 julian

KSE test program


98913 27-Jun-2002 jmallett

The wrong y/// output got spammed into this file; from green@ indirectly.


98912 27-Jun-2002 green

Correct the psl regression test for sed(1)'s now-fixed newline
behavior. Add the bcb regression test which checks for failures due
to a backslash ('\') coinciding with the very last character of the
command buffer. The regression test is cf. this PR (which I did not
know about) and has a different fix for the bug.

PR: bin/22351
Submitted by: Stefan Duerholt <stefan.duerholt@t-online.de>


98881 26-Jun-2002 jmallett

Erk, I forgot that regress.in has an ending newline, so change the test for
transliterate to use echo -n to supress newline and a simple string.


98812 25-Jun-2002 jmallett

Reduce internal code duplication, add REGRESSION_PASSFAIL([testname]) to
handle printing of the PASS/FAIL messages. Suffix PASS/FAIL/FATAL with the
string (in $directory) where $directory is ${.CURDIR} from make(1), to
make it easier to use grep(1) and a bit of sed/awk to do statistics of
failure for some utilities over time, etc.


98811 25-Jun-2002 jmallett

Add a regression test for transliterate which happens to match characters
at an EOL/EOF, and therefore should catch the broken behaviour fixed by
Tim J. Robbins in sed(1) recently.

Suggested by: obrien


98760 24-Jun-2002 jmallett

I explicitly meant to not move any of this over to the new m4(1) framework,
even slightly. Grrr CVS.


98759 24-Jun-2002 jmallett

Move all remaining tests except for:
make(1): Does not work like the other tests. Its Makefile is
self-testing.
m4(1): It uses complex voodo to test GNU m4(1) features.

To the new framework. I had worried about passing the binary data that
uudecode(1)'s test passes to diff(1) might give a user something nasty,
but this is unlikely to happen as even with an unmodified old nasty
diff(1) which doesn't recognise many binary files, these binary files
are recognised. Using $DIFF instead of `diff' in the library and making
it possible to override this with `cmp -s' might be nice some day, but
as of this second, there's no immediate need.


98758 24-Jun-2002 jmallett

Add two new mostly freeform types of regression tests, and a macro for dying
ungracefully.


98755 24-Jun-2002 jmallett

Comments to describe what these macros do, so that someone other than me
might be able to figure out how to write some of these tests (hint hint).


98754 24-Jun-2002 jmallett

Convert straightforward regression tests to use regress.m4.

Goodbye, duplicated code, you will certainly not be missed.


98752 24-Jun-2002 jmallett

Add a simple (to be expanded) library of functions for the regression tests,
to handle the ones which output to stdout and have output in regress.$test.out,
etc. More freeform macros should and will be written, but these are the most
prominent and most straightforward sort of tests we have around, so it makes
sense to try to accomodate them.


98461 20-Jun-2002 jmallett

Grrr, make the test for embedded variables in the left-hand-side actually do
the right thing in every case. Yuck.


98442 19-Jun-2002 jmallett

Add a test for what was fixed in revision 1.27 and 1.28 of make(1)'s var.c,
expansion of embedded variables in the left-hand-side of an assignment
expression, using the simplest case - hiding recursion using nil-expanded
variables.


98067 09-Jun-2002 phk

Catch up with kernel.


97996 07-Jun-2002 jmallett

Describe ia64_unaligned and geom directories. I hope I got these right.


97992 07-Jun-2002 jmallett

Add the m4(1) regression test.


97991 07-Jun-2002 jmallett

Add a regression test for m4(1).

This checks the behaviour of changecom() in both GNU and BSD modes of our m4.


97933 06-Jun-2002 ru

Fixed typos.


97932 06-Jun-2002 ru

Tidy up.


97748 02-Jun-2002 schweikh

Fix typo in the BSD copyright: s/withough/without/

Spotted and suggested by: des
MFC after: 3 weeks


97388 28-May-2002 ru

Update for current /usr/src.


97303 26-May-2002 des

Mutex statistics script.


97080 21-May-2002 phk

Update to match kernel side.

Sponsored by: DARPA & NAI Labs.


96951 19-May-2002 phk

Catch up with recent events.

Sponsored by: DARPA & NAI Labs.


96811 17-May-2002 jmallett

Regenerate with new output grouping in uuencode -m.


96709 16-May-2002 trhodes

file system > filesystem


96070 05-May-2002 jmallett

Add a regression test for bin/5297, regarding sysv substitution with a nil
left-hand-side.


95995 03-May-2002 jmallett

Add a test for the -R option.


95981 03-May-2002 jmallett

Regenerate -I output since an argument bogon in the -I code was fixed, among
other things.


95950 02-May-2002 phk

Modernize


95935 02-May-2002 phk

Un-rot the VOP_ table generator.


95542 27-Apr-2002 jmallett

Redirect stdin from the input file, rather than passing the input file to
uuencode(1), and set a umask, so that the mode in the header is predictable.

If it varies, then the test is right to fail.

Remove the note about this test falsely failing, with that in mind.


95538 27-Apr-2002 jmallett

Prefix tests with PASS and FAIL, to make grepping easier, and note this in
the README.

This affects only the base-system regression tests, of course.


95406 24-Apr-2002 phk

Update the test-case reference vectors to match the new XML format.

Sponsored by: DARPA & NAI Labs.


95404 24-Apr-2002 phk

Add -DKERNELSIM so the test cases compile with the kernel simulation.

Sponsored by: DARPA & NAI Labs.


95403 24-Apr-2002 phk

Improve the output in case of inserts or deleted.

Sponsored by: DARPA & NAI Labs.


95397 24-Apr-2002 phk

Prepare the .conf XML comparator for a more kosher XML format.

Sponsored by: DARPA & NAI Labs.


95258 22-Apr-2002 des

Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.


95169 21-Apr-2002 jmallett

For the P function, the newline must be considered a part of the pattern
space, so when printing it, don't let the pattern space and the output run
into eachother by omitting the \n when printing.


95168 21-Apr-2002 jmallett

Add sed(1) tests for proper behaviour of the G option as fixed in PR 26152,
and for proper behaviour of some sed functions given a nil pattern space,
as fixed in PR 34813.

The test for G was based on the test in the PR. The nil pattern space test
is slightly different as we need to get *some* output, as the core dump will
also produce no output (old behaviour) and turn up falsely that the utility
is working fine.


95167 21-Apr-2002 jmallett

Check to see if make(1)'s handling of doubly-defined targets is busted or
not. A lot relies on this.


95166 21-Apr-2002 jmallett

Only exit at the end of a test, exit with the last value of $? that was not 0.

This way the entire regression test is looked at as a pass/fail, not just one
sub-test.


95158 20-Apr-2002 jmallett

Add a test of variable evaluation and substitution for make(1), as a start
of tests for it.


95150 20-Apr-2002 jmallett

Add a test for jot(1).


95148 20-Apr-2002 jmallett

A simple test for join(1) based on tjr's test case for -o 0.

Partially based on: PR standards/36072


95145 20-Apr-2002 jmallett

Add an exceedingly simple regression test for the file2c program. One would
hope that it would never regress, but this is a straightforward test, so add
it.


95142 20-Apr-2002 jmallett

Add regression tests for parts of xargs(1).


95141 20-Apr-2002 jmallett

Add a comment regarding the file header, and the mode that the file is created
with.

This should be fixed shortly by adding the (desirable) option to set the file
creation mode on the command line.


95140 20-Apr-2002 jmallett

Add uuencode(1) and uudecode(1) regression test input and output.


95138 20-Apr-2002 jmallett

Start adding framework for userland regression tests, and tests for
uuencode and uudecode.


94856 16-Apr-2002 phk

update the reference vector.


94832 16-Apr-2002 phk

Forgot to commit the updates to the regression test suite.

Sponsored by: DARPA & NAI labs.


94738 15-Apr-2002 des

Long-forgotten patch: warn if a closed PR has no "closed by"


94737 15-Apr-2002 des

Long-forgotten patch: list prstats


94541 12-Apr-2002 ru

Add a tool (and the first application of it) that could be used
to automate building of libraries.

Prodded by: bde


93792 04-Apr-2002 phk

Play catch up with the kernel.

Sponsored by: DARPA & NAI Labs


93556 01-Apr-2002 joe

We might as well show the log message if we're going to produce the patch.


93545 01-Apr-2002 joe

Take an option flag to specify that we'd like a patch generated too.


93357 28-Mar-2002 phk

Add testcase #14: PC98 label.


93356 28-Mar-2002 phk

Record the physical geometry in this disk-image, PC98 needs it.


93355 28-Mar-2002 phk

Ignore the <FreeBSD> element in XML files.


93353 28-Mar-2002 phk

Add the relevants sectors from a PC98 disk to our beastiarium.

Submitted by: imp


93294 27-Mar-2002 phk

Add another two alpha disks to this testcase.


93293 27-Mar-2002 phk

Add another couple of alpha disklabels.


93251 26-Mar-2002 phk

Track changes in sys/geom


93249 26-Mar-2002 phk

Another bow for tradition s/method/class/g


93223 26-Mar-2002 ru

Finish style fixes.


93151 25-Mar-2002 phk

Modernize my email address.


93100 24-Mar-2002 phk

Link testcase 13 in.


93098 24-Mar-2002 phk

Add a testcase for the alpha BSD label from beast.


93096 24-Mar-2002 phk

Add a copy of the bsd-label from beast.freebsd.org


93091 24-Mar-2002 phk

Update to reflect new contents of sys/geom


92515 17-Mar-2002 phk

Some necesary fixups to cope with new location and FreeBSD CVS keyword.


92512 17-Mar-2002 phk

Add the GEOM regression test framework.

This is a set of userland shims in which GEOM can be run through simple
tests.

The simulation of kernel synchronization primitives is very primitive
and consequently some times tests will fail because of races.

Data/ contains a number of files in XML format which describe the
key sectors for a number of disk images

This is a very handy tool for people developing GEOM methods. The
"simdisk" method can be told to read from a "real disk" and afterwards
dump the accessed sectors in XML format for further use.

I hope future method writes will see the benefit of this test
collection and add to it when they write methods for GEOM.

You will need ports/textproc/expat for the XML parser.

Sponsored by: DARPA, NAI Labs.


92288 14-Mar-2002 rwatson

NAI DBA update.


91501 28-Feb-2002 joe

Add a tool that I've written to help with finding what other
files/revisions were changed with a particular commit.


90359 07-Feb-2002 phantom

Complete '_' hack.


90358 07-Feb-2002 phantom

. add a hack dedicated to n_himba (or correctly to say problem with his nick
in docbook environment)
. clarify comments
. mention that this script is dedicated to freefall's environment
. add bsd style copyright


90357 07-Feb-2002 phantom

This script has served its purpose. Now its function is one of subfunctions
of recently added cknames.pl.


90356 07-Feb-2002 phantom

Add script to check integrity between access/authors.ent/passwd@freefall


90310 06-Feb-2002 phantom

Fix sentence in comment


90309 06-Feb-2002 phantom

Update description of 'ac' subdirectory


90308 06-Feb-2002 phantom

Add descirptions of scripts in this directory


90307 06-Feb-2002 phantom

Add script that checks contents of .ent files (sorting and addresses)


90305 06-Feb-2002 phantom

List of committers was moved out of handbook. Teach 'ac' about new location.
Also teach it about complex entries in access file (or correctly to say
simplify them)


90189 04-Feb-2002 phantom

* fix some warnings
* set WARNS
* few style/whitespace fixes

Submitted by: ru


90182 04-Feb-2002 phantom

describe localeck
plus some capitalization/whitespace fixes


90181 04-Feb-2002 phantom

Add simple diagnostic utility to checking for invalid/incomplete
locales


88800 02-Jan-2002 kbyanc

Remove broken attempt to compile libc's malloc source directly; this
allows this tool to compile again. Albeit, now to test a new malloc
implementation one has to install the new libc which may have bad
consequences (i.e. if the new malloc implementation were buggy).

Add logic to workaround malloc's current behaviour of returning an
invalid non-NULL pointer for 0 byte allocation requests; this prevents the
tool from coring during the NOPS loop.

Add $FreeBSD$ tags.


88799 02-Jan-2002 kbyanc

Include definition for struct namecache (it isn't exported via any header)
so this builds again. Replace hardcoded name length magic with NAME_MAX.


88242 20-Dec-2001 jkh

Add Apple's filesystem exercising tool.

Submitted by: Conrad Minshall <conrad@apple.com>
Obtained from: Apple Computer


87163 01-Dec-2001 sheldonh

Correct misattribution of the Hart list, which I had mistakenly
attributed to Heckenbach.


86781 22-Nov-2001 sheldonh

Add the script that will be used to maintain src/share/misc/pci_vendors.
The script written and used originally by msmith has been lost.

This version takes the Boemler and Heckenbach lists and produces merged
output. It defaults to ignoring any entries from Heckenbach already
found in Boemler but the -l option causes it to take the entry with the
longest description where an entry appears in both lists.

If this script is replaced, care should be taken to

1) Always use upper-case hexidecimal tokens in device ids.

2) Always keep device lists sorted within vendor lists, which must also
be sorted.

3) Do not try to include input from the previous pci_vendors file, since
bogus ids seem to be removed from both the Boemler and Heckenbach
lists from time to time.


86312 13-Nov-2001 des

Now it gets interesting...


86310 13-Nov-2001 des

Use a slightly less predictable temp file name, remove a stale list of PRs
with corrupted submission dates (they were fixed on freefall a while ago),
and uncomment the code that removes the temp file when we're done.


86309 12-Nov-2001 des

This is a PR statistics-gathering script I wrote a while ago. It currently
doesn't do much of interest except produce graphs similar to phk's.


86113 05-Nov-2001 phk

Update.


86112 05-Nov-2001 phk

This is long since unused.


86111 05-Nov-2001 phk

This simple shell-script tries to find *.c files under /sys
which are not in some way used or referenced somewhere.


85197 19-Oct-2001 dfr

Make a start at a regression test for the unaligned trap handler.


85040 17-Oct-2001 fenner

The interface index space may be sparsely populated (e.g. when an
interface in the middle is if_detach()'d). Return (and handle)
ENOENT when the ifmib(4) is accessed for a nonexistent interface.

MFC after: 14 days


84667 08-Oct-2001 asmodai

Add $FreeBSD$.
Describe the other two directories in here.


83794 21-Sep-2001 rwatson

o Fix two eaccess() checks -- in one case, the wrong test file
was used, resulting in a regression failure, and in the other,
the test on an error return was inverted.

Obtained from: TrustedBSD Project


83736 20-Sep-2001 rwatson

o Regression test to check that appropriate parts of the process
credential are used in the access() and new eaccess() system calls.

Obtained from: TrustedBSD Project


78036 11-Jun-2001 ache

ISO_ -> ISO


77346 28-May-2001 ru

Added support for all new install(1) options.
Removed -c from the actual call as -p implies "copy".


75872 23-Apr-2001 phk

Update this to reflect changes in config(8) usage.

It finds 639 hits on kernel source from before the <sys/mount.h>
change earlier today.


75486 13-Apr-2001 rwatson

o Add a comment identifying the "privileged on privileged" scenario.

Obtained from: TrustedBSD Project


75485 13-Apr-2001 rwatson

o Add inter-process authorization uid regression testing for ktrace().

Obtained from: TrustedBSD Project


75482 13-Apr-2001 rwatson

o s/debug/ptrace/ since shortly there will be tests involving other
forms of debugging.

Obtained from: TrustedBSD Project


75447 12-Apr-2001 rwatson

o Expand inter-process authorization regression test to include
signalling with sigsegv as one of the tests.
o Teach errno_to_string() about ENOTSUPP.

Obtained from: TrustedBSD Project


75429 11-Apr-2001 rwatson

o Enable -DSETSUGID_SUPPORTED in inter-process authorization regression
test by default, as setugid() is now part of the base kernel (assuming
(options REGRESSION) has been enabled for the running kernel).

Obtained from: TrustedBSD Project


75422 11-Apr-2001 rwatson

o First pass at an inter-process authorization regression testing suite.
This test utility attempts to evaluate the current kernel policy
for authorization inter-process activities, currently ptrace(),
kill(, SIGHUP), getpriority(), and setpriority(). The utility creates
pairs of processes, initializes their credential sets to useful
cases, and reports on whether the results are in keeping with hard-coded
safety expectations.

o Currently, this utility relies on the availability of __setugid(),
an uncomitted system call used for managing the P_SUGID bit. Due to
continuing discussion of optional regression testing kernel components
("options REGRESSION") I'll hold off on committing that until the
discussion has reached its natural termination.

o A number of additional testing factors should be taken into account
in the testing, including tests for different classes of signals,
interactions with process session characteristics, I/O signalling,
broadcast activities such as broadcast signalling, mass priority
setting, and to take into group-related aspects of credentials.
Additional operations should also be taken into account, such as ktrace,
debugging attach using procfs, and so on.

o This testing suite is intended to prevent the introduction of bugs
in the upcoming sets of authorization changes associated with the
introduction of process capabilities and mandatory access control.

Obtained from: TrustedBSD Project


72645 18-Feb-2001 asmodai

Preceed/preceeding are not english words. Use precede and preceding.


71226 18-Jan-2001 phk

Look for modules in /boot/kernel these days.


67812 28-Oct-2000 phk

The latest & greatest unused #include spotter. Faster, one-pass and
more precise than ever.

1230 hits on the current kernel.


67063 13-Oct-2000 phk

Teach kerninclude to check <machine/*> #includes as well.

Currently it finds 2072 supposedly unneeded #includes in the first pass.


66353 25-Sep-2000 phk

Use "make LINT" to create our LINT config


65824 13-Sep-2000 wollman

Fix compilation problems and bounds-checking bug in `ifinfo'.

PR: 21177
Submitted by: Craig Leres <leres@ee.lbl.gov>


64894 21-Aug-2000 phk

Make this work with current makefiles again.


64610 13-Aug-2000 alex

- Add $FreeBSD$
- Refer to the README files in the subdirs.


60938 26-May-2000 jake

Back out the previous change to the queue(3) interface.
It was not discussed and should probably not happen.

Requested by: msmith and others


60833 23-May-2000 jake

Change the way that the queue(3) structures are declared; don't assume that
the type argument to *_HEAD and *_ENTRY is a struct.

Suggested by: phk
Reviewed by: phk
Approved by: mdodd


59706 27-Apr-2000 phk

Use profiling on LINT.
cosmetics.


59498 22-Apr-2000 wollman

Add a little test program to demonstrate POSIX Shared Memory Objects.


57712 03-Mar-2000 sheldonh

Correct grammar in the synoptic comment.

Submitted by: ru


57697 02-Mar-2000 sheldonh

Use double-quotes instead of single-quotes when displaying the usage
so that the shell interpolates $0.

PR: 17121
Submitted by: Peng HaiJie <phj@cn.FreeBSD.org>


57257 16-Feb-2000 dufault

These are regression tests for the P1003.1B scheduler.

Approved by: jkh


54648 15-Dec-1999 marcel

Don't use -C internally. Use -c. For some reason files are not copied
with -C, although they should.


54389 10-Dec-1999 marcel

Use install -C -p instead of cp -p.

Pointed out by: bde


54310 08-Dec-1999 marcel

install(1) lookalike that can be used during a build. Any options
are ignored and the remaining is passed on to cp(1). This allows
a build to be run as non-root without forcing any user/group
setting and also prevents setting any file flags.

This may not be the right place for buildtools.


54232 06-Dec-1999 wosch

Include BSD-license.

PR: misc/15262
Submitted by: alex@big.endian.de


52869 04-Nov-1999 phantom

Bring ``ac'' into reality. This great tools now works correctly (for
current state of the tree)


52868 04-Nov-1999 phantom

Add short description of dumpvfscache


52139 11-Oct-1999 phk

Add the machine that goes "BINGO" every time an potentially
unused #include is spotted in the kernel sources.

(This commit message celebrates Monty Pythons 30year aniversary)


51579 22-Sep-1999 archie

Remove the "diffburst" tool, because equivalent functionality is now available
via "split -p". Leave a note to this effect in the README file.


50939 05-Sep-1999 phantom

mdoc(7) style fixes.

PR: docs/13408
Reviewed by: mpp


50533 28-Aug-1999 mpp

Add $FreeBSD$ lines to man pages that are missing them to make it
easier for translation teams.

PR: docs/13418
Submitted by: Alexey Zelkin <phantom@cris.net>


50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


49205 29-Jul-1999 bde

Look for symbols in /modules/*.ko, not in /lkm/*.o.


45348 05-Apr-1999 jkh

Move the proper set of libraries.


44035 15-Feb-1999 jkh

Do a better job of finding the default root device.


43745 07-Feb-1999 joerg

Fix a typo describing the filename of cvt-wtmp.

Submitted by: Ruslan Ermilov <ru@ucb.crimea.ua>


43495 01-Feb-1999 jkh

Make directories unconditionally to deal with the empty directory
case.

Submitted by: Ruslan Ermilov <ru@ucb.crimea.ua>


43261 27-Jan-1999 jkh

Make building the kernel conditional.


43215 26-Jan-1999 jkh

1. Properly chflags libraries before moving (otherwise they don't).
2. Add my helper script for upgrades; not enabled yet.


42375 07-Jan-1999 archie

Add the 'diffburst' tool, which does the following:
Reads the output of 'diff -r' and splits it into separate
patch files, one per file. The files are named 'patch-XX'
where XX is aa, ab, ac, ... Useful when creating ports.


41896 17-Dec-1998 cracauer

Actually document my last addition.
General cosmetics.
Add a note that scsi-defects has not been ported to CAM.
Submitted by: BDE


41826 15-Dec-1998 cracauer

Add some emacs code to make cc-mode almost compatible to style(9).
Sort entries in toplevel README.


41594 08-Dec-1998 archie

Automatically detect a.out vs. elf kernel


41566 06-Dec-1998 archie

Add "-aout" flag to nm until the kernel is ELF'd.


41372 27-Nov-1998 bde

Ignore objects used to build utilities (*aicasm*.o and *genassym*.o).


40589 22-Oct-1998 bde

Removed all `vector xxxintr' specifications. Interrupt handlers are now
configured in drivers.


40467 17-Oct-1998 peter

3.0-RELEASE and now the post-release 3.0-CURRENT were being declared
'too old' to run ELF. Check the kernel version properly.


39369 16-Sep-1998 phk

Prevent ldconfig from choking by creating any missing directories.


39017 09-Sep-1998 imp

getopt returns -1 not EOF


38973 09-Sep-1998 jb

Add a note about the upgrade tool directory.


38972 09-Sep-1998 jb

A script for use when upgrading an installed system from aout to
elf.


36252 20-May-1998 wosch

Add mid scripts. Mid is a tool which create a Message-ID database
for mailing lists.


35770 06-May-1998 msmith

Updates to support adding driver files outside the i386 area.
Submitted by: Daniel O'Connor <doconnor@gsoft.com.au>


34819 23-Mar-1998 bde

Install tclAppInit.c in the installhdrs step so that it isn't necessary
to build libtcl twice in `make world'.


33410 15-Feb-1998 wosch

httpd-error is a shell script which print a summary about
Web files which does not exists on your host.

E.g.

httpd-error -userhits < /var/log/httpd-error.log

print the number of errors by users, sorted by error hits.


32591 17-Jan-1998 bde

Don't install the tcl implementation headers. The tcl distribution
makefile doesn't install them, and they couldn't be used without
lots of undocumented -I's in CFLAGS. tcl.h is still installed in
/usr/include/tcl/. Note that rev.1.24 of tcl_bmake/mkMakefile.sh
broke all the section 3 tcl man pages by putting it there instead
of in /usr/include.


32590 17-Jan-1998 bde

Updated shlib version to 80.4 in the correct place.

Regenerated libtcl/Makefile. This adds -DHAVE_ST_BLKSIZE=1 to CFLAGS.
It was broken by direct editing in rev.1.25.


31067 09-Nov-1997 wosch

Add html-mv script. Html-mv rename HTML generated filenames to
human readable filenames. E.g.:

$ cd FAQ
$ make FORMATS=html
$ html-mv FAQ
$ ls
FAQ_ACKNOWLEDGMENTS.html
FAQ_Any_restrictions_on_how_I_divide_the_disk_up_.html
FAQ_Are_there_any_Database_systems_for_FreeBSD_.html
FAQ_Are_there_any_commercial_high-performance_X_servers_.html
FAQ_Books_on_FreeBSD.html
FAQ_Can_FreeBSD_handle_multiport_serial_cards_sharing_irqs_.html
[...]


30746 26-Oct-1997 phk

Update this little gadet to latest version.


30477 16-Oct-1997 phk

Makes html table with all VOPs in it.


30104 04-Oct-1997 wosch

Do not suppress the first 5 lines of updated ports.

Detected by: Ville Eerola <ville@vlsi.fi>


30041 01-Oct-1997 phk

New shlib is 80.3


29987 29-Sep-1997 wosch

Add introduction. Add updated ports.


29095 04-Sep-1997 phk

A little gadget to dump the contents of the vfs name cache.


28977 01-Sep-1997 bde

Made this compile again (getopt moved to <unistd.h>).

Fixed usage message.


28534 21-Aug-1997 bde

Split beforeinstall target so that headers can be installed without
installing data files.


28253 16-Aug-1997 peter

Install tcl.h into /usr/include/tcl/ so that there's less chance of it
conflicting.


28122 12-Aug-1997 peter

Remove the original tweaks to make tcl75 work with the ports system
before we make the same mistake with tcl8.0. This _should_ no longer
conflict with a not-yet-imported tcl8.0 port and should allow the
system and ports versions to be updated independently of each other
(and tk) without the sky falling.


27830 01-Aug-1997 phk

Move tcl packages to libdata/pkg


27681 25-Jul-1997 phk

The thing to do the trick to tcl.


27216 05-Jul-1997 wosch

Support message of last database update.


26532 10-Jun-1997 msmith

Some helpful improvements :

- be smarter about locating driver description files.
- be smarter about whether we are really looking at a kernel tree
- fix option handling


25889 18-May-1997 dfr

Add a couple of test cases for mmap over NFS.


25137 25-Apr-1997 wosch

Add portsinfo, which generate list of new ports for last two weeks.


24347 28-Mar-1997 wosch

Add ac which check if the FreeBSD handbook is in sync with the committers list


23458 07-Mar-1997 mpp

Fix a couple of typos.


22988 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


22205 02-Feb-1997 joerg

Add a tools to get at the primary or grown defect list of a SCSI disk.

Submitted by: dufault


21917 21-Jan-1997 jkh

Clean up some of the tortured english in this file.


21914 21-Jan-1997 msmith

Add KernelDriver.


21913 21-Jan-1997 msmith

This commit was generated by cvs2svn to compensate for changes in r21912,
which included commits to RCS files with non-trunk default branches.


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


21359 06-Jan-1997 msmith

- Add a BSD-style copyright. (Should have done that before.)
- Be more intelligent about library-like objects that are actually
symlinks. (Suggested by Steve Price)
- Complain about nonexistent libraries referenced by executables (instead
of creating a library called 'not' and putting them there. (oops)
- Fix a few typos.


21193 02-Jan-1997 joerg

Add a -f (`force') option to cvt-wtmp. This might help people with
slightly bogus wtmp files (it definately helps in Jordan's case).

Also add a README explaining what all this is for.


21184 02-Jan-1997 msmith

This commit was generated by cvs2svn to compensate for changes in r21183,
which included commits to RCS files with non-trunk default branches.


20974 28-Dec-1996 wosch

epfe - extract printing filter examples from printing.sgml

usage:
$ cd /usr/share/examples/printing
$ epfe < printing.sgml


20973 28-Dec-1996 wosch

add epfe and tcl_bmake


20585 17-Dec-1996 peter

Fix the 'info sharedlibextention' output in tclsh which was caused by a
missing define during the libtcl build. This is needed to get Tclmidi 3.1
to work.

This should close PR#2006

This should also go into 2.2, like the previous commit.

Submitted by: A JOSEPH KOSHY <koshy@india.hp.com>


20551 16-Dec-1996 joerg

Start collecting transition tools for upgrading a system to 3.0.
Subject to be moved elsewhere in case we decided on a more cmplete
upgrade toolset. Right now, put it here so that people can upgrade
their wtmp files if they want.

Note that the tool is not yet fully bullet-prrof. It tries to do its
best however.


20546 16-Dec-1996 peter

Reverse the tcl configure's decision to "disable" the use of ranlib since
it's wrong. It "knows" that ranlib is not used on shared libraries, this
is not a valid assumption since it exports this definition to the world
via tclConfig.sh. :-( Hence, things like expect (to be updated) fall over
because they were using ":" instead of "ranlib" on their static libraries.


19292 31-Oct-1996 peter

Back out a little more of the previous changes. No longer change
TCL_SHLIB_SUFFIX, since some tools use it for generating the name of
shared objects for dlopen(), which do not have version numbers. This
setting is back to "as distributed".


19263 30-Oct-1996 peter

Argh, I hate the tcl build/config environment. :-(

It seems that some tools (eg: expect-5.21) use TCL_LIB_SPEC to generate
their shared library suffix. This should be .so.1.0, not .so as ld can't
use it.

Revert part of the previous change here, it did too much. libtcl75.so.1.1
was bumped, but the rules to generate library names for _other_ packages
were not supposed to be. Sigh.


19243 29-Oct-1996 peter

Along the way, the minor version number has been bumped (newer version
of tcl with new functions in the library), but the ports-compatable
link name wasn't bumped as it should have been.

Minor cleanups while here (including preserving the $Id: line)


19205 27-Oct-1996 wosch

(reverse) sync with src/lib/libtcl/Makefile rev 1.9

>Do not make symbolic links from obj directory into source tree,
>it may break `make reinstall'. Use cp(1).
>
>Simplify Makefile.

Requested by: Peter


19192 26-Oct-1996 phk

Update this to match my version.


18871 11-Oct-1996 wollman

Actually tell people what ifinfo is.


18870 11-Oct-1996 wollman

Add my little `ifinfo' program. This is sort of a cross between a
diagnostic program for debugging the interface MIB and an example of
how to use same. Someday, netstat should be updated to print this
information in a prettier form.


18422 20-Sep-1996 bde

Fixed CLEANFILES. The *.3 links were missing.
Removed ugly newlines.


18355 18-Sep-1996 phk

Bump minor number to 1


18056 05-Sep-1996 peter

Oops, two tiny typos. Serves me right for making a "Just a tiny change!"
without testing right before committing...
Also, get rid of some extra slashes in beforeinstall.


18055 05-Sep-1996 peter

Sigh. That darn tcl source tree is damn strange. I missed the fact that
the *.3 man pages are not installed with their distributed names, so all
the links were messed up. :-(


17895 29-Aug-1996 peter

Fix the sed rule that I used to hammer out the TCL_BUILD_LIB_SPEC entry
from tclConfig.sh.. It needs to be valid for the tk41 port to use...


17889 29-Aug-1996 chuckr

Cause libtcl to install 5 include files for compibility with ports.
Also repair a small install bogon causing install of libtcl.so.0.0.
Reviewed by: Peter Wemm


17884 29-Aug-1996 peter

More cleanup:
- don't install nroff tcl.macros in /usr/include.... :-]
- set $MAN3 and $MANn in one go rather than a string of MAN3+= ...
- cosmetic tweaks to make it more readable
- no longer copy tcl.macros to the obj dir, install it from source dir


17883 29-Aug-1996 peter

Arrange to have libtcl automatically pull in libm since it's dependent
on it.


17856 28-Aug-1996 peter

Revamp the generated libtcl Makefile :-
Use the MANFILTER rather than generate rules for each page
Use .PATH to source the man pages rather than copy them for build
Install a tclConfig.sh with build params, may need more tweeks yet.
Install libtcl.so.75.0 *and* libtcl75.so.1.0 for ports compat.


17669 19-Aug-1996 peter

delete a mkdir of /usr/libdata/tcl, this is mtree's job.


17523 11-Aug-1996 ache

Make it at least semi-worked


16856 30-Jun-1996 phk

Update to use modern make meta-variables. Fix the $Id$ both.


16773 26-Jun-1996 phk

This script will help bmake tcl.


13094 29-Dec-1995 bde

Don't look in libkern, it went away.


12875 15-Dec-1995 bde

The unref and undef counts in the summary were swapped.


12870 15-Dec-1995 phk

Make this a real cross-ref listing.
This is now a handy tool for finding symbols in the kernel.


12814 13-Dec-1995 phk

Report common symbols with one reference as UNREF too.


12132 06-Nov-1995 phk

Fix two nits.


12059 04-Nov-1995 markm

Add the test programs that I tested the /dev/random driver with.


11498 15-Oct-1995 phk

malloc.c A program to benchmark and test malloc.


11497 15-Oct-1995 phk

Add kernxref, a shellscript to crossreference the symbols of the LINT kernel.


11496 15-Oct-1995 phk

README reads:
This directory is for tools.

A tool is something which is sometimes useful, and doesn't fit any of the
other categories.

Please make a subdir per program, and add a brief description to this file.


11495 15-Oct-1995 phk

README reads:
This directory is for test programs.

A test program is one that will excercise a particular bit of the system
and try to break it and/or measuring performance on it.

Please make a subdir per program, and add a brief description to this file.


11494 15-Oct-1995 phk

README reads:
This directory is for regression test programs.

A regression test program is one that will excercise a particular bit of the
system to check that we have not reintroduced an old bug.

Please make a subdir per program, and add a brief description to this file.


11493 15-Oct-1995 phk

README reads:
This directory is for diagnostic programs.

A diagnostic program is one that will inform you that something is wrong
somewhere, for instance by traversing a kernel-structure and verifying
the integrity.

Please make a subdir per program, and add a brief description to this file.


11492 15-Oct-1995 phk

README reads:
This directory tree contains tools used for the maintenance of FreeBSD.
There are no Makefile structure, but possibly Makefiles in some of the
subdirs.
Nothing show be installed from here and into the running system.
This directory should contain only subdirs and this file.


1590 27-May-1994 rgrimes

BSD 4.4 Lite Usr.bin Sources