summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-08-03When the target pointer 'pwcs' passed to mbsrtowcs() is NULL, mbsrtowcs()Stefan Sperling
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
2010-08-03Fix a usage of logical and where binary and was intended.Jonathan Gray
Spotted by Mike Belopuhov. ok jsing@ deraadt@
2010-08-03Fix a leak in ypldap. Found (and correct diff) fromPierre-Yves Ritschard
plalonde (at) overnet.qc.ca Prompted by deraadt@
2010-08-03matthew did not commit the diff he passed around for us to inspect...Theo de Raadt
repair that situation. Darn newbies...
2010-08-03If an asynchronous request invalidates a buf, then we might remove itMatthew Dempsky
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@
2010-08-03Group string comparisons and supply more helpful comments. AddKenneth R Westerback
"total sectors" to "boundstart" and "boundend" in the list of fields that are left alone during a RESTORE operation. ok deraadt@
2010-08-03Start with the default label when RESTORE'ing a saved ascii label.Kenneth R Westerback
This ensures that all physical fields are filled in with current values. Lack of values (boundstart, boundend in particular) noted by ray@. ok deraadt@
2010-08-03tweaks from jmc@:Ingo Schwarze
* 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
2010-08-02Handle USB_GET_REPORT, USB_GET_REPORT_DESC, USB_GET_REPORT_ID andMiod Vallat
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@
2010-08-02Don't refer to xs->cmd, even via a pointer to xs->cmd, after xs hasKenneth R Westerback
been put back in the pool. Fixes Daniel Dickman's ses device. ok matthew@ deraadt@
2010-08-02Make MHZ_TO_PLL safer to use by adding parenthesis. Fixes a potential issueMark Kettenis
in agten(4) uncovered by gcc4. ok miod@, deraadt@
2010-08-02Fix knote handling for exiting processes: when triggering a NOTE_EXITPhilip Guenthe
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@
2010-08-02There is no reason to call the start function upon resume; the network stackMark Kettenis
is perfectly capable to get things going again all by itself. ok deraadt@
2010-08-02There is no reason to call the start function upon resume; the network stackMark Kettenis
is perfectly capable to get things going again all by itself. ok damien@, deraadt@
2010-08-02The EC GPE is always edge. edge interrupts have their STS bit resetTheo de Raadt
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
2010-08-02Add System Enclosure or Chassis structure.Marco Peereboom
ok deraadt
2010-08-02syncTheo de Raadt
2010-08-02enable owctrTheo de Raadt
2010-08-02Quirk for USB_PRODUCT_MICROSOFT_WLINTELLIMOUSE turns out not to beMiod Vallat
required; PR 6436 ok deraadt@
2010-08-02Only open with O_RDWR if we are actually chaging a report descriptor, otherMiod Vallat
operations only need O_RDONLY. ok blambert@ deraadt@
2010-08-02jmicron code was writing to the wrong register; ok jsgTheo de Raadt
2010-08-02Ignore SIGPIPE, the delivery of which prevented /usr/sbin/sendmail fromJacek Masiulaniec
relaying the server diagnostic back to the user (eg. "500 Line too long").
2010-08-02Suppress MAKEDEV warnings about 'unknown device' that can appearKenneth R Westerback
during upgrades when /etc/fstab is using disklabel UID's to mount partitions. Feedback & trash elimination from halex@ "That seems acceptable to me" deraadt@
2010-08-02Prevent illegal struct casting by moving AF_INET/AF_INET6 addressMatthew Dempsky
family checks before calling ifatoia/ifatoia6. ok deraadt@, dlg@, mcbride@
2010-08-02Show PCIe link speed/width, earlier version ok miod@/kettenis@ thenJonathan Gray
tweaked to show both negotiated and capable as well as fixing a mask after comments from damien@ ok deraadt@
2010-08-02Fix use of logical and where binary and was intended.Jonathan Gray
Spotted by Mike Belopuhov, ok yasuoka@
2010-08-02Save/restore more registers at suspend/resume for those chips which lookTheo de Raadt
like they need it. (Or don't, when it appears they don't need it)
2010-08-02correct header file stuff; pointed out by teduTheo de Raadt
2010-08-02needs explicit proc.h; Nathanael RensenTheo de Raadt
2010-08-02spellinTheo de Raadt
2010-08-02Fix readlink(2) on FFS and ext2 filesystems to consistently returnMatthew Dempsky
EFAULT when appropriate. ok deraadt@, miod@
2010-08-01Change COM_IBUFSIZE 8K to 16K because 8K is not enough for CDMA1X cardYASUOKA Masahiko
by KDDI.
2010-08-01note specifically that pkg_add -u parameters are *installed* package names,Marc Espie
since that's the distinction with -U....
2010-08-01Allow fallback tables for relays, not just redirections.Stuart Henderson
Seems reasonable to jsg, ok phessler, no response from reyk or pyr
2010-08-01Be more generous when parsing the report descriptor:Miod Vallat
- 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).
2010-08-01Add infrastructure to buil GCC 4.2.1 on OpenBSD/sparc.Mark Kettenis
2010-08-01The explanations of the HISTORY and AUTHORS sections were nicerIngo Schwarze
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@
2010-08-01Move the new mdoc(7) manual written by kristaps@, replacing the old oneIngo Schwarze
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
2010-08-01Make parsing of /etc/remote work again (some of the options were theNicholas Marriott
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.
2010-08-01syncTheo de Raadt
2010-08-01Read status register after all writes to the pcf8584 controller. AlegedlyMark Kettenis
this is what (Open)Solaris does and it makes the i2c controller on the blade2.5k work. From NetBSD. Tested by sthen@, ok deraadt@
2010-08-01Make __builtin_return_address(0) work with -fstack-protector. Old diffMark Kettenis
from Jakub Jelinek that never made it into upstream GCC. Fixes ld.so. Found by drahn@ and me; ok miod@
2010-08-01Properly reset states when a login phase is interrupted by another one.Tobias Stoeckmann
Prevents ftpd from letting regular users logging in during anonymous-only mode (-A). ok millert, ray
2010-08-01document the rw_assert_ functionsBret Lambert
ok jmc@
2010-08-01Small cleanup of the fpu switching code; don't rely on the fact the HFP_REGSMark Kettenis
is actually zero and remove a redundant instruction. ok jsing@
2010-08-01adjust position of test so that it does something !Marc Espie
avoid a lot of extra stupid printing.
2010-08-01typoMarc Espie
2010-08-01fix the qt 4.5 -> 4.6 update issue.Marc Espie
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...
2010-08-01change buf_release() prototype accordingly to buf.czinovik
unbreaks opencvs build
2010-08-01change returning type to void like it is done in OpenRCS:buf_release()zinovik
ok nicm@