summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Fetch the channel survey code from the HAL.adrian2012-04-282-0/+9
| | | | | This information is currently not being populated by any of the HAL modules.
* Extend the HAL channel survey statistics:adrian2012-04-281-0/+4
| | | | | * include ext_chan_busy; * include ofdm/cck phy error counts, which aren't yet implemented.
* Add a comment about this DELAY(), I'm not sure whether it's supposedadrian2012-04-281-0/+4
| | | | to be for a DDR/FIFO flush or something else.
* Add an AR5416 PCU DMA stop method, as a check for the AR9130 is needed.adrian2012-04-283-0/+36
| | | | | | | | | | | | The reference driver has a 3ms delay for the AR9130 but I'm not as yet sure why. From what I can gather, it's likely waiting for some FIFO flush to occur. At some point in the future it may be worthwhile adding a WMAC FIFO flush here, but that'd require some side-call through to the SoC DDR flush routines. Obtained from: Atheros
* Remove the RFC 1319 MD2 Message-Digest Algorithm routines from libmd.obrien2012-04-286-309/+7
| | | | | | | | | | 1. The licensing terms for the MD2 routines from RFC is not under a BSD-like license. Instead it is only granted for non-commercial Internet Privacy-Enhanced Mail. 2. MD2 is quite deprecated as it is no longer considered a cryptographically strong algorithm. Discussed with: so (cperciva), core
* After switching mutexes to use lwsync, they no longer provide sufficientnwhitehorn2012-04-282-30/+19
| | | | | | | | guarantees on acquire for the tlbie mutex. Conversely, the TLB invalidation sequence provides guarantees that do not need to be redundantly applied on release. Roll a small custom lock that is just right. Simultaneously, convert the SLB tree changes back to lwsync, as changing them to sync was a misdiagnosis of the tlbie barrier problem this commit actually fixes.
* Fix the dates and history as of the move to HEAD.jamie2012-04-271-3/+3
|
* Increase DFLDSIZ from 128 MiB to 32 GiB. On amd64 there's plenty of virtualrmh2012-04-271-1/+1
| | | | | | memory available, so there is no need to be so conservative about it. Reviewed by: arch
* It was reported via email that some non-FreeBSD NFS serversrmacklem2012-04-271-1/+4
| | | | | | | | | | | | do not include file attributes in the reply to an NFS create RPC under certain circumstances. This resulted in a vnode of type VNON that was not usable. This patch adds an NFS getattr RPC to nfs_create() for this case, to fix the problem. It was tested by the person that reported the problem and confirmed to fix this case for their server. Tested by: Steven Haber (steven.haber at isilon.com) MFC after: 2 weeks
* Fix a leak of namei lookup path buffers that occurs when armacklem2012-04-271-0/+4
| | | | | | | | | | | ZFS volume is exported via the new NFS server. The leak occurred because the new NFS server code didn't handle the case where a file system sets the SAVENAME flag in its VOP_LOOKUP() and ZFS does this for the DELETE case. Tested by: Oliver Brandmueller (ob at gruft.de), hrs PR: kern/167266 MFC after: 1 month
* Allow building a powerpc cross-kgdb.marcel2012-04-271-0/+5
|
* Add a note to hostapd.conf about an unhelpful error message in the hope thattheraven2012-04-271-1/+2
| | | | | | it won't confuse anyone else in the future. MFC after: 1 week
* Remove unused structure.tuexen2012-04-271-7/+0
| | | | | | Reported by Irene Ruengeler. MFC after: 3 days
* r234173 missed one instance of FREE(line).des2012-04-271-1/+1
| | | | Noticed by: glebius@
* Style.hselasky2012-04-271-2/+3
| | | | Suggested by: dumbbell @
* Fix RAID5 level names changed at r234603.mav2012-04-275-6/+6
|
* Remove some of the redundant locking done in the TX completion path,adrian2012-04-261-9/+13
| | | | when checking whether BAR frames need to be checked.
OpenPOWER on IntegriCloud