summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-12-19Make input off flag (selectp -d) apply to synchronize-panes too.Nicholas Marriott
2015-12-19Delete superfluous "continue;" just before end of loop.Kenneth R Westerback
2015-12-19More style improvement and removal of NULL/allocation casts.mmcc
ok tb@
2015-12-19Delete superfluous "close(s);return" just before "close(s);<functionKenneth R Westerback
exit>".
2015-12-18Remove code for unimplemented ElGamel support that's been disabled formmcc
sixteen years. ok millert@, tb@, sthen@
2015-12-18Make ix(4) mpsafer. Take advantage of intr_barrier() to eliminate the mutexMark Kettenis
introduced in the previous step, and use atomic instructions to make the tx completion path mpsafe as well. ok claudio@, mpi@
2015-12-18Fix SO_REUSE* flags effects when binding multicast addresses. NoVincent Gross
regression observed on avahi. ok benno@
2015-12-18Check ioctl() result with == -1, not < 0. Break long line.Kenneth R Westerback
2015-12-18Fix urtw(4) on big-endian architectures. Patch by Cedric Tessier.Stefan Sperling
Tested by Cedric on macppc/i386, and by myself on macppc.
2015-12-18Make ix(4) mpsafer. Take advantage of intr_barrier() to eliminate the mutexMark Kettenis
introduced in the previous step, and use atomic instructions to make the tx completion path mpsafe as well. ok claudio@, mpi@
2015-12-18KNF: add a missing space after an 'if'.tb
2015-12-18A few more NULL casts and style tweaks. No functional change.mmcc
2015-12-18Cleanup and modernization. No functional change. Discussed with halex@.mmcc
2015-12-18Remove two error-on-NULL conditions for allocations that can't fail.mmcc
ok visa@
2015-12-18Add library-based __sync functions for mips64.Visa Hankala
Help with testing and ok kettenis@
2015-12-18Introduce a new function disk_has() to inspect a disk if it has aRobert Peichaer
partition-table of a certain type and optionally if it has a partition of a certain type. Use disk_has() in the install.md script to replace all the various "fdisk <disk> | grep <pattern>" commands greatly simplifying things. positive feedback from sthen@ "time to get it really tested" deraadt@ OK krw@
2015-12-18pledge "stdio rpath wpath cpath dpath fattr", as long as the -m optionTheo de Raadt
wasn't used
2015-12-18Remove leftover prototype.Visa Hankala
ok mpi@
2015-12-18A store to FPA does not need splnet(). The operation is atomic.Visa Hankala
2015-12-18unnoccupied->unoccupiedStuart Henderson
2015-12-18Fix wrong answer if the imaginary part is zero.Alexandr Shadchin
NetBSD also turn off this piece of code. ok tb@
2015-12-18Fix behavior csqrt, should beAlexandr Shadchin
csqrt(conj(z)) == conj(csqrt(z)) Before csqrt(-4.0 + -0.0i) = 0.0 + 2.0j but should be csqrt(-4.0 + -0.0i) = 0.0 - 2.0j ok tb@, also discussed with daniel@
2015-12-18Convert arc4random() to arc4random_uniorm(). Diff by Matthew Martin.tb
Ensure that arc4random_uniform() doesn't loop by redefining ND6_MAX_DESYNC_FACTOR to be 512, the largest power of two smaller than the RFC-specified 600 seconds. Suggested by florian@ and deraadt@ ok florian@, sthen@ in this form, arc4random change ok djm@, tedu@
2015-12-18Simplify return call of rand() and rand_r() to make it easier to read.tb
This is slightly less robust, but RAND_MAX must be one below a power of two in both variants anyway. Based on a suggestion by Matthew Martin. ok tedu@
2015-12-18Drop the now useless multicast setup comment.Antoine Jacoutot
prodded by tim@, ok mpi@
2015-12-18Prevent uvm_fault() when hitting a breakpoint by restoring the originalGerhard Roth
page protection bits. Go ahead, mlarkin@
2015-12-18Fix out of bounds array access in ieee80211_setbasicrates().Stefan Sperling
found by + ok jsg@
2015-12-18Remove an error-on-NULL condition after a mallocarray() call that cannotmmcc
fail. This codepath doesn't exist upstream, so it's fine to change. ok jsg@
2015-12-17Simplify multicast option handling (10 less lines) by matching /etc/rc behaviorAntoine Jacoutot
towards other YES|NO options and drop the error warning. with and ok tim@, ok rpe@ on an earlier diff
2015-12-17As well as setting up the state, actually use it in cmd_find_target.Nicholas Marriott
2015-12-17Make the cost of moving a process to the primary cpu a bit higher. This isMark Kettenis
the CPU that handles most hardware interrupts but we don't account for that in any way in the scheduler. So processes (and kernel threads) that are unlucky enough to end up on this CPU will get less CPU cycles than those running on other CPUs. This is especially true for the softnet taskq. There network interrupts will prevent the softnet taskq from running. This means that the more packets we receive, the less packets we can actually process and/or forward. This is why "unlocking" network drivers actually decreases the forwarding performance. This diff restores most of the lost performance by making it less likely that the softnet taskq ends up on the same CPU that handles network interrupts. Tested by Hrvoje Popovski ok mpi@, deraadt@
2015-12-17sprinkling ifndef __linux__ around two variable declarations could notTed Unangst
possibly make this driver portable
2015-12-17Add missing colon after "Peer name" in verbose output. Mentioned on themmcc
lists recently.
2015-12-17s/expresion/expression/gmmcc
2015-12-17s/failes/failed/gmmcc
2015-12-17add return code to newrequest to distinguish between cache hit and error.Ted Unangst
we want to keep looping for more requests after a hit, not stop. (though i'm reconsidering if the looping is worthwhile. maybe should just return to kevent() after each request.)
2015-12-17add a size to free. from MathieuTed Unangst
2015-12-17arrays decay to pointers without needing &Ted Unangst
2015-12-17no need to check null before freeTed Unangst
2015-12-17add ktrace to kevent. ok guentherTed Unangst
2015-12-17add size to free. from MathieuTed Unangst
2015-12-17rm a bit more trailers code. no longer accept them as alias for ethernet.Ted Unangst
ok mpi
2015-12-17If CORB/RIRB are not running, log error message unconditonnalyAlexandre Ratchov
and return error. From Alexey Suslikov <alexey.suslikov at gmail.com>
2015-12-17regen NSD's autoconf script, forgotten with the update - noticed by BradStuart Henderson
2015-12-17Add display brightness support. This is available on the last few generationsMark Kettenis
of Thinkpads (x220 and later) and using means the brightness level is coordinated properly with the firmware. This gets rid of the surprising brightness changes that would sometimes happen if you used the brightness keys or if the firmware decided to reset the brightness level for some other reason. ok tedu@, jung@, naddy@
2015-12-17Implement a memory barrier for mips. Basically this makes __sync_synchronize()Mark Kettenis
emit a "sync" instruction. ok visa@
2015-12-17Missing include, spotted by benoit@Martin Pieuchot
2015-12-17Move vcpu register state init to vmd. Allows vmd bootloader to make theMike Larkin
decision as to how the vcpu should be set up for initial start and reset. Also removes some hardcoded register constants from vmm(4). ok jsing@, mpi@
2015-12-17Use config_mountroot(9) instead of startuphook_establish(9).Martin Pieuchot
Fix a regression reported by Ian Mcwilliam on tech@
2015-12-17Replace 'arc4random() % (2^k - 1)' by 'arc4random() & (2^k - 1)' totb
avoid modulo bias. Part of a diff by Matthew Martin, reviewed by deraadt@ and me. ok deraadt@