Commit Graph

2546 Commits

Author SHA1 Message Date
adrian
6a9b72c2bc 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.
2012-07-30 01:42:22 +00:00
dim
32ec1fa0f5 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
2012-07-23 16:36:13 +00:00
phk
e4dd41f394 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
2012-07-22 20:55:42 +00:00
phk
5f88891912 Replace hardcoded /mnt with ${SBMNT} which defaults to /mnt.sysbuild
Submitted by:	Flemming "F3" Jacobsen
2012-07-22 19:32:27 +00:00
adrian
555bfe85d8 Add a needed #include due to my recent change. 2012-07-20 07:49:26 +00:00
adrian
64ddb429bd Add missing SRCS. 2012-07-20 07:38:11 +00:00
adrian
a42011453b Add the new athratestats tool. 2012-07-20 07:17:24 +00:00
adrian
1303e3bf5c Tidy things up substantially:
* remove some debugging;
* introduce command line arguments;
* introduce support for non-ath0 interfaces.
2012-07-20 06:11:26 +00:00
adrian
a343cd6779 Use the rate control table to display the rate rather than the rix,
making the output of this program much more meaningful.
2012-07-20 02:18:47 +00:00
adrian
6618076433 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.
2012-07-20 01:38:03 +00:00
jilles
6e014f4c11 sh: Add a simple test for the "local" builtin. 2012-07-15 10:22:13 +00:00
jilles
689774f8e7 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
2012-07-15 10:19:43 +00:00
zeising
b0fedc4f6d Change language in WITH_BSDCONFIG to match other options, and regen
src.conf(5), which was missed in r238438.

Approved by:	joel (mentor)
2012-07-14 10:17:47 +00:00
dteske
3981b9b76a 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)
2012-07-14 03:16:57 +00:00
jilles
5bce107d09 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.
2012-07-13 22:29:02 +00:00
jhb
2b8d56f3cf 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)
2012-07-13 13:23:48 +00:00
kib
003ccf85fa 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
2012-07-11 19:12:10 +00:00
emaste
66fc945ab8 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.
2012-07-06 17:03:43 +00:00
emaste
5d3526c6d6 Also report tx bandwidth with Ethernet overhead 2012-07-06 15:36:39 +00:00
emaste
2b188d4ec4 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.
2012-07-06 13:21:23 +00:00
obrien
a4e243117e 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.".
2012-07-05 18:23:36 +00:00
pjd
36219ba107 Recognize 'none' or '0' as no flags. 2012-07-04 17:31:53 +00:00
emaste
0bbce8e0d2 Update comment to reflect function's actual operation 2012-07-03 17:50:44 +00:00
marcel
71a3fb9c45 A cross-reference takes a man page section as well. Assume pkg(1),
based on pkg_add(1).
2012-07-02 20:26:11 +00:00
marcel
9a9eba4d36 Add description for INSTALL_AS_USER 2012-07-02 20:24:01 +00:00
marcel
3841b875ad Fix typo in option description file (using svn move). 2012-07-02 20:01:48 +00:00
bapt
1903f68f13 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
2012-07-02 15:28:50 +00:00
adrian
525ad8cc08 Bump this up - that way the AR9300 and later MACs get covered (for now)
by the AR5416 register map.
2012-06-30 01:40:29 +00:00
obrien
b257ff8e05 Support also running a 32-bit test on 64-bit platforms. 2012-06-29 15:54:07 +00:00
emaste
897cc95908 Fix ioctl type for compiling with clang 2012-06-28 20:10:43 +00:00
kib
8710f3e284 Add a test for number of CPUs configured/online.
MFC after:	1 week
2012-06-27 20:34:29 +00:00
gabor
c7fbb67362 - 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
2012-06-27 05:59:01 +00:00
kevlo
8473fac955 Correct sizeof usage
Obtained from:	DragonFly
2012-06-25 05:41:16 +00:00
obrien
d7c61f6b4f Provide a mechanism to not clear out the work and output dirs when
developing tests.
2012-06-20 21:38:16 +00:00
adrian
ba79261a63 Convert athdebug to use the 64 bit dev.ath.X.debug sysctl. 2012-06-15 20:08:13 +00:00
adrian
968a30af3f Add the AMPDU BAR TX statistics to the "ampdu" tag. 2012-06-15 08:37:46 +00:00
obrien
262e4e322b Add a test for the :tl & :tu modifiers. 2012-06-12 23:16:00 +00:00
adrian
811b2c62cc Add athaggrstats to the ath(4) tools build. 2012-06-10 06:44:19 +00:00
adrian
7abe396bf0 Flesh out 'athaggrstats', a utility which will display the aggregation
specific statistics for ath(4).
2012-06-10 06:44:04 +00:00
jilles
ccb8c35eab 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.
2012-06-08 22:54:25 +00:00
bz
2983f3f053 TinyBSD now seems to be hosted elsewhere. 2012-06-07 09:14:28 +00:00
kib
e086dc93a3 Do not execute a needed statement with side-effect in assert().
MFC after:	3 days
2012-06-06 17:26:52 +00:00
kib
b911315e84 Add gettimeofday() test.
MFC after:	3 days
2012-06-06 16:26:55 +00:00
emax
17a0246939 Fix license
Pointed by:	brueffer
2012-06-05 22:02:27 +00:00
emax
80cdbfd6e9 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.
2012-06-05 21:35:47 +00:00
obrien
5bfb5484b9 Correct examples to the latest version I had. 2012-06-05 17:36:28 +00:00
obrien
3d92a0e1be Add a regression test for filemon(4) [r236592]. 2012-06-04 22:59:33 +00:00
obrien
ffd816d2cd Add regression test for '-V' command line option (requires r236346). 2012-05-31 01:07:52 +00:00
obrien
c7adc0ccb4 make it easier to check newly-built make 2012-05-30 22:27:34 +00:00
obrien
2c3aca1390 make it easier to test newly-built make. 2012-05-30 22:26:16 +00:00