summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* - Move all USB device ID arrays into so-called sections,hselasky2011-06-244-0/+511
| | | | | | | | | | | | 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
* sh: Add test for r223282.jilles2011-06-191-0/+6
|
* Add WITHOUT_UTMPX switch to the build system.ed2011-06-172-0/+28
| | | | | | | | | 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.
* Don't remove the periodic script for ac(8) when setting WITHOUT_ACCT.ed2011-06-171-1/+0
|
* Don't omit ac(8) as part of WITHOUT_ACCT.ed2011-06-172-4/+2
| | | | | | | 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.
* sh: Add case statement fallthrough (with ';&' instead of ';;').jilles2011-06-171-0/+39
| | | | | | | | | | | | 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.
* sh: Skip variables with invalid names in "set", "export -p", "readonly -p".jilles2011-06-172-0/+6
| | | | This ensures the output of these commands is valid shell input.
* sh: Reduce unnecessary forks with eval.jilles2011-06-161-0/+5
| | | | | | | | | | 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.
* sh: Add support for named character classes in bracket expressions.jilles2011-06-151-0/+32
| | | | | Example: case x in [[:alpha:]]) echo yes ;; esac
* sh: Add test for LC_COLLATE-based character ranges in case.jilles2011-06-121-0/+24
|
* sh: Add test for case pattern matching with iso-8859-1 charset.jilles2011-06-121-0/+52
| | | | This also passes on stable/8.
* Add "context" subcommand to fetch and display SGE context.np2011-06-111-0/+235
|
* sh: Do parameter expansion on ENV before using it.jilles2011-06-101-0/+11
| | | | | | This is required by POSIX, and allows things like ENV=\$HOME/.shrc. Note that tilde expansion is explicitly not performed.
* sh: Do parameter expansion before printing PS4 (set -x).jilles2011-06-091-0/+9
| | | | | | | | | | | | | | | | 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.
* cxgbetool: a tool for the cxgbe(4) driver.np2011-06-095-0/+41744
|
* sh: Add simple tests for set -x and PS4.jilles2011-06-082-0/+17
|
* sh: Fix $? in heredocs on simple commands.jilles2011-06-051-0/+15
| | | | PR: bin/41410
* sh: Add already working testcases for $? in here-document.jilles2011-06-051-0/+25
| | | | | | | | | 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
* Add a very simple IPDIVERT test, which creates IP divert sockets andrwatson2011-06-042-0/+177
| | | | | | | | | | | | 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.
* sh: Reduce more needless differences between error messages.jilles2011-06-041-1/+1
|
* sh: Honour -n while processing -c string.jilles2011-06-041-0/+3
|
* sh: Add tests for -n flag. These already pass.jilles2011-06-033-0/+16
|
* Don't need (and can't use) -L to copy links here.imp2011-05-311-1/+1
|
* sh: Add tests for some somewhat obscure aspects of function definitions.jilles2011-05-302-0/+12
|
* Upgrade jail(2) to latest jail(2) API to make the regression test workbz2011-05-301-2/+9
| | | | | | | again. Eventually should switch to jail_set(2). Reported by: rwatson MFC after: 10 days
* Rework TIMEWAIT regression test so that kernel-allocated port numbers arerwatson2011-05-301-39/+84
| | | | | | | | used rather than a fixed userspace one, avoiding conflicts between the two test runs. MFC after: 3 days Sponsored by: Juniper Networks, Inc.
* Add missing include of stdio.h.rwatson2011-05-301-0/+1
| | | | | MFC after: 3 days Sponsored by: Juniper Networks, Inc.
* In the tcpdrop regression test, allow the kernel to allocate us a portrwatson2011-05-301-37/+44
| | | | | | | | | 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.
* Add missing #include of err.h.rwatson2011-05-301-0/+1
| | | | | MFC after: 3 days Sponsored by: Juniper Networks, Inc.
* sh: Add test for 'set +o'.jilles2011-05-291-0/+32
|
* printf: Allow multibyte characters for '<char> form, avoid negative codes.jilles2011-05-283-1/+5
| | | | | | | | | | | | | 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.
* sh: Correct criterion for using CDPATH in cd.jilles2011-05-272-0/+25
| | | | | | | 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.
* sh: Add simple CDPATH test.jilles2011-05-271-0/+23
|
* sh: Fix unquoted $@/$* if IFS=''.jilles2011-05-271-0/+39
| | | | | | 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.
* Include an EEPROM dump program for the AR9287 EEPROM format.adrian2011-05-266-0/+508
|
* + Tighten up (and simplify) the pass_cmd_vars_1 "variable definition arrivedobrien2011-05-251-12/+9
| | | | | from the calling make" test. + Be more tolerant of newlines in the plus_flag "supports the '+' flag" test.
* [mdoc] Fixed .Dt call.ru2011-05-251-1/+1
|
* Build and install a BSD licensed grep.obrien2011-05-251-1/+1
| | | | | | | | 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
* Add the description properly...imp2011-05-221-1/+2
|
* Add documentation for WITHOUT_KERNEL_SYMBOLSimp2011-05-221-0/+4
|
* sh: Add test for r222173.jilles2011-05-221-0/+12
|
* Update URLs and fix regex to work with current version of the files.uqs2011-05-221-5/+5
|
* sh: Expand aliases after assignments and redirections.jilles2011-05-212-0/+10
|
* sh: Add test for positional parameters with more than one digit.jilles2011-05-211-0/+13
| | | | This also passes on stable/8.
* sh: Implement the cd -e flag proposed for the next POSIX issue.jilles2011-05-202-0/+59
| | | | | | | | | 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.
* sh: Allow terminating a heredoc with a terminator at EOF without a newline.jilles2011-05-201-0/+26
| | | | | | | | | | | | | | | | | | | | | | 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.
* Implement WITH{,OUT}_{GCC,BINUTILS} to provide finer-grained controlimp2011-05-192-0/+13
| | | | | | | over building gcc and binutils. They default to true, unless MK_TOOLCHAIN is no. Reviewed by: ru@
* Added description for WITH_OFED.ru2011-05-171-0/+4
|
* sh: Add tests for lines that look like heredoc delimiters but are not.jilles2011-05-142-0/+107
|
* Restore BOOT2CFG, accidentally removed in r212938.imp2011-05-141-1/+1
| | | | PR: 157020
OpenPOWER on IntegriCloud