summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Major update for unix_cmsg from Andrey Simonenko.pluknet2013-02-113-1249/+1652
| | | | | | | | | | | | | | | | | | 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
* Teach athalq about the recent if_ath_alq timestamp format change.adrian2013-02-115-34/+51
|
* Add missing src.conf(5) fragments for WITHOUT_LIBCPLUSPLUS and WITH_GPL_DTC.dim2013-02-022-0/+5
|
* Pull in r170135 from upstream clang trunk:dim2013-02-022-0/+6
| | | | | | | | | | | | | | | | 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
* - Fix more style(9)-related issues (copyright header, spaces after functiongahr2013-02-011-71/+71
| | | | | | | | | names, unnecessary casts) - Change type of boolean variable from char to bool Suggested by: jhb, zont, jmallett Reviewed by: cognet Approved by: cognet
* - Remove underscores from the internal structure name, as it doesn't collidegahr2013-01-311-27/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add fmemopen(3), an interface to get a FILE * from a buffer in memory, alonggahr2013-01-302-0/+153
| | | | | | | | with the respective regression test. See http://pubs.opengroup.org/onlinepubs/9699919799/functions/fmemopen.html Reviewed by: cognet Approved by: cognet
* Rework the handling of the children for the pthread_vfork_test. Thekib2013-01-301-7/+25
| | | | | | | | | 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
* - Add a BSD-licensed patch, ported by Pedro F. Giffuni (pfg) fromgabor2013-01-291-0/+2
| | | | | | | | 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
* Use = not == in test arguments.brooks2013-01-241-1/+1
| | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
* Restore Python 2.6+ compatibilityemaste2013-01-221-0/+2
| | | | | | | | 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.
* Implement the -l option using ln(1) to facilitate boostrapping.brooks2013-01-211-4/+20
| | | | | | | | 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
* Add option to make pc-sysinstall optionaleadler2013-01-182-0/+93
| | | | Approved by: cperciva
* Add extra debugging fields.adrian2013-01-172-8/+16
|
* Add compiler support for the ARM EABI.andrew2013-01-171-0/+2
| | | | | | 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.
* Convert to Python 3eadler2013-01-171-22/+22
| | | | Approved by: cperciva
* Add a src.conf(5) option to allow users to compile in the "NONE cipher",bz2013-01-171-0/+9
| | | | | | | | | 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
* Allow "ivlan" (inner VLAN) to be used as an alias for "vlan" whennp2013-01-171-3/+10
| | | | | | | | 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
* Remember the . in .\" in the WITH_NMTREE file and regenerate the output.brooks2013-01-141-1/+1
| | | | Reported by: joeld
* sh: Pass $? to command substitution containing compound/multiple commands.jilles2013-01-141-0/+5
| | | | | Example: false; echo $(echo $?; :)
* sh: Add testcase that $? is preserved into a simple command substitution.jilles2013-01-131-0/+5
| | | | | The test builtins/trap6.0 already uses this but having it separate eases diagnosis if this would break.
* sh: Add some testcases related to subshells.jilles2013-01-135-0/+25
| | | | | These failed in earlier attempts to execute more subshells without forking. The patches are uncommitted.
* sh: Fix crash when parsing '{ } &'.jilles2013-01-131-0/+7
| | | | MFC after: 1 week
* sh: Don't lose $? when backquoted command ends with semicolon or newline.jilles2013-01-132-0/+10
| | | | | | | | | An empty simple command was added and overwrote the exit status with 0. This affects `...` but not $(...). Example: v=`false;`; echo $?
* Add pwcache(3) and vis(3) to libegacy as install(1) is about to grow abrooks2013-01-111-0/+16
| | | | | | dependency on them. Sponsored by: DARPA, AFRL
* Always install our mtree as /usr/sbin/fmtree and link it asbrooks2013-01-091-0/+9
| | | | | | | /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.
* Add the "enable at reset" functionality to trigger spectral scan uponadrian2013-01-091-0/+30
| | | | a channel change/reset.
* Following r226271, allow disabling lzma support with "WITHOUT_LZMA_SUPPORT".obrien2013-01-082-1/+3
| | | | | | Correct r226271 which should have used WITHOUT_BZIP2_SUPPORT per r166255. Obtained from: Juniper Networks
* Disable clang for athstats for now.adrian2013-01-021-0/+4
|
* Add missing err() format string.adrian2013-01-021-1/+1
|
* Fix missing err() format string.adrian2013-01-021-1/+1
|
* Fix some conversions to keep clang happy.adrian2013-01-021-3/+3
|
* Fix some clang warnings!adrian2013-01-021-4/+6
|
* Fix up some warnings from clang.adrian2013-01-021-7/+9
| | | | This still triggers a bug in clang..
* Add missing err() format strings.adrian2013-01-021-4/+4
| | | | Thanks to: clang
* * Add missing err() string formats;adrian2013-01-021-4/+4
| | | | | | * Fix up a printf() type mismatch. Thanks to: clang
* * Add missing format specifier for err()adrian2013-01-021-3/+4
| | | | | | | * add missing exit(0) * Fix some operator evaluation complaints. Thanks to: clang
* Fix some printf() formats.adrian2013-01-021-4/+4
| | | | Found by: clang
* Fix incorrect format string.adrian2013-01-021-1/+1
|
* Add a very skeletal spectral scan control application.adrian2013-01-023-1/+340
| | | | | The main use for this is to manually trigger spectral scan operations (athspectral -i athX start) whilst doing debugging.
* use nanosecond resolution, make sure gettimeofdayluigi2012-12-271-7/+12
| | | | is called at most every 100 packets.
* various connections to last commitluigi2012-12-252-10/+21
|
* small cleanup of the code, and add support for running multipleluigi2012-12-231-21/+144
| | | | threads on each socket.
* Add etc/periodic/daily/220.backup-pkgdb to OptionalObsoleteFiles.incbapt2012-12-201-0/+1
|
* Add an additional regression tests for other cases to ensure these do not ↵eadler2012-12-181-0/+3
| | | | get fixed by accident.
* POSIX requires that non-existent or null arguments be treated as if aeadler2012-12-182-1/+3
| | | | | | | | | | | | | 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
* Update to the new and brighter pkg worldphk2012-12-151-27/+39
|
* sh: Detect and flag write errors on stdout in builtins.jilles2012-12-121-0/+3
| | | | | | | 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
* A number of places in the source tree still reference cuad.* aftereadler2012-12-083-10/+10
| | | | | | | | | | | 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
* libc: Add a missing header to a test program.jilles2012-12-081-0/+1
| | | | Usage of dup(), mkstemp() and unlink() needs <unistd.h>.
OpenPOWER on IntegriCloud