kettenis [Wed, 4 Aug 2010 17:35:39 +0000 (17:35 +0000)]
Print supported sleep states.
ok marco@, phessler@, deraadt@
jsg [Wed, 4 Aug 2010 17:10:34 +0000 (17:10 +0000)]
Correct a problem reported by Holger Mikolon that turns out to be
a bug in the initial EP80579 commit from dms that was exposed by gcc4.
Lots of help tracking down the block of code at fault from
Mike Belopuhov, but I spotted the problem in the end :)
ok kettenis@ deraadt@
sthen [Wed, 4 Aug 2010 16:47:01 +0000 (16:47 +0000)]
Print the MTU in OSPF dd packets. Borrowed from the ospf6 printer.
ok claudio@ deraadt@
deraadt [Wed, 4 Aug 2010 16:29:42 +0000 (16:29 +0000)]
activate function for suspend/resume; tested by mcbride
halex [Wed, 4 Aug 2010 07:07:41 +0000 (07:07 +0000)]
Set an appropriate To: header in /var/mail/$user which is copied from
/var/mail/root
idea and first version from deraadt@, ok deraadt@ krw@
djm [Wed, 4 Aug 2010 06:08:40 +0000 (06:08 +0000)]
clean for -Wuninitialized
djm [Wed, 4 Aug 2010 06:07:11 +0000 (06:07 +0000)]
Support CA keys in PKCS#11 tokens; feedback and ok markus@
guenther [Wed, 4 Aug 2010 06:06:31 +0000 (06:06 +0000)]
Add the new kqueue+rfork test, but disable the tests that use RFMEM
as they don't work right now
guenther [Wed, 4 Aug 2010 06:05:26 +0000 (06:05 +0000)]
Regression test for the recent rfork+kqueue fix
guenther [Wed, 4 Aug 2010 05:57:21 +0000 (05:57 +0000)]
tun* interfaces are now automatically destroyed on last close when
originally created by opening /dev/tun*
guenther [Wed, 4 Aug 2010 05:55:29 +0000 (05:55 +0000)]
Confirm that a NOTE_EXIT knote is delivered when the child exits
Fix a C thinko
djm [Wed, 4 Aug 2010 05:49:22 +0000 (05:49 +0000)]
commited the wrong version of the hostbased certificate diff; this
version replaces some strlc{py,at} verbosity with xasprintf() at
the request of markus@
djm [Wed, 4 Aug 2010 05:42:47 +0000 (05:42 +0000)]
enable certificates for hostbased authentication, from Iain Morgan;
"looks ok" markus@
djm [Wed, 4 Aug 2010 05:40:39 +0000 (05:40 +0000)]
tighten the rules for certificate encoding by requiring that options
appear in lexical order and make our ssh-keygen comply. ok markus@
djm [Wed, 4 Aug 2010 05:37:01 +0000 (05:37 +0000)]
Remove mentions of weird "addr/port" alternate address format for IPv6
addresses combinations. It hasn't worked for ages and we have supported
the more commen "[addr]:port" format for a long time. ok jmc@ markus@
schwarze [Tue, 3 Aug 2010 23:06:02 +0000 (23:06 +0000)]
Trivial patch to get correct spacing from the recently introduced
user-defined string \*(Pu (punctuation character list)
by using non-breaking non-compressing instead of normal spaces.
Works with mandoc, new groff and even with old groff.
Tree is locked, but deraadt@ says i'm still allowed to polish manuals.
jakemsr [Tue, 3 Aug 2010 22:58:58 +0000 (22:58 +0000)]
if interrupt mapping fails, say so
ok deraadt
kettenis [Tue, 3 Aug 2010 22:54:12 +0000 (22:54 +0000)]
Remove old code that figures out the PCI bus number. The new code gets some
corner cases right that the old code messed up. As a bonus, this noticibly
speeds up booting my Dell XPS M1330.
ok deraadt@, marco@, jordan@
henning [Tue, 3 Aug 2010 22:12:27 +0000 (22:12 +0000)]
that had to be added
deraadt [Tue, 3 Aug 2010 21:53:02 +0000 (21:53 +0000)]
no special registers to restore on via chips either
miod [Tue, 3 Aug 2010 20:16:22 +0000 (20:16 +0000)]
regen
miod [Tue, 3 Aug 2010 20:12:01 +0000 (20:12 +0000)]
Create two more usb device nodes by default, as modern Apple hardware
(among others) attaches *eight* uhub devices.
From remco at d-compu, dyndns org; ok deraadt@
krw [Tue, 3 Aug 2010 19:37:17 +0000 (19:37 +0000)]
Don't attempt to set the read or write caches on usb disks. It
breaks at least one previously working device, as discovered by
naddy@. dlg@ confirmed other kernels also avoid attempting this
operation on usb disks.
ok dlg@ deraadt@
henning [Tue, 3 Aug 2010 18:42:40 +0000 (18:42 +0000)]
fix linecount bug with comments spanning multiple lines
problem reported with the obvious fix for bgpd by Sebastian Benoit
<benoit-lists at fb12.de>, also PR 6432
applied to all the others by yours truly. ok theo
isn't it amazing how far this parser (and more) spread?
kettenis [Tue, 3 Aug 2010 18:26:25 +0000 (18:26 +0000)]
Bring the suspend/resume code of all the Intel wireless drivers in line with
iwn(4) again.
ok deraadt@
espie [Tue, 3 Aug 2010 17:31:52 +0000 (17:31 +0000)]
missed one if (continued) test, so simplify logic: test continue beforehand.
fixes display after ^Z/fg.
(problem pointed out by Theo)
marco [Tue, 3 Aug 2010 16:55:06 +0000 (16:55 +0000)]
Add busy flag so that we don't act on a SCI until a command in progress
completes. Written with jordan.
ok deraadt
jsg [Tue, 3 Aug 2010 16:39:33 +0000 (16:39 +0000)]
Add support for 82576 fiber adapters based on Intel code in FreeBSD.
Thanks to Frédéric URBAN for setting up a test network to develop this on.
Tested by various people on copper adapters and fiber support
also tested by mickey.
ok deraadt@
mlarkin [Tue, 3 Aug 2010 16:32:40 +0000 (16:32 +0000)]
Use the proper flag for re-enabling certain hardware events (power btn,
sleep btn). The (incorrect) flag prevoiously used coincidentally had the
same value, so this shouldn't cause any different behavior than before.
tested on a variety of machines (i386, amd64, sp, mp) - no behavioral
change seen
ok deraadt@
jsg [Tue, 3 Aug 2010 16:21:52 +0000 (16:21 +0000)]
Disable hardware VLAN stripping/insertion on 8257[56] for now. While
stripping works insertion seems to have trouble in certain conditions,
which needs to be fixed before we want to enable hardware support for this.
ok deraadt@
jsg [Tue, 3 Aug 2010 16:11:57 +0000 (16:11 +0000)]
Correct use of logical and where binary and was intended.
Spotted by lint, but mirrors a similiar change in the
original FreeBSD code from over a year ago.
ok deraadt@
espie [Tue, 3 Aug 2010 14:10:30 +0000 (14:10 +0000)]
shrink! :)
espie [Tue, 3 Aug 2010 14:10:12 +0000 (14:10 +0000)]
sort journal messsages in a better way, put - before +, so that one can
see deinstall info before new install info (prompted by a comment from
tedu@)
espie [Tue, 3 Aug 2010 14:08:49 +0000 (14:08 +0000)]
bug-fix: during updates, only set oldfound after we found a matching pkgpath.
that way, we detect pkgpath problems as "can't update" instead of silently
ignoring them (gconf2 issue).
espie [Tue, 3 Aug 2010 14:07:27 +0000 (14:07 +0000)]
use proper log idiom (blanket okay from theo for pkg_add careful changes for
the time being)
deraadt [Tue, 3 Aug 2010 11:59:47 +0000 (11:59 +0000)]
Save/restore BLC_HIST_CTL as well at suspend/resume time; which allows
the x40 LCD to light up after unsuspend.
https://bugzilla.kernel.org/attachment.cgi?id=23409
https://bugzilla.kernel.org/show_bug.cgi?id=10985
ok oga
stsp [Tue, 3 Aug 2010 11:23:37 +0000 (11:23 +0000)]
When the target pointer 'pwcs' passed to mbsrtowcs() is NULL, mbsrtowcs()
is supposed to ignore the 'n' parameter and return the number of wide
characters needed to represent the given multi-byte character sequence.
However, in the special case where 'pwcs' is NULL and 'n' is zero, our
mbsrtowcs() implementation for single-byte locales mistakenly returned zero.
Before the UTF-8 locale was added, this bug was invisible to callers of
mbstowcs() because mbstowcs() handled this special case itself.
But our new mbstowcs() implementation simply forwards to the locale-specific
mbsrtowcs() implementation and expects it to do the right thing.
The "awesome" window manager's "Run:" command prompt uses mbstowcs() to
measure how many (possibly multi-byte) characters a user has typed, and
due to this bug would always be tricked into thinking the user had entered
zero characters when a single-byte locale was used.
Found after prodding by dcoppa.
ok deraadt sthen espie
jsg [Tue, 3 Aug 2010 10:08:03 +0000 (10:08 +0000)]
Fix a usage of logical and where binary and was intended.
Spotted by Mike Belopuhov. ok jsing@ deraadt@
pyr [Tue, 3 Aug 2010 08:24:23 +0000 (08:24 +0000)]
Fix a leak in ypldap. Found (and correct diff) from
plalonde (at) overnet.qc.ca
Prompted by deraadt@
deraadt [Tue, 3 Aug 2010 06:30:19 +0000 (06:30 +0000)]
matthew did not commit the diff he passed around for us to inspect...
repair that situation. Darn newbies...
matthew [Tue, 3 Aug 2010 04:10:16 +0000 (04:10 +0000)]
If an asynchronous request invalidates a buf, then we might remove it
from its vnode's buffer cache in an interrupt context. Therefore we
need interrupt protection when searching the buffer red-black tree.
ok deraadt@, thib@, art@
krw [Tue, 3 Aug 2010 00:19:42 +0000 (00:19 +0000)]
Group string comparisons and supply more helpful comments. Add
"total sectors" to "boundstart" and "boundend" in the list of fields
that are left alone during a RESTORE operation.
ok deraadt@
krw [Tue, 3 Aug 2010 00:08:30 +0000 (00:08 +0000)]
Start with the default label when RESTORE'ing a saved ascii label.
This ensures that all physical fields are filled in with current
values. Lack of values (boundstart, boundend in particular) noted
by ray@.
ok deraadt@
schwarze [Tue, 3 Aug 2010 00:07:57 +0000 (00:07 +0000)]
tweaks from jmc@:
* correct a few obvious mistakes
* adopt some of jmc@'s recent changes to man(7)
* cut down just a little on the awful tendency
to stick a hyphen between two words.
"yes" deraadt
miod [Mon, 2 Aug 2010 23:17:34 +0000 (23:17 +0000)]
Handle USB_GET_REPORT, USB_GET_REPORT_DESC, USB_GET_REPORT_ID and
USB_SET_REPORT ioctls in ukbd and ums.
This allows usbhidctl to be used on these devices e.g. to dump the report
descriptor of troublesome models.
ok deraadt@
krw [Mon, 2 Aug 2010 23:00:54 +0000 (23:00 +0000)]
Don't refer to xs->cmd, even via a pointer to xs->cmd, after xs has
been put back in the pool. Fixes Daniel Dickman's ses device.
ok matthew@ deraadt@
kettenis [Mon, 2 Aug 2010 20:55:49 +0000 (20:55 +0000)]
Make MHZ_TO_PLL safer to use by adding parenthesis. Fixes a potential issue
in agten(4) uncovered by gcc4.
ok miod@, deraadt@
guenther [Mon, 2 Aug 2010 19:54:07 +0000 (19:54 +0000)]
Fix knote handling for exiting processes: when triggering a NOTE_EXIT
knote, remove it from the process's klist; after handling those,
remove and drop any remaining knotes from the process's klist. Ban
attaching knotes to processes that have started exiting or attaching
them via the pid of a thread other than the main thread.
ok tedu@, deraadt@
kettenis [Mon, 2 Aug 2010 19:36:13 +0000 (19:36 +0000)]
There is no reason to call the start function upon resume; the network stack
is perfectly capable to get things going again all by itself.
ok deraadt@
kettenis [Mon, 2 Aug 2010 19:28:31 +0000 (19:28 +0000)]
There is no reason to call the start function upon resume; the network stack
is perfectly capable to get things going again all by itself.
ok damien@, deraadt@
deraadt [Mon, 2 Aug 2010 17:13:57 +0000 (17:13 +0000)]
The EC GPE is always edge. edge interrupts have their STS bit reset
at interrupt reception; level interrupts have STS cleared when processing
is complete. Since the STS has already been reset at interrupt reception
we should not reset late..
Found by marco
marco [Mon, 2 Aug 2010 16:57:53 +0000 (16:57 +0000)]
Add System Enclosure or Chassis structure.
ok deraadt
deraadt [Mon, 2 Aug 2010 14:29:49 +0000 (14:29 +0000)]
sync
deraadt [Mon, 2 Aug 2010 14:13:23 +0000 (14:13 +0000)]
enable owctr
miod [Mon, 2 Aug 2010 13:58:37 +0000 (13:58 +0000)]
Quirk for USB_PRODUCT_MICROSOFT_WLINTELLIMOUSE turns out not to be
required; PR 6436
ok deraadt@
miod [Mon, 2 Aug 2010 13:57:32 +0000 (13:57 +0000)]
Only open with O_RDWR if we are actually chaging a report descriptor, other
operations only need O_RDONLY.
ok blambert@ deraadt@
deraadt [Mon, 2 Aug 2010 13:50:33 +0000 (13:50 +0000)]
jmicron code was writing to the wrong register; ok jsg
jacekm [Mon, 2 Aug 2010 11:49:02 +0000 (11:49 +0000)]
Ignore SIGPIPE, the delivery of which prevented /usr/sbin/sendmail from
relaying the server diagnostic back to the user (eg. "500 Line too long").
krw [Mon, 2 Aug 2010 11:21:35 +0000 (11:21 +0000)]
Suppress MAKEDEV warnings about 'unknown device' that can appear
during upgrades when /etc/fstab is using disklabel UID's to mount
partitions.
Feedback & trash elimination from halex@
"That seems acceptable to me" deraadt@
matthew [Mon, 2 Aug 2010 10:30:00 +0000 (10:30 +0000)]
Prevent illegal struct casting by moving AF_INET/AF_INET6 address
family checks before calling ifatoia/ifatoia6.
ok deraadt@, dlg@, mcbride@
jsg [Mon, 2 Aug 2010 10:17:10 +0000 (10:17 +0000)]
Show PCIe link speed/width, earlier version ok miod@/kettenis@ then
tweaked to show both negotiated and capable as well as fixing a mask
after comments from damien@
ok deraadt@
jsg [Mon, 2 Aug 2010 09:29:53 +0000 (09:29 +0000)]
Fix use of logical and where binary and was intended.
Spotted by Mike Belopuhov, ok yasuoka@
deraadt [Mon, 2 Aug 2010 05:14:34 +0000 (05:14 +0000)]
Save/restore more registers at suspend/resume for those chips which look
like they need it. (Or don't, when it appears they don't need it)
deraadt [Mon, 2 Aug 2010 04:37:42 +0000 (04:37 +0000)]
correct header file stuff; pointed out by tedu
deraadt [Mon, 2 Aug 2010 03:51:39 +0000 (03:51 +0000)]
needs explicit proc.h; Nathanael Rensen
deraadt [Mon, 2 Aug 2010 03:22:26 +0000 (03:22 +0000)]
spellin
matthew [Mon, 2 Aug 2010 02:03:21 +0000 (02:03 +0000)]
Fix readlink(2) on FFS and ext2 filesystems to consistently return
EFAULT when appropriate.
ok deraadt@, miod@
yasuoka [Sun, 1 Aug 2010 23:55:38 +0000 (23:55 +0000)]
Change COM_IBUFSIZE 8K to 16K because 8K is not enough for CDMA1X card
by KDDI.
espie [Sun, 1 Aug 2010 23:03:48 +0000 (23:03 +0000)]
note specifically that pkg_add -u parameters are *installed* package names,
since that's the distinction with -U....
sthen [Sun, 1 Aug 2010 22:18:35 +0000 (22:18 +0000)]
Allow fallback tables for relays, not just redirections.
Seems reasonable to jsg, ok phessler, no response from reyk or pyr
miod [Sun, 1 Aug 2010 21:37:08 +0000 (21:37 +0000)]
Be more generous when parsing the report descriptor:
- parts of the report descriptor not in a format we expect are now ignored,
instead of preventing attachment (e.g. hypothetical multi-bit modifiers).
- modifiers beyond MAXMOD are ignored.
- keycode arrays larger than MAXKEYCODE are clamped to MAXKEYCODE instead
of being rejected.
- multiple keycode arrays are ignored.
This should allow rogue keyboards to attach and be usable up to a certain
extent.
Adapted from a diff sent by Loganaden Velvindron (first name at gmail), who
has a keyboard which keycode array is larger than MAXKEYCODE (but, like most
if not all USB keyboards out there, can only report up to three simultaneous
keypresses anyway).
kettenis [Sun, 1 Aug 2010 21:23:02 +0000 (21:23 +0000)]
Add infrastructure to buil GCC 4.2.1 on OpenBSD/sparc.
schwarze [Sun, 1 Aug 2010 20:47:52 +0000 (20:47 +0000)]
The explanations of the HISTORY and AUTHORS sections were nicer
in the old mdoc(7) manual than in the new one, so put them back.
While here, fix the .Os synopsis and add two more .Xrs.
Do the same in man(7), as far as it is applicable.
ok jmc@
schwarze [Sun, 1 Aug 2010 20:37:51 +0000 (20:37 +0000)]
Move the new mdoc(7) manual written by kristaps@, replacing the old one
which had much less information, such that the new one gets installed.
No change to the build system required, no text change in this commit.
Doing the big move early even though a few more improvements will follow.
The duplicate information in mdoc.samples(7) will be cleaned up post-release.
ok jmc@, and kristaps@ agreed with the plan, too
nicm [Sun, 1 Aug 2010 20:27:51 +0000 (20:27 +0000)]
Make parsing of /etc/remote work again (some of the options were the
wrong type), try to make it clearer what comes from where, and add a few
XXX.
Currently there is a mess of default options set in vinit(), default
options set in getremote(), stuff read from /etc/remote and options read
from the command-line, and there remains the problems with leftover
options from rotation. This all needs to be sorted out properly later.
Noticed while trying to find a possible problem reported by miod.
deraadt [Sun, 1 Aug 2010 18:57:55 +0000 (18:57 +0000)]
sync
kettenis [Sun, 1 Aug 2010 18:48:41 +0000 (18:48 +0000)]
Read status register after all writes to the pcf8584 controller. Alegedly
this is what (Open)Solaris does and it makes the i2c controller on the
blade2.5k work. From NetBSD.
Tested by sthen@, ok deraadt@
kettenis [Sun, 1 Aug 2010 17:55:26 +0000 (17:55 +0000)]
Make __builtin_return_address(0) work with -fstack-protector. Old diff
from Jakub Jelinek that never made it into upstream GCC. Fixes ld.so.
Found by drahn@ and me; ok miod@
tobias [Sun, 1 Aug 2010 16:53:57 +0000 (16:53 +0000)]
Properly reset states when a login phase is interrupted by another one.
Prevents ftpd from letting regular users logging in during anonymous-only
mode (-A).
ok millert, ray
blambert [Sun, 1 Aug 2010 14:21:10 +0000 (14:21 +0000)]
document the rw_assert_ functions
ok jmc@
kettenis [Sun, 1 Aug 2010 14:20:41 +0000 (14:20 +0000)]
Small cleanup of the fpu switching code; don't rely on the fact the HFP_REGS
is actually zero and remove a redundant instruction.
ok jsing@
espie [Sun, 1 Aug 2010 10:26:27 +0000 (10:26 +0000)]
adjust position of test so that it does something !
avoid a lot of extra stupid printing.
espie [Sun, 1 Aug 2010 10:04:24 +0000 (10:04 +0000)]
typo
espie [Sun, 1 Aug 2010 10:03:24 +0000 (10:03 +0000)]
fix the qt 4.5 -> 4.6 update issue.
since we usually deal with directories in a global way, replacing a
directory with something else didn't work.
the fix is to record removed directories in Vstat in a "lazy" way:
we only test these objects for existence if we add something else at
the same location. Since this happens rarely, we can afford to perform
the whole SharedItems dance twice...
zinovik [Sun, 1 Aug 2010 09:55:40 +0000 (09:55 +0000)]
change buf_release() prototype accordingly to buf.c
unbreaks opencvs build
zinovik [Sun, 1 Aug 2010 09:19:29 +0000 (09:19 +0000)]
change returning type to void like it is done in OpenRCS:buf_release()
ok nicm@
kettenis [Sun, 1 Aug 2010 09:01:45 +0000 (09:01 +0000)]
ANSIfy
blambert [Sun, 1 Aug 2010 05:30:13 +0000 (05:30 +0000)]
don't rely on mbuf.h to pull in pool.h here either
ok miod@
chl [Sun, 1 Aug 2010 03:09:48 +0000 (03:09 +0000)]
fix use of uninitialized variable.
reported by gcc.
ok canacar@
chl [Sun, 1 Aug 2010 02:51:03 +0000 (02:51 +0000)]
remove unused variable
ok thib@
chl [Sun, 1 Aug 2010 02:49:07 +0000 (02:49 +0000)]
add missing header needed by strcmp()
add missing prototype
ok stsp@
schwarze [Sun, 1 Aug 2010 00:09:48 +0000 (00:09 +0000)]
Sync to bsd.lv:
State that we parse and ignore \s and \m font size and colour control
sequences, and remove the detailed, irrelevant documentation.
schwarze [Sat, 31 Jul 2010 23:42:04 +0000 (23:42 +0000)]
Correct Copyright lines in the rarely touched files:
* add missing years (only where substantial changes were committed)
* update Kristaps' email address in the remaining places
No code changes.
schwarze [Sat, 31 Jul 2010 22:07:11 +0000 (22:07 +0000)]
Major cleanup (but there is still more to come):
* rewrite .An, .Bd, .Bk, .Bl, .Ex descriptions
* correct "parsable" to "parsed"
* and various formatting and wording tweaks
This commit includes a patch from kristaps@ explaining empty .Dd.
Feedback and OK jmc@ and kristaps@.
schwarze [Sat, 31 Jul 2010 21:51:33 +0000 (21:51 +0000)]
document .in; from kristaps@
schwarze [Sat, 31 Jul 2010 21:43:07 +0000 (21:43 +0000)]
Merge bsd.lv version 1.10.5: last larger batch of bug fixes before release.
NOT including Kristaps' .Bd -literal changes which cause regressions.
Features:
* -Tpdf now fully working
Bugfixes:
* proper handling of quoted strings by .ds in roff(7)
* allow empty .Dd
* make .Sm start no-spacing after the first output word
* underline .Ad
* minor fixes in -Thtml
and some optimisations in terminal output.
ratchov [Sat, 31 Jul 2010 21:24:55 +0000 (21:24 +0000)]
remove references to ``opl'', since it doesn't exist any longer
noticed by brad
kettenis [Sat, 31 Jul 2010 21:15:05 +0000 (21:15 +0000)]
Ignore the PSL_VEC bit in the sigcontext and always copy the bit out from
the trap frame. The Altivec unit might have been stolen away from us while
we were running the signal handler, so it is ok that the two don't agree.
Fixes the X server mysteriously exiting (and seemingly freeze).
ok miod@, drahn@
blambert [Sat, 31 Jul 2010 20:48:32 +0000 (20:48 +0000)]
another pair of files which relied on mbuf.h for pool.h; should be the last,
as the kernel now compiles w/o ``#include <sys/pool.h>'' in mbuf.h; removing
that line, though, is for another day, as a userland program (systat, IIRC)
fails to build without it there.
ok krw@
jmc [Sat, 31 Jul 2010 20:26:21 +0000 (20:26 +0000)]
zap a comma; from Joachim Schipper