summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-11-27Make sure we don't attach more CPUs than we can handle. Prevents anMark Kettenis
out-of-bounds array access later on. Allows OpenBSD to boot on machines with more than 32 CPUs/cores. ok krw@, jsing@, dlg@
2010-11-27avoid infinite loops correctly this timeMarc Espie
2010-11-27zap old-style .>= specsMarc Espie
2010-11-27minor fix for ports which install manpages in other directories: keepMarc Espie
track of all known directories, so when we generate a manpage in a new catN directory, we add the entry and it gets deleted properly. -> requires a bump to affected packages.
2010-11-27Document .so.Ingo Schwarze
This file still needs lots of love before we can consider installing it.
2010-11-27Increase UVIDEO_MAX_FRAME to 32 to support 28 possible frame types onPaul de Weerd
Logitech HD Pro Webcam C910 (and probably others) to make it work. Debugging, suggested and ok jakemsr@
2010-11-27regenPaul de Weerd
2010-11-27Another cam: Logitech HD Pro Webcam C910Paul de Weerd
ok jakemsr@
2010-11-26In gfxp_copyrect(), make sure that the - possibly negative - coordinate ↵Miod Vallat
fields, which are supposed to be 16 bit values, are properly masked to avoid polluting other fields. From NetBSD; ok kettenis@
2010-11-26Oops, removed a few lines too many in previous change.Miod Vallat
2010-11-26Don't suggest there are variants of this card that can be stuck in a PCI slot.Mark Kettenis
2010-11-26Disable uscanner(4) by default on all kernels which configure it. First stepMiod Vallat
until possible removal, if indeed this causes no regression for scanner users.
2010-11-26Unbreak re-indexing by checking if an index entry already exists.Martin Hedenfal
2010-11-26typo, noticed by Mikolaj KucharskiMarc Espie
2010-11-26more useful logging level for demotion adjustmentsOtto Moerbeek
ok mcbide@ claudio@ henning@
2010-11-26better line for net.inet.carp.log reflecing current reality;Otto Moerbeek
ok mcbride@ claudio@ henning@
2010-11-26Nuke the unused variable cpus_attached. It is unused and 32 bitsKenneth R Westerback
aren't enough to keep track of possible cores these days anyway. 36-core amd64 box encountered by dlg@ ok dlg@ kettenis@
2010-11-26tweak previous;Jason McIntyre
2010-11-26Do like in rc.local and print the daemon name before running rc_stop.Antoine Jacoutot
ok robert@
2010-11-26document package-specsMarc Espie
2010-11-26Pass through ssh command-line flags and options when doing remote-remoteDamien Miller
transfers, e.g. to enable agent forwarding which is particularly useful in this case; bz#1837 ok dtucker@
2010-11-25Make .de1 a symnonym for .de, not .ig as it was before.Ingo Schwarze
The .de1 instructions is a GNU extension not found in traditional roff and not even in old groff, defined as "define a macro that will be executed with traditional roff compatibility mode switched off during macro execution". Since we ran into it in the wild, we have been parsing and ignoring it for a long time. Now that we have proper .de support, we can as well use the contents, even though we don't implement compatibility mode at all.
2010-11-25Support quoting of arguments passed to user-defined macros,Ingo Schwarze
such that arguments can contain blank characters. Also support escaping of quote characters by doubling them. For example, the argument "a""b c." resolves to: a"b c.
2010-11-25Implement the .de (define macro) roff instruction.Ingo Schwarze
This fixes various Xenocara manuals. Do not define your own macros in new manuals, though: this code exists purely to cope with existing and old stuff. Like in both traditional and GNU roff, the .de and .ds (define string) roff instructions share the same string table, so one can abuse strings as macros and vice versa. This implementation supports multi-line user-defined macros and user-defined macros taking up to 9 arguments. Project started near the end of p2k10, now mature for production, but there is still room for future improvements in various respects.
2010-11-25replace close() loop for fds 3->64 with closefrom();Damien Miller
ok markus deraadt dtucker
2010-11-24add *maxactive statsTodd T. Fries
"ok and no need to keep them for yourself" gilles@
2010-11-24Floating-point emulation code for systems lacking proper FPU (i.e. Octeon),Miod Vallat
enabled by option FPUEMUL. This is pretty straightforward, except for conditional branch on FPU condition codes emulation (bc1f/bc1fl/bc1t/bc1tl instructions): unlike most RISC-with-delay-slots designs (m88k, sparc), the branch pipeline is not exposed to the kernel on Mips, therefore we can not resume a branch without losing the delay slot instruction. Some other operating systems work around this issue by emulating the delay slot instruction, but this is error-prone (and requires the kernel code to be aware of all supported instructions of the processor it is currently running on), some use dedicated breakpoints to single-step through the delay slot and then resume the branch as expected, but this causes a lot of copy-on-write allocations. This code chooses a third path, of copying the delay slot instructions to run toa special `magic' page, followed by a special trap instruction to give control back to the kernel. This makes sure the instruction will actually be run by the processor, and that no more than one page per process is wasted, regardless of the number of branches to emulate. Tested on octeon (big-endian) by syuu@ and on loongson (little-endian) by me. Note that enabling option FPUEMUL in the kernel will completely disable the hardware FPU, if there is one; there is currently no way to build a kernel supporting both hardware and software FPU, and there is no reason to change this until there is a strong need to support both.
2010-11-24Allow MD code to setup MD-specific mappings (kinda similar to the signalMiod Vallat
trampoline) in sys_execve(), if MD <machine/_types.h> defines __HAVE_EXEC_MD_MAP.
2010-11-24Make sure ptrace_sstep(,0) actually clears breakpoints, by replacing theMiod Vallat
ptrace guts with a logic similar to what the alpha port does.
2010-11-24Implement a real pmap_proc_iflush() instead of relying on trap.c to performMiod Vallat
copious cache flushes behind our back.
2010-11-24- use *un*signed byte array for control dataJacob Meuser
- use UGETW/USETW instead of letoh16/htole16 fixes controls that use two-byte signed data (e.g. brighness and hue) on sparc64
2010-11-24Ensure that hw.disknames gets updated whenever a disklabel is set, sinceJoel Sing
the disklabel UID may have changed. ok krw@ deraadt@
2010-11-24When dealing with disklabel UIDs (DUIDs) be specific and consistent withJoel Sing
naming. ok krw@
2010-11-24When disabling and enabling tables set the number of hosts that are upJonathan Gray
to zero, consistent with pfe and makes other parts of the code better behaved. From Patrik Lundin. ok reyk@
2010-11-24we can't accept up to MAX_LOCALPART_SIZE (128 bytes) for the user partGilles Chehade
of an email address at session time, then fatal() when we can't fit it in a LOGIN_NAME_MAX (32 bytes) buffer in the aliases expansion code. fix aliases functions to use a buffer that's appropriate, preventing a fatal() from being triggered in aliases_exist(). bug experienced by and reported by Jason Houx, if you're testing smtpd you want to update.
2010-11-24remove a debug() that pollutes stderr on client connecting to a serverDamien Miller
in debug mode (channel_close_fds is called transitively from the session code post-fork); bz#1719, ok dtucker
2010-11-24fix spelling in an error messageStuart Henderson
2010-11-24malloc the temporary struct pppx_if used in pppx_if_find (it's currentlyStuart Henderson
only called from pppx_del_session); lets an amd64 pppx kernel build (otherwise we hit excessive stack use warnings with -Werror). if this ends up being called more frequently in future, then dlg suggests making it static instead. ok claudio@
2010-11-23avoid NULL deref on receiving a channel request on an unknown or invalidDamien Miller
channel; report bz#1842 from jchadima AT redhat.com; ok dtucker@
2010-11-23passing stack pointer to secondary processorsTakuya ASADA
2010-11-23Correct interrupt handlingTakuya ASADA
2010-11-23do not print the terminating null character after stringsAlexander Hall
ok deraadt@
2010-11-23regenKevin Lo
2010-11-23Recognize the Marvell PHYG65G Gig PHY; tested by Frans HaarmanKevin Lo
From FreeBSD ok deraadt@
2010-11-23removed slot argument of function pckbc_cnattachAlexandr Shadchin
because it is always PCKBC_KBD_SLOT ok krw@, miod@
2010-11-23use strict_modes already passed as function argument over referencingDamien Miller
global options.strict_modes
2010-11-22There is somewhere that WINDOW_HIDDEN is getting set when it shouldn'tNicholas Marriott
be and I can't find it, but the flag itself is a useless optimisation that only applies to automatic-resize windows, so just dispose of it entirely. Fixes problems reported by Nicholas Riley.
2010-11-22Remove old comment about constab[] being eventually generated by config(8).Miod Vallat
This has never happened and this wouldn't make much sense on anything but hp300, if at all, nowadays.
2010-11-22Use cons_decl() to get console routine prototypes, instead of rolling our own.Miod Vallat
2010-11-22Remove bus_space_probe prototype, this function is not implemented.Miod Vallat