summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add two special directives to libmap.conf:bapt2012-04-302-31/+154
| | | | | | | | | | | | | | | include <file>: Parse the contents of file before continuing with the current file. includedir <dir>: Parse the contents of every file in dir that ends in .conf before continuing with the current file. Any file or directory encountered while processing include or includedir directives will be parsed exactly once, even if it is encountered multiple times. Reviewed by: kib, des Approved by: des (mentor) MFC after: 1 month
* Respect mathematical operation order piority with the exponent gnu extensionbapt2012-04-301-2/+2
| | | | | Obtained from: OpenBSD Approved by: des (mentor)
* Add to GEOM RAID class module, supporting the DDF metadata format, asmav2012-04-305-2/+3261
| | | | | | | | | | | | | | | defined by the SNIA Common RAID Disk Data Format Specification v2.0. Supports multiple volumes per array and multiple partitions per disk. Supports standard big-endian and Adaptec's little-endian byte ordering. Supports all single-layer RAID levels. Dual-layer RAID levels except RAID10 are not supported now because of GEOM RAID design limitations. Some work is still to be done, but the present code already manages basic interoperation with RAID BIOS of the Adaptec 1430SA SATA RAID controller. MFC after: 1 month Sponsored by: iXsystems, Inc.
* Add myself.dumbbell2012-04-301-0/+2
|
* Improve growfs(8) in a few ways; unfortunately, it's somewhat hard to untangletrasz2012-04-303-186/+263
| | | | | | | | | | | | | | | | | | | | them and commit separately. 1. Rewrite the way growfs(8) finds the device and mount point. This makes it possible to use e.g. "growfs /mnt"; it's also used to display more helpful messages. 2. Be more user-friendly, using descriptive messages, like this: OK to grow filesystem on /dev/md0, mounted on /mnt, from 9.8GB to 20GB? [Yes/No]" 3. Allow to specify the size (-s option) just like with mdconfig(8), i.e. with postfixes ("mdconfig -s 10g"). 4. Reload read-only filesystem after growing. Reviewed by: kib, mckusick (earlier version) Sponsored by: The FreeBSD Foundation
* Add GNU hash support for rtld.kib2012-04-309-19/+163
| | | | | | | Based on dragonflybsd support for GNU hash by John Marino <draco marino st> Reviewed by: kan Tested by: bapt MFC after: 2 weeks
* Split the symlook_obj1 into a loop iterating over the ELF object symbolkib2012-04-302-95/+116
| | | | | | | | | | hash elements, and a helper matched_symbol() which match the given hash entry and request, performing needed type and version checks. Based on dragonflybsd support for GNU hash by John Marino <draco marino st> Reviewed by: kan Tested by: bapt MFC after: 2 weeks
* Don't reuse credentials if redirected to a different host.des2012-04-301-1/+3
| | | | | Submitted by: Niels Heinen <heinenn@google.com> MFC after: 3 weeks
* Since the socket is non-blocking, it is necessary to use select(2) evendes2012-04-301-17/+13
| | | | | | | | | when there is no timeout, because read(2) will return immediately if there is no data waiting in the TCP buffer, causing fetch_read() to busy-loop on slow connections. MFC after: 3 weeks Noticed by: Yanhui Shen <shen.elf@gmail.com>
* Remove incorrect __restrict qualifier on several pointersdumbbell2012-04-302-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The typical case was: static __inline int convert_ccl(FILE *fp, char * __restrict p, [...]) { [...] if (p == SUPPRESS_PTR) { [...] } else { [...] } [...] } This qualifier says that the pointer is the only one at that time pointing to the resource. Here, clang considers that "p" will never match "SUPPRESS_PTR" and optimize the if{} block out. This leads to segfaults in programs calling vfscanf(3) and vfwscanf(3) with just the format string (no arguments following it). The following softwares were reported to abort with segmentation fault and this patch fixes it: o cmake o smartd o devel/ORBit2 dim@ opened an LLVM PR to discuss this clang optimization: http://llvm.org/bugs/show_bug.cgi?id=12656 Tested by: bsam@
* Move several enums and structures required for L2 filtering from ↵melifaro2012-04-306-85/+82
| | | | | | | | | ip_fw_private.h to ip_fw.h. Remove ipfw/ip_fw_private.h header from non-ipfw code. Approved by: ae(mentor) MFC after: 2 weeks
* Change the default to not use packet counters to generate rx interrupts.np2012-04-303-10/+12
| | | | | | | | Rely solely on the timer based mechanism. Update man page to reflect this change. MFC after: 1 week
* Add support for missing gauth_number_of_chunks field. This Bug wastuexen2012-04-302-0/+4
| | | | | | found by Irene Ruengeler. MFC after: 1 week
* Make sure that the firmware version is available innp2012-04-301-5/+11
| | | | | | | dev.t4nex.X.firmware_version even if the driver fails to attach properly. At least it'll be easy to tell what we're dealing with. MFC after: 1 week
* fix a further typo in the pdfork(2) man page.rwatson2012-04-301-1/+1
| | | | | Submitted by: Norman Hardy MFC after: 3 days
* The returned file descriptor from pdfork(2) is via fdp, not pidp.rwatson2012-04-301-2/+2
| | | | | Submitted by: Norman Hardy MFC after: 3 days
* Print out a warning message if a `lpc setstatus' is done whengad2012-04-301-0/+18
| | | | | | | | the queue is not 'lpc stop'-ed. In that situation `lpq' will not display the status message to the user, and the operator may think the queue is already stopped when it is not. MFC after: 3 weeks
* Fix a bug in *wscanf's handling of non-wide %s, %c, and %[das2012-04-301-44/+9
| | | | | | | | | | | | | conversions. Both the specification and the documentation say the width is interpreted as the max number of wide characters to read, but the implementation was interpreting it as the number of bytes to convert. (See also r105317.) This change has security implications for any applications that depend on the buggy behavior, but the impact in practice is probably nil. Any such application would already be buggy on other platforms that get the semantics right. Also, these conversions are rarely used; %ls, %lc, and %l[ are more appropriate.
* Catch the user-error when no queue name was specified on angad2012-04-301-0/+8
| | | | | | | lpc-command which supports '-msg' (e.g.: setstatus). Print out a helpful error message instead hitting a seg-fault. MFC after: 3 weeks
* Copy recent changes from etc/root/dot.cshrc that make the defaults moreeadler2012-04-291-5/+17
| | | | | | | user friendly Approved by: cperciva MFC after: 3 days
* Add support for:eadler2012-04-291-0/+21
| | | | | | | | | | | Olympus FE-210 camera LG UP3S MP3 player Laser MP3-2GA13 MP3 PR: usb/119201 Submitted by: Peter Jeremy <peterjeremy@optushome.com.au> Approved by: cperciva MFC after: 1 week
* pread(2) might fail with EBUSY, so document iteadler2012-04-291-0/+2
| | | | | | | PR: docs/167201 Submitted by: Kurt Jaeger <fbsd-ports@opsec.eu> Approved by: cperciva MFC after: 3 days
* Allow users of gprof to get per run output files (using the pid)eadler2012-04-292-1/+12
| | | | | | | | | PR: bin/99800 Submitted by: Peter Jeremy <peterjeremy@optushome.com.au> Reviewed by: jilles (code) Reviewed by: dwhite (doc) Approved by: cperciva MFC after: 1 week
* s/gmirror/graid/mav2012-04-291-2/+2
|
* Add support for Multi-TT mode of modern USB HUBs.hselasky2012-04-295-173/+161
| | | | | | | | | | This will give you more bandwidth for isochronous FULL speed applications connected through a High Speed HUB. This patch has been tested with XHCI and EHCI. MFC after: 1 week
* Previously, vfscanf()'s wide character processing functions weredas2012-04-293-150/+83
| | | | | | | | | | | | | | | reading wide characters manually. With this change, they now use fgetwc(). To make this work, we use an internal version of fgetwc() with a few extensions: it takes an mbstate * because non-wide streams don't have a built-in mbstate, and it indicates the number of bytes read. vfscanf() now resembles vfwscanf() more closely. Minor functional improvements include working xlocale support in vfscanf(), setting the stream error indicator on encoding errors, and proper handling of shift-based encodings. (Actually, making shift-based encodings work with non-wide streams is hopeless, but the implementation now matches the broken specification.)
* Partially revert r232938; ZFS only requires nfs4 but not posix1e.marius2012-04-291-1/+0
| | | | Submitted by: jhb
* Drag in subr_acl_nfs4.c for ZFS automatically, otherwise it'smarius2012-04-291-1/+1
| | | | unintuitive that "options zfs" requires "options ufs_acl".
* Add multiple inclusion protection.marius2012-04-291-0/+5
| | | | | | PR: 165025 Submitted by: Gavin Mu MFC after: 1 week
* Fix WITHOUT_EXAMPLES build:bschmidt2012-04-292-2/+4
| | | | | | | | | While removing unnecessary entries from .PATH.c I missed that for the examples WPA_SUPPLICANT_DISTDIR/HOSTAPD_DISTDIR is explicitly added to .PATH. Tested by: lev MFC after: 2 weeks
* Add a convenience macro for the returns_twice attribute, and apply it todim2012-04-2912-14/+20
| | | | | | | the prototypes of the appropriate functions (getcontext, savectx, setjmp, sigsetjmp and vfork). MFC after: 2 weeks
* Regenerate src.conf(5)kib2012-04-291-3/+10
|
* Add src.conf option WITH_SHARED_TOOLCHAIN to enable building thekib2012-04-2911-3/+38
| | | | | | | | toolchain binaries as dynamically linked. Option is disabled by default. Reviewed by: ru (previous version) MFC after: 2 weeks
* Use standard getopt(3) error message.jlh2012-04-291-6/+1
| | | | | Submitted by: jilles Approved by: kib (mentor)
* Change cc -> bc : "bc" is "busy count", which is the % of time the channeladrian2012-04-281-3/+3
| | | | | | | | 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."
* As cron(8) is started with '-s' by default, timezones that observegjb2012-04-281-4/+15
| | | | | | | | | | | | | DST should not need to worry about scheduling jobs when the DST time changes. Rather than removing the BUGS section in crontab(5) regarding this, note that disabling '-s' may still cause jobs to be executed twice or not at all. PR: 166318 Submitted by: Florian k Unglaub (f.unglaub%googlemail!com) MFC After: 1 week
* After thinking about this a bit more, let's not keep statistics per-channeladrian2012-04-285-9/+10
| | | | | | | | | | | | | | | in the HAL. That's very memory hungry (32k just for channel statistics) which would be better served by keeping a summary in the ANI state. Or, later, keep a survey history in net80211. So: * Migrate the ah_chansurvey array to be a single entry, for the current channel. * Change the ioctl interface and ANI code to just reference that. * Clear the ah_chansurvey array during channel reset, both in the AR5212 and AR5416 reset path.
* Fix small documentation mistakes.jlh2012-04-282-2/+2
| | | | | Submitted by: brueffer Approved by: kib (mentor)
* Import stdbuf(1) and the shared library it relies on.jlh2012-04-289-0/+463
| | | | | | | | | | | | | | This tool changes the default buffering behaviour of standard stdio streams. It only works on dynamic binaries. To make it work for static ones it would require cluttering stdio because there no single entry point. PR: 166660 Reviewed by: current@, jhb Approved by: kib (mentor) MFC after: 1 week
* As of r226840, GELI starts one thread per CPU.gjb2012-04-281-2/+1
| | | | | | PR: 167382 Submitted by: John W. O'Brien (john%saltant.com) X-Needs-MFC: r226840
* Fix several memory and lock leaks on the out of memory condition.kib2012-04-282-2/+22
| | | | | Reported by: Matt Miller <matt matthewjmiller net> MFC after: 1 week
* Although not strictly needed, quieten a compiler warning by a user.adrian2012-04-281-1/+1
|
* Whitespace changes.tuexen2012-04-281-3/+0
| | | | MFC after: 3 days
* Fix build on 32-bit systems.nwhitehorn2012-04-281-1/+1
|
* Move crypto stuff into a common Makefile. While here fix thebschmidt2012-04-283-93/+148
| | | | | | | | WITHOUT_OPENSSL build by using the wpa's internal crypto support if openssl is not available, this allows us to unconditionally enable EAP support. MFC after: 2 weeks
* not only the file names have changed from eap_xxx.c to eap_server_xxx.c,bschmidt2012-04-281-5/+5
| | | | | | the defines too MFC after: 2 weeks
* enable EAP_GTC and EAP_OTP to match upstream's default configurationbschmidt2012-04-281-9/+5
| | | | MFC after: 2 weeks
* Follow up r234711 and do same for the supplicant, one file/option perbschmidt2012-04-282-48/+92
| | | | | | line. While here merge the options which are always enabled. MFC after: 2 weeks
* Extend the ANI code to implement basic channel survey support.adrian2012-04-283-36/+73
| | | | | | | | | | | | | | | | | | | | | | | | * Always call ar5416GetListenTime() * Modify ar5416GetListenTime() to: + don't update the ANI state if there isn't any ANI state; + don't update the channel survey state if there's no active channel - just to be paranoid + copy the channel survey results into the current sample slot based on the current channel; then increment the sample counter and sample history counter. * Modify ar5416GetMIBCyclesPct() to simply return a HAL_SURVEY_SAMPLE, rather than a set of percentages. The ANI code wasn't using the percentages anyway. TODO: * Create a new function which fetches the survey results periodically * .. then modify the ANI code to use the pre-fetched values rather than fetching them again * Roll the 11n ext busy function from ar5416_misc.c to update all the counters, then do the result calculation * .. then, modify the MIB counter routine to correctly fetch a snapshot - freeze the counters, fetch the values, then reset the counters.
* Add a tool to print out min, average and max channel survey informationadrian2012-04-283-0/+233
| | | | | | | | 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.
OpenPOWER on IntegriCloud