summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix scanning after loosing a connection. The firmware assumes that as longbschmidt2010-12-061-2/+19
| | | | | | | | | | | | | | as an association ID is set any scan is supposed to be a background scan. This implies that the firmware will switch back to the associated channel after a certain threshold, though, we are not notified about that. We currently catch this case by a timer which will reset the firmware after a 'scan timeout', though, upper layers are not notified about that and will simply hang until manual intervention. Fix this by resetting the firmware's knowledge about any association on RUN -> ASSOC and !INIT -> SCAN transitions. Tested by: Zhihao Yuan <lichray at gmail.com> MFC after: 1 week
* Fixes for monitor mode:bschmidt2010-12-061-4/+3
| | | | | | | | | | | | | | - Do not call iwn_calib_reset() for monitor mode. We do not want to query information and do runtime calibration while in monitor mode. Poking the firmware with adjustments for calibration results in firmware asserts. This could happened on RUN -> RUN transition only. - Adjust blink rate for monitor mode. It's supposed to not freak out and turn off after a while. - While here, remove one useless assignment of calib.state, it gets overwritten later in the function. Submitted by: Brandon Gooch <jamesbrandongooch at gmail.com> MFC after: 1 week
* When masking direct and processor devices during an inquiry, properlyjhb2010-12-061-1/+2
| | | | | | | preserve the upper bits of the first data byte. Reviewed by: scottl MFC after: 1 week
* When masking direct and processor devices during an inquiry, properlyjhb2010-12-061-4/+4
| | | | | | | | | | | preserve the upper bits of the first data byte. While here, shorten a few nearby lines. PR: kern/152768 Reported by: Sascha Wildner saw of online.de Reviewed by: scottl MFC after: 1 week
* Fix style bug introduced by previous commit.trasz2010-12-061-1/+1
|
* Improve readability by factoring out the !RFPROC case. While here,trasz2010-12-061-59/+57
| | | | | | turn K&R function definitions into ANSI. No functional changes. Reviewed by: kib@
* Add a manpage for SYSINIT() and SYSUNINIT().jhb2010-12-062-0/+165
| | | | | PR: docs/132884 Submitted by: pluknet, hmp
* Do not leak %rdx value in the previous image to the new image afterkib2010-12-061-0/+1
| | | | | | | | | | | | | execve(2). Note that ia32 binaries already handle this properly, since ia32_setregs() resets td_retval[1], but not exec_setregs(). We still do not conform to the amd64 ABI specification, since %rsp on the image startup is not aligned to 16 bytes. PR: amd64/124134 Discussed with: Petr Salinger <Petr.Salinger seznam cz> (who convinced me that there is indeed several bugs) MFC after: 1 week
* Use GEOM stripesize field when calculating ashift. This will enable correctivoras2010-12-061-1/+4
| | | | | | | | | alignment on drives with large sector sizes (e.g. 4 KiB) but the implementation might need to be revisited if devices with large stripesizes appear (e.g. if RAID controllers or flash drives start using the field), probably by introducing a physsectorsize field in GEOM providers. Discussed with: mav, mostly silence on freebsd-geom@ and freebsd-fs@
* Revert r209469: it causes the rest of the function to be bypassed.brucec2010-12-061-2/+0
| | | | Reported by: ae
* Fix double ;;kevlo2010-12-068-9/+9
|
* Catch up with kernel using time_uptime to drive ARP timeouts.glebius2010-12-061-3/+3
| | | | Noticed by: jilles
* Catch up with kernel using time_uptime to drive ARP timeouts.glebius2010-12-061-1/+3
| | | | Noticed by: jilles
* Don't write the terminating NUL past end of buffer.jh2010-12-061-1/+1
| | | | | PR: bin/152345 Submitted by: Mateusz Guzik
* Work around gcc constant folding bugs.das2010-12-061-1/+6
|
* signbit() returns nonzero for negative arguments, but we shouldn't assumedas2010-12-066-6/+8
| | | | that it always returns the same nonzero value.
* Fix some warnings.das2010-12-051-3/+3
|
* sh: POSIX says there should not be a space between Done and (exitstatus).jilles2010-12-051-1/+1
| | | | (On the other hand, (core dumped) does need a space and so does [1] +.)
* Bring in the change from NetBSD 1.28:dougb2010-12-051-3/+3
| | | | | | | | "\\ -> \e" Obtained from: joerg@NetBSD.org Bump .Dd because we're now up to date with the latest NetBSD version
* Bring in the following changes from NetBSD:dougb2010-12-051-13/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1.21 "Document the flags displayed by the default format, and mention their short names. From espie@openbsd via jmc@openbsd." 1.24 "Fix three variable names. From Todd T. Fries via Jason McIntyre." Obtained from: wiz@NetBSD.org (previous 2) 1.25 "Be consistent: document the birthtime field of struct stat for the "B" field specifier." Obtained from: reed@NetBSD.org 1.26 "Drop trailing space." Obtained from: wiz@NetBSD.org 1.27 "Since we have st_birthtime in struct stat, it is in default display." Obtained from: enami@NetBSD.org Purposely skipping the following revisions: 1.22 NetBSD-specific change 1.23 Removal of license clauses 3 and 4, already handled by imp in our r203971
* sh: Improve jobs output of pipelines.jilles2010-12-051-66/+83
| | | | | | | | | | | | | | If describing the status of a pipeline, write all elements of the pipeline and show the status of the last process (which would also end up in $?). Only write one report per job, not one for every process that exits. To keep some earlier behaviour, if any process started by the shell in a foreground job terminates because of a signal, write a message about the signal (at most one message per job, however). Also, do not write messages about signals in the wait builtin in non-interactive shells. Only true foreground jobs now write such messages (for example, "Terminated").
* Bring in the change from NetBSD 1.20:dougb2010-12-051-2/+2
| | | | | | "Make sentence easier to parse. From jsing@openbsd via jmc@openbsd." Obtained from: wiz@NetBSD.org
* Bring in the changes from NetBSD 1.16 that we did not already have.dougb2010-12-051-2/+2
| | | | | | "Some fixes from jmc@openbsd." Obtained from: wiz@NetBSD.org
* Add regression tests for logarithmic functions in the math library.das2010-12-053-1/+169
|
* Bring in the changes from NetBSD 1.13 that we did not already have, withdougb2010-12-051-4/+9
| | | | | | | | some differences. "Sort options. Use more mdoc macros. Some nit fixes. Bump date." Obtained from: wiz@NetBSD.org
* Bump __FreeBSD_version for the addition of log2(). This is mainly for thedas2010-12-051-1/+1
| | | | | benefit of ports such as opencity and inkscape that have workarounds for the lack of a log2() in the base system.
* Add log2() and log2f().das2010-12-058-12/+149
|
* Add a "kernel" log function, based on e_log.c, which is useful fordas2010-12-052-0/+171
| | | | | | | | | | | | | | | implementing accurate logarithms in different bases. This is based on an approach bde coded up years ago. This function should always be inlined; it will be used in only a few places, and rudimentary tests show a 40% performance improvement in implementations of log2() and log10() on amd64. The kernel takes a reduced argument x and returns the same polynomial approximation as e_log.c, but omitting the low-order term. The low-order term is much larger than the rest of the approximation, so the caller of the kernel function can scale it to the appropriate base in extra precision and obtain a much more accurate answer than by using log(x)/log(b).
* Bring in the change from NetBSD 1.12:dougb2010-12-051-0/+7
| | | | | | "document default format." Obtained from: yamt@NetBSD.org
* sh: Avoid marking a job as done before it is fully created.jilles2010-12-051-2/+2
| | | | | | | | | In r208489, I added code to reap zombies when forking new processes, to limit the amount of zombies. However, this can lead to marking a job as done or stopped if it consists of multiple processes and the first process ends very quickly. Fix this by only checking for zombies before forking the first process of a job and not marking any jobs without processes as done or stopped.
* Bring in the following changes from NetBSD. See the discussion at:dougb2010-12-051-7/+10
| | | | | | | | | | | | | http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=44128 1.29 "Don't printf time_t with %d; fixes PR 44128 from yamt. With this change it successfully prints mtimes after 2038." 1.30 "Improve previous with comments." Obtained from: dholland@NetBSD.org (both)
* Fix an "unused variable" error that gets us all the way to WARNS=6dougb2010-12-052-4/+3
|
* Bring in the update from NetBSD 1.28:dougb2010-12-051-25/+26
| | | | | | | | | "Fix WARNS=4 issues (-Wcast-qual -Wsign-compare)" Because of code differences I had to hand-apply parts of the patch, so responsibility for errors goes to me. Obtained from: lukem@NetBSD.org
* Bring in the update from NetBSD 1.19, the documentation of readlink -fdougb2010-12-051-4/+17
| | | | | | | | | | "PR/34662: martijnb at atlas dot ipv6 dot stack dot nl: readlink doesn't grok -f, and there's no alternative (+fix) Patch applied with minor tweak (%y -> %R, as it was already taken) plus some nits from myself. Thanks!" Obtained from: elad@NetBSD.org
* Bring in a new feature, adding a -f option to readlink to print the pathdougb2010-12-051-3/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of the target, similar to realpath(1). See the discussion at: http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=34662 This brings in the following changes: 1.24 "PR/34662: martijnb at atlas dot ipv6 dot stack dot nl: readlink doesn't grok -f, and there's no alternative (+fix) Patch applied with minor tweak (%y -> %R, as it was already taken) plus some nits from myself. Thanks!" Obtained from: elad@NetBSD.org 1.25 "Fix a segfault when doing 'stat -f %R' on the stdin file handle, instead fake the filename '(stdin)' like the %N format." Obtained from: mlelstv@NetBSD.org 1.27 "The ofmt variable is actually a bit mask (not the character that was in the format string) so that we can "or" it with the bits in the formats variable. This fixes the missing " -> " in front of the real path (when you use %SR). Also, the ?: needs another space." Obtained from: atatat@NetBSD.org I am purposely omitting the following changes: 1.23 A humanize_number(3) clone that should better be implemented by actually using humanize_number(3) 1.26 This is the removal of license clause 3 and 4, already handled by imp in r203971
* Bring in the change from NetBSD 1.22:dougb2010-12-051-3/+3
| | | | | | | | | | | | | "Fix a trivial truncation case, and eliminate a corner case that might print a nul character." I am purposely bypassing the following versions: 1.19 A build infrastructure change that does not apply to us 1.20 A feature I am not interested in, but don't object if someone else wants to pick it up 1.21 A build infrastructure change that does not apply to us Obtained from: atatat@NetBSD.org
* sh: jobs -p: Do not ask the kernel for the pgid.jilles2010-12-051-4/+1
| | | | | | | | The getpgid() call will fail if the first process in the job has already terminated, resulting in output of "-1". The pgid of a job is always the pid of the first process in the job and other code already relies on this.
* Use proper bounds checking on VPA.ed2010-12-051-2/+1
| | | | | | | | We must check against tp->t_cursor.tp_row, not row, to figure out whether we must clamp the cursor position. Submitted by: luigi MFC after: 3 weeks
* Add my own documentation for the change in our r216196, aka NetBSD's 1.18dougb2010-12-051-0/+4
| | | | | | For -L if stat(2) fails, fall back to lstat(2). .Dd purposely not bumped because more changes are coming.
* Bring in the change from NetBSD 1.18:dougb2010-12-051-3/+13
| | | | | | | | | | "If using stat (the -L flag) and it fails, fall back to lstat(). It may be the case that we're examining a broken symlink, and anything is better than nothing." The changes in 1.14 through 1.17 were not relevant to us. Obtained from: atatat@NetBSD.org
* For 6000 series and newer devices the DC calibration results are nobschmidt2010-12-052-9/+29
| | | | | | | | longer requested of the boot firmware. Instead of sending those results to the runtime firmware the firmware is told to do the DC calibration itself. MFC after: 1 week
* MFamd64 r204214: Enforce stronger alignment semantics (require that thecperciva2010-12-051-12/+18
| | | | | | | | end of segments be aligned, not just the start of segments) in order to allow Xen's blkfront driver to operate correctly. PR: kern/152818 MFC after: 3 days
* Switch which software-reserved bit is used to designate a locked PTEnwhitehorn2010-12-051-2/+2
| | | | | to correspond to the definition used by the PAPR spec so that its PTE insertion algorithm will properly respect it.
* Use correct field to track statistics counting error as bad header length.bz2010-12-051-1/+1
| | | | | | | | This assimilates the code to what ip_input has been doing since r1.1 in this case. Submitted by: Rozhuk Ivan (rozhuk.im gmail.com) MFC after: 4 days
* Remove gratuitous i386/amd64 inconsistency in favour of the less verbosecperciva2010-12-041-2/+1
| | | | version of declaring a variable initialized to zero.
* Remove unnecessary #includes which seem to have been accidentally addedcperciva2010-12-041-3/+0
| | | | as part of CVS r1.76 (in January 2006).
* De-orbit usbdevs(8) which hasn't worked with the new USB stack for a longuqs2010-12-043-310/+0
| | | | time now. usbconfig(8) should be an adequate replacement.
* Fix a bug where also the number of non-renegable gap reportstuexen2010-12-043-47/+25
| | | | | | was considered to be potentially renegable. MFC after: 1 day.
* Add MAKEDEV.8dougb2010-12-041-0/+2
| | | | Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua>
* Fix comment intentation.trasz2010-12-041-8/+8
|
OpenPOWER on IntegriCloud