openbsd
14 years agoWrite to the correct offset for various ACPI pmreg registers. Writing to
mlarkin [Thu, 5 Aug 2010 16:57:03 +0000 (16:57 +0000)]
Write to the correct offset for various ACPI pmreg registers. Writing to
the correct register does properly clear the wake status bits and fixed
event bits, which allows some machines to have more than 1 suspend cycle.

bug spotted by deraadt@

tested by deraadt@ and myself on a half-dozen machines and others on
hackers@

ok deraadt@, marco@

14 years agoFix the power button. The pm1 register is 16 bits in size.
deraadt [Thu, 5 Aug 2010 16:13:03 +0000 (16:13 +0000)]
Fix the power button.  The pm1 register is 16 bits in size.
My mistake, a while back.
tested by krw

14 years agoAdd Windows2009 to the valid osi table; from marco, suggested as a trial
deraadt [Thu, 5 Aug 2010 15:46:20 +0000 (15:46 +0000)]
Add Windows2009 to the valid osi table; from marco, suggested as a trial
by kettenis a while back, lots of you have been running this.
If you have new problems try without this and report.

14 years agoChange the management of commands in the active commands TAILQ to let issuers
miod [Thu, 5 Aug 2010 13:50:00 +0000 (13:50 +0000)]
Change the management of commands in the active commands TAILQ to let issuers
of synchronous commands perform the TAILQ_REMOVE of the command themselves,
instead of relying upon this being done for us if tsleep() returns zero.

Since we momentarily set `cold' again around suspend, tsleep() becomes a
no-op, which broke this assumption, and in turn caused TAILQ corruption,
with items being put on the freelist while still on the active list.

Found the hard way by ray@ playing with wsmoused after resume.

14 years agoAllow bthidev_output() to not grab the bt lock, to prevent lock
miod [Thu, 5 Aug 2010 13:13:17 +0000 (13:13 +0000)]
Allow bthidev_output() to not grab the bt lock, to prevent lock
recursion when trying to send commands from input callbacks. Makes the
caps/num/scroll lock keys on btkbd correctly lit the leds instead of
panic'ing.
Noticed and fix tested by mlarkin@, "do whatever you want in bt" deraadt@

14 years agoFix a trio of bugs in the local/remote window calculation for datagram
djm [Thu, 5 Aug 2010 13:08:42 +0000 (13:08 +0000)]
Fix a trio of bugs in the local/remote window calculation for datagram
data channels (i.e. TunnelForward):

Calculate local_consumed correctly in channel_handle_wfd() by measuring
the delta to buffer_len(c->output) from when we start to when we finish.
The proximal problem here is that the output_filter we use in portable
modified the length of the dequeued datagram (to futz with the headers
for !OpenBSD).

In channel_output_poll(), don't enqueue datagrams that won't fit in the
peer's advertised packet size (highly unlikely to ever occur) or which
won't fit in the peer's remaining window (more likely).

In channel_input_data(), account for the 4-byte string header in
datagram packets that we accept from the peer and enqueue in c->output.

report, analysis and testing 2/3 cases from wierbows AT us.ibm.com;
"looks good" markus@

14 years agoReturn the old behaviour of exiting if a mount fails rather than ignoring it
halex [Thu, 5 Aug 2010 10:45:32 +0000 (10:45 +0000)]
Return the old behaviour of exiting if a mount fails rather than ignoring it

ok krw@

14 years agosync from mirrors.dat
sthen [Thu, 5 Aug 2010 10:22:15 +0000 (10:22 +0000)]
sync from mirrors.dat

14 years agoca_activate function for suspend/resume; tested by mlarkin on a
deraadt [Thu, 5 Aug 2010 07:57:04 +0000 (07:57 +0000)]
ca_activate function for suspend/resume; tested by mlarkin on a
Davicom DM9102.  (bit of noise on suspend or resume, but that can be
dealt with later)

14 years agoRegenerate files that were affected by changes to asn1_compile that were
guenther [Thu, 5 Aug 2010 07:45:31 +0000 (07:45 +0000)]
Regenerate files that were affected by changes to asn1_compile that were
made years ago.

ok deraadt@

14 years agore-post all ATI and all PowerVR (with an annoying message)
deraadt [Wed, 4 Aug 2010 23:23:36 +0000 (23:23 +0000)]
re-post all ATI and all PowerVR (with an annoying message)
ok kettenis oga pirofti

14 years agoDisable bce(4) because it can only access 1GB of memory and developers
deraadt [Wed, 4 Aug 2010 21:43:37 +0000 (21:43 +0000)]
Disable bce(4) because it can only access 1GB of memory and developers
who have the device (only found in laptops) refuse to realize it is
their own problem and should dig into the code and fix it.

14 years agosync
deraadt [Wed, 4 Aug 2010 21:29:29 +0000 (21:29 +0000)]
sync

14 years agoexit(2) on xcalloc failure. From Daniel Dickman <didickman () gmail
ray [Wed, 4 Aug 2010 21:28:17 +0000 (21:28 +0000)]
exit(2) on xcalloc failure. From Daniel Dickman <didickman () gmail
! com>, thanks!

OK deraadt

14 years agoon resume: calling sc_power after ath_init() is silly. ath_init()
deraadt [Wed, 4 Aug 2010 21:02:24 +0000 (21:02 +0000)]
on resume:  calling sc_power after ath_init() is silly.  ath_init()
gets down to there through ath_init() -> ath_enable() -> ...
from a discussion with damien

14 years agouse a workq for resume.
damien [Wed, 4 Aug 2010 19:49:49 +0000 (19:49 +0000)]
use a workq for resume.

ok deraadt@

14 years agoadd suspend/resume support for PCI ral(4) devices.
damien [Wed, 4 Aug 2010 19:48:33 +0000 (19:48 +0000)]
add suspend/resume support for PCI ral(4) devices.

ok deraadt@, sthen@

tested by matthew@ (RT2560), dcoppa@ (RT2790), okan@ (RT2860), todd@ (RT2560)

14 years agoswitch back to kqueue for now, since (a) kqueue has been fixed to deal
deraadt [Wed, 4 Aug 2010 19:46:13 +0000 (19:46 +0000)]
switch back to kqueue for now, since (a) kqueue has been fixed to deal
with strange devices and (b) since there appears to be a bull in the
poll code in libevent as well...
requested by nicm who is away

14 years agoWake up cdroms attached to pciide; same as in wd.c 1.86
deraadt [Wed, 4 Aug 2010 19:43:52 +0000 (19:43 +0000)]
Wake up cdroms attached to pciide; same as in wd.c 1.86
tested by phessler

14 years agoIn .Bd -literal, break the output line after the last element of each
schwarze [Wed, 4 Aug 2010 18:52:55 +0000 (18:52 +0000)]
In .Bd -literal, break the output line after the last element of each
input line, not after the first element.  Since free-form text lines
only have a single element in literal mode, this is only relevant for
macro lines inside literal displays, and only for those containing
more than one macro.  Fixes e.g. awk(1) and boot_config(8).
Note this fix differs from what kristaps@ committed to bsd.lv because
those changes introduce regressions with respect to blank lines in
literal mode.
With permission from deraadt@ to still fix bugs in mandoc.

14 years agoAdd missing brace.
matthew [Wed, 4 Aug 2010 18:29:43 +0000 (18:29 +0000)]
Add missing brace.

ok deraadt@

14 years agoRevert previous since it makes the tests fail.
kettenis [Wed, 4 Aug 2010 18:25:24 +0000 (18:25 +0000)]
Revert previous since it makes the tests fail.

14 years agoAdd missing #ifndef YY_NO_INPUT around the input() function when
millert [Wed, 4 Aug 2010 18:24:50 +0000 (18:24 +0000)]
Add missing #ifndef YY_NO_INPUT around the input() function when
"%option noinput" is specified.  OK deraadt@

14 years agoRemove unused code, conditional in fixup node was never true
jordan [Wed, 4 Aug 2010 18:11:55 +0000 (18:11 +0000)]
Remove unused code, conditional in fixup node was never true
ok deraadt

14 years agofixup keylength for aes-128-cbc in quickmode
deraadt [Wed, 4 Aug 2010 18:09:45 +0000 (18:09 +0000)]
fixup keylength for aes-128-cbc in quickmode
from mikeb

14 years agoUpdate to tzdata2010k from elsie.nci.nih.gov
millert [Wed, 4 Aug 2010 18:08:13 +0000 (18:08 +0000)]
Update to tzdata2010k from elsie.nci.nih.gov
OK deraadt@

14 years agoPrint annoying stuff when re-posting the video, so that people will
deraadt [Wed, 4 Aug 2010 17:50:38 +0000 (17:50 +0000)]
Print annoying stuff when re-posting the video, so that people will
eventually want to remove their video cards from the list here.
ok kettenis

14 years agoPrint supported sleep states.
kettenis [Wed, 4 Aug 2010 17:35:39 +0000 (17:35 +0000)]
Print supported sleep states.

ok marco@, phessler@, deraadt@

14 years agoCorrect a problem reported by Holger Mikolon that turns out to be
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@

14 years agoPrint the MTU in OSPF dd packets. Borrowed from the ospf6 printer.
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@

14 years agoactivate function for suspend/resume; tested by mcbride
deraadt [Wed, 4 Aug 2010 16:29:42 +0000 (16:29 +0000)]
activate function for suspend/resume; tested by mcbride

14 years agoSet an appropriate To: header in /var/mail/$user which is copied from
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@

14 years agoclean for -Wuninitialized
djm [Wed, 4 Aug 2010 06:08:40 +0000 (06:08 +0000)]
clean for -Wuninitialized

14 years agoSupport CA keys in PKCS#11 tokens; feedback and ok markus@
djm [Wed, 4 Aug 2010 06:07:11 +0000 (06:07 +0000)]
Support CA keys in PKCS#11 tokens; feedback and ok markus@

14 years agoAdd the new kqueue+rfork test, but disable the tests that use RFMEM
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

14 years agoRegression test for the recent rfork+kqueue fix
guenther [Wed, 4 Aug 2010 06:05:26 +0000 (06:05 +0000)]
Regression test for the recent rfork+kqueue fix

14 years agotun* interfaces are now automatically destroyed on last close when
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*

14 years agoConfirm that a NOTE_EXIT knote is delivered when the child exits
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

14 years agocommited the wrong version of the hostbased certificate diff; this
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@

14 years agoenable certificates for hostbased authentication, from Iain Morgan;
djm [Wed, 4 Aug 2010 05:42:47 +0000 (05:42 +0000)]
enable certificates for hostbased authentication, from Iain Morgan;
"looks ok" markus@

14 years agotighten the rules for certificate encoding by requiring that options
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@

14 years agoRemove mentions of weird "addr/port" alternate address format for IPv6
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@

14 years agoTrivial patch to get correct spacing from the recently introduced
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.

14 years agoif interrupt mapping fails, say so
jakemsr [Tue, 3 Aug 2010 22:58:58 +0000 (22:58 +0000)]
if interrupt mapping fails, say so
ok deraadt

14 years agoRemove old code that figures out the PCI bus number. The new code gets some
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@

14 years agothat had to be added
henning [Tue, 3 Aug 2010 22:12:27 +0000 (22:12 +0000)]
that had to be added

14 years agono special registers to restore on via chips either
deraadt [Tue, 3 Aug 2010 21:53:02 +0000 (21:53 +0000)]
no special registers to restore on via chips either

14 years agoregen
miod [Tue, 3 Aug 2010 20:16:22 +0000 (20:16 +0000)]
regen

14 years agoCreate two more usb device nodes by default, as modern Apple hardware
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@

14 years agoDon't attempt to set the read or write caches on usb disks. It
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@

14 years agofix linecount bug with comments spanning multiple lines
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?

14 years agoBring the suspend/resume code of all the Intel wireless drivers in line with
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@

14 years agomissed one if (continued) test, so simplify logic: test continue beforehand.
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)

14 years agoAdd busy flag so that we don't act on a SCI until a command in progress
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

14 years agoAdd support for 82576 fiber adapters based on Intel code in FreeBSD.
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@

14 years agoUse the proper flag for re-enabling certain hardware events (power btn,
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@

14 years agoDisable hardware VLAN stripping/insertion on 8257[56] for now. While
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@

14 years agoCorrect use of logical and where binary and was intended.
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@

14 years agoshrink! :)
espie [Tue, 3 Aug 2010 14:10:30 +0000 (14:10 +0000)]
shrink! :)

14 years agosort journal messsages in a better way, put - before +, so that one can
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@)

14 years agobug-fix: during updates, only set oldfound after we found a matching pkgpath.
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).

14 years agouse proper log idiom (blanket okay from theo for pkg_add careful changes for
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)

14 years agoSave/restore BLC_HIST_CTL as well at suspend/resume time; which allows
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

14 years agoWhen the target pointer 'pwcs' passed to mbsrtowcs() is NULL, mbsrtowcs()
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

14 years agoFix a usage of logical and where binary and was intended.
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@

14 years agoFix a leak in ypldap. Found (and correct diff) from
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@

14 years agomatthew did not commit the diff he passed around for us to inspect...
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...

14 years agoIf an asynchronous request invalidates a buf, then we might remove it
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@

14 years agoGroup string comparisons and supply more helpful comments. Add
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@

14 years agoStart with the default label when RESTORE'ing a saved ascii label.
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@

14 years agotweaks from jmc@:
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

14 years agoHandle USB_GET_REPORT, USB_GET_REPORT_DESC, USB_GET_REPORT_ID and
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@

14 years agoDon't refer to xs->cmd, even via a pointer to xs->cmd, after xs has
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@

14 years agoMake MHZ_TO_PLL safer to use by adding parenthesis. Fixes a potential issue
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@

14 years agoFix knote handling for exiting processes: when triggering a NOTE_EXIT
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@

14 years agoThere is no reason to call the start function upon resume; the network stack
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@

14 years agoThere is no reason to call the start function upon resume; the network stack
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@

14 years agoThe EC GPE is always edge. edge interrupts have their STS bit reset
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

14 years agoAdd System Enclosure or Chassis structure.
marco [Mon, 2 Aug 2010 16:57:53 +0000 (16:57 +0000)]
Add System Enclosure or Chassis structure.

ok deraadt

14 years agosync
deraadt [Mon, 2 Aug 2010 14:29:49 +0000 (14:29 +0000)]
sync

14 years agoenable owctr
deraadt [Mon, 2 Aug 2010 14:13:23 +0000 (14:13 +0000)]
enable owctr

14 years agoQuirk for USB_PRODUCT_MICROSOFT_WLINTELLIMOUSE turns out not to be
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@

14 years agoOnly open with O_RDWR if we are actually chaging a report descriptor, other
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@

14 years agojmicron code was writing to the wrong register; ok jsg
deraadt [Mon, 2 Aug 2010 13:50:33 +0000 (13:50 +0000)]
jmicron code was writing to the wrong register; ok jsg

14 years agoIgnore SIGPIPE, the delivery of which prevented /usr/sbin/sendmail from
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").

14 years agoSuppress MAKEDEV warnings about 'unknown device' that can appear
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@

14 years agoPrevent illegal struct casting by moving AF_INET/AF_INET6 address
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@

14 years agoShow PCIe link speed/width, earlier version ok miod@/kettenis@ then
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@

14 years agoFix use of logical and where binary and was intended.
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@

14 years agoSave/restore more registers at suspend/resume for those chips which look
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)

14 years agocorrect header file stuff; pointed out by tedu
deraadt [Mon, 2 Aug 2010 04:37:42 +0000 (04:37 +0000)]
correct header file stuff; pointed out by tedu

14 years agoneeds explicit proc.h; Nathanael Rensen
deraadt [Mon, 2 Aug 2010 03:51:39 +0000 (03:51 +0000)]
needs explicit proc.h; Nathanael Rensen

14 years agospellin
deraadt [Mon, 2 Aug 2010 03:22:26 +0000 (03:22 +0000)]
spellin

14 years agoFix readlink(2) on FFS and ext2 filesystems to consistently return
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@

14 years agoChange COM_IBUFSIZE 8K to 16K because 8K is not enough for CDMA1X card
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.

14 years agonote specifically that pkg_add -u parameters are *installed* package names,
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....

14 years agoAllow fallback tables for relays, not just redirections.
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

14 years agoBe more generous when parsing the report descriptor:
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).

14 years agoAdd infrastructure to buil GCC 4.2.1 on OpenBSD/sparc.
kettenis [Sun, 1 Aug 2010 21:23:02 +0000 (21:23 +0000)]
Add infrastructure to buil GCC 4.2.1 on OpenBSD/sparc.

14 years agoThe explanations of the HISTORY and AUTHORS sections were nicer
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@