summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Mark functions as __dead2 in order to help the LLVM static checkercperciva2008-08-049-32/+33
| | | | | | | understand which code paths aren't possible. This commit eliminates 117 false positive bug reports of the form "allocate memory; error out if pointer is NULL; use pointer".
* Make quota(1) to compile with WARNS=6:delphij2008-08-041-5/+2
| | | | | | - ANSI'fy showrawquotas(). - Shut up GCC by initializing bgrace and igrace. The situation that caused the GCC warning can never happen though.
* Restructure and use different variables in the tests that involvescf2008-08-031-13/+15
| | | | | | | | | environ[0] to be more obvious that environ is not NULL before environ[0] is tested. Although I believe the previous code worked, this change improves code maintainability. Reviewed by: ache MFC after: 3 days
* Add EAGAIN to the ERRORS list, as found in kern_jail.c.trhodes2008-08-031-1/+3
| | | | | PR: 125253 Submitted by: Mateusz Guzik <mjguzik@gmail.com> (original version)
* Kill a dead variableantoine2008-08-031-2/+0
| | | | | PR: 126223 Submitted by: Mateusz Guzik
* ctime() expects a time_t, but qup->dqblk.dqb_btime is an int32_t, so forcognet2008-08-031-6/+9
| | | | | | | | | big endian platforms where time_t is 64bits (ie armeb and sparc64), it will be a problem. Use a temporary time_t to work around this. Submitted by: Matthew Luckie <mjl AT luckie DOT org dot nz> MFC after: 3 days
* Restored from previous backing out (because that is OpenBSD way, soache2008-08-031-12/+16
| | | | | | | | | assumed to be reviewd by them): Stir directly from the kernel PRNG, without taking less random pid & time bytes too (when it is possible). The difference with OpenBSD code is that they have KERN_ARND sysctl for that task, while we need to read /dev/random
* - back out my last commit as it seems to be wrong.danger2008-08-031-2/+0
| | | | Spotted by: das
* Fix some style bogosity from fdlibm.das2008-08-032-12/+12
|
* Minor improvements:das2008-08-033-20/+20
| | | | | | | - Improve the order of some tests. - Fix style. Submitted by: bde
* Remove broken code to replace st_mode value with ACCESSPERMS whenrwatson2008-08-031-5/+0
| | | | | | | | | | | | | | | | | lstat(2) is called on symlinks -- this code appears never to have worked. The PR this addresses suggests that the intended original behavior is the right one, but as bde points out in the PR comments, we do actually support storing a mode on symlinks, so returning it seems reasonable. This is consistent with Mac OS X, which despite documentation to the contrary does return the mode set on a symlink, but not some other platforms. The Single Unix Spec requires only that the returned bits be "meaningful", which seems at best unhelpful as advice goes. PR: 25018 MFC after: 3 days
* Add "add pc, whatever" as a branch instruction, we use it in memcpy().cognet2008-08-032-2/+39
| | | | MFC after: 3 days
* DDB scripting, textdumps, output capture, etc, all will appear inrwatson2008-08-031-1/+1
| | | | | | | FreeBSD 7.1 before 8.0 ships. Spotted by: Ulrich Spoerlein <uspoerlein at gmail dot com> MFC after: 3 days
* Fill in a few sysctl descriptions.trhodes2008-08-034-7/+8
| | | | | Reviewed by: alc, Matt Dillon <dillon@apollo.backplane.com> Approved by: alc
* DDB scripting, textdumps, output capture, etc, all will appear inrwatson2008-08-032-1/+6
| | | | | | | FreeBSD 7.1 before 8.0 ships. Spotted by: Ulrich Spoerlein <uspoerlein at gmail dot com> MFC after: 3 days
* Document a few sysctls.trhodes2008-08-032-5/+7
| | | | Approved by: imp
* Calling linker_load_dependencies() while holding the module'kib2008-08-032-0/+4
| | | | | | | | | vnode lock may cause a LOR between kld_sx lock and vnode lock. linker_load_dependencies() drops kld_sx, and another thread may attempt to load the same kld. Reported and tested by: pjd MFC after: 1 week
* Disconnect drivers that haven't been ported to MPSAFE TTY yet.ed2008-08-0314-181/+0
| | | | | | | | | | | | | As clearly mentioned on the mailing lists, there is a list of drivers that have not been ported to the MPSAFE TTY layer yet. Remove them from the kernel configuration files. This means people can now still use these drivers if they explicitly put them in their kernel configuration file, which is good. People should keep in mind that after August 10, these drivers will not work anymore. Even though owners of the hardware are capable of getting these drivers working again, I will see if I can at least get them to a compilable state (if time permits).
* calendar.holiday: Buinea-bissau should be Guinea-Bissauedwin2008-08-031-1/+1
| | | | | | PR: conf/126199 Submitted by: comet--berkeley (aka Pablo Picasso) <comet@transbay.net> Approved by: bde@
* Kernel config for the Linksys NSLU2. This is just a basic configuration,imp2008-08-032-0/+150
| | | | with no support for the LED, buttons, realtime clock or flash support.
* Move the grekey to its own file, ifconfig.c does not have interface specificthompsa2008-08-033-20/+99
| | | | | | code. Submitted by: sam
* Handle ldr pc, [reg] in branch_taken().cognet2008-08-031-1/+12
| | | | | Obtained from: NetBSD MFC after: 3 days
* Add blx as a branch instruction.cognet2008-08-031-1/+2
| | | | MFC after: 3 days
* Bumpd dateimp2008-08-021-4/+7
| | | | Minor word smithing on the need for newer firmware.
* Add entry for Prism-3 based Siemens SpeedStream card. It hasimp2008-08-021-0/+1
| | | | | | identical packaging and model numbers, but has had the Prism-II chips replaced by Prism-3. The wi driver was just updated with the new entry.
* Minor style nit.imp2008-08-021-1/+1
|
* Minor style tweaks.rwatson2008-08-023-24/+15
|
* Rename mac_partition_enabled to partition_enabled to synchronize withrwatson2008-08-021-3/+3
| | | | | | | other policies that similarly now avoid the additional mac_ prefix on variables. MFC after: soon
* Add an altnerative Siemens SpeedStream ID. This one is for a Prism 3imp2008-08-021-0/+1
| | | | card. I got a pair of these at a garage sale for US$1.00 today...
* Report what kind of chip only under bootverbose since that's nowimp2008-08-021-1/+2
| | | | exported via a sysctl.
* Minor tweaks to names and comments now that I understand what's goingimp2008-08-022-7/+12
| | | | on better.
* Add an alternative ID for the Siemens SpeedStream SS1021: 0x3021.imp2008-08-021-0/+1
|
* Add a quote too good to miss from:phk2008-08-021-5/+9
| | | | | | http://www.schneier.com/blog/archives/2008/08/schneier_misquo.html (and reorder one I appearantly didn't get in the right place last time.)
* Test that the result is correctly rounded when |y/x| is huge.das2008-08-021-16/+9
|
* A few minor corrections, including some from bde:das2008-08-023-17/+16
| | | | | | | - When y/x is huge, it's faster and more accurate to return pi/2 instead of pi - pi/2. - There's no need for 3 lines of bit fiddling to compute -z. - Fix a comment.
* change list wme to only print the channel parameters; tosam2008-08-022-38/+57
| | | | get channel+bss use -v
* don't silently exit if the regdomain.xml file is missingsam2008-08-021-1/+1
|
* add missing lock for htinfo updatesam2008-08-021-0/+2
| | | | Submitted by: Chris Zimmermann
* correct decap of of AppleTalk and IPX frames; don't strip the SNAPsam2008-08-021-1/+4
| | | | | | header as they have one natively Submitted by: Chris Zimmermann
* use new sysctl to generate a fake radar eventsam2008-08-021-1/+2
|
* add a sysctl to deliver a radar event for testingsam2008-08-021-0/+20
|
* schedule the correct timer when receiving a radar event during CACsam2008-08-021-1/+1
|
* Try to fixup last (inadvertent) commit: firmware_drain was never added sosam2008-08-021-15/+1
| | | | | | | | yank it's description; likewise for the FIRMWARE_WAIT flag to firmware_put. For the record, the last commit was to cleanup various mistakes and correct the example of embedding to reflect the npe firmware now being distributed with the system.
* add callout_schedule; besides being useful it also improvessam2008-08-024-13/+65
| | | | | | compatibility with other systems Reviewed by: ed, battlez
* remove whitespace bug (8 spaces into one tab)remko2008-08-021-1/+1
| | | | Submitted by: ed
* Correctly set the interrupt enable and disable bits. The previousscottl2008-08-022-15/+11
| | | | | | code interfered with Performant mode and legacy interrupts. Also remove a register read operation on the Simplq code that was effectively a time-wasting no-op.
* Fix software single-stepping: we need to check if the instruction is acognet2008-08-021-1/+1
| | | | | | | return instruction as well, or we'll stop single-stepping as soon as we'll return from a function. MFC after: 3 days
* Add yet another branch instruction.cognet2008-08-021-1/+2
| | | | | Obtained from: NetBSD MFC after: 3 days
* Unbreak the arm build, by spelling LIBSRCS correctly.cognet2008-08-021-1/+1
|
* Add support for the ASUS P535 PDAremko2008-08-022-0/+2
| | | | | | | PR: kern/126097 Submitted by: Anton Kartashev <amokk@seb.org.ua> Approved by: imp (mentor, implicit) MFC after: 3 days
OpenPOWER on IntegriCloud