summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-07-12Do not fatal() if the CVSROOT/config file does not exist.Xavier Santolaria
Matches GNU's behaviour. OK ray@.
2007-07-12Delint: remove some unreachable statements, from Bret Lambert.Ray Lai
OK markus@ and dtucker@.
2007-07-11Use the full 64 bits available when reporting sizes; now bioctl showsOtto Moerbeek
the correct size for my 4.TB volume. Original diff from dlg@ with some tweaks by me; ok dlg@
2007-07-11Remove unused shpcic_intr_establish() and friends.Miod Vallat
2007-07-11endiannessDamien Bergamini
2007-07-11Bring back the change in rev 1.70, it is safe now:Todd C. Miller
Propagate the wait flag from fsync down to softdep_fsync_mountdev() and do not perform synchronous sync there is no wait requested by skipping the drain_output() call. This fixes a problem where update kthread would sleep forever on some vnode since work is created faster than it can be flushed. OK deraadt@
2007-07-11make the demote count argument optional as advertised in the man page.Pierre-Yves Ritschard
2007-07-11ffs2 support from FreeBSD. Tested by jmc@ and kili@Todd C. Miller
2007-07-11add a STANDARDS section, as requested by itojun;Jason McIntyre
ok otto
2007-07-11put -q in the right place;Jason McIntyre
2007-07-11we use fedora instead of redhat these daysNikolay Sturm
from Arnaud Bergeron <abergeron at gmail.com>
2007-07-11Try reading a native label in the first sector, before trying to findMiod Vallat
MBR-like partitions.
2007-07-11Do not divide by zero in DISKLABELV1_FFS_FSIZE if the argument value is bogus;Miod Vallat
ok otto@ millert@ krw@
2007-07-11do not put mt/eject onto small media; ok krwTheo de Raadt
2007-07-10emu(4) incorrectly overrides the requested recoding format, settingJacob Meuser
it to 16-bit slinear_le. this appears to be the result of a mistake in porting the driver from NetBSD. when this driver was ported, NetBSD had some members in it's 'audio_params' structure that OpenBSD doesn't have. in particular, NetBSD had 'hw_encoding' and 'hw_precision', which store what the hardware is presenting. the 'encoding' and 'precision' members store what the audio layer is presenting (both in NetBSD and OpenBSD) and can be different than what the hardware is presenting. the original NetBSD code was setting 'hw_encoding' and 'hw_precision', and in porting was changed to 'encoding' and 'precision'. with this change the hardware is still presenting 16-bit slinear_le; having the variable 'b16' set to '1' is enough to ensure this. however now the audio layer will convert it to the requested format, instead of always outputting 16-bit slinear_le.
2007-07-10fix firmware file name to match reality.Damien Bergamini
2007-07-10change firmware loading code to adopt the new 2.14.4 firmware layout.Damien Bergamini
while i'm here, fix allocation of the Rx ring descriptors so we don't waste memory. IMPORTANT: you must upgrade your wpi-firmware package to rev. 2.14.4 or the driver will stop working.
2007-07-10Don't trust the privilige level in the sigcontext passed to sigreturn(2).Mark Kettenis
ok miod@
2007-07-10adjust pf_find_state_all() so that it works correctly for the new globalKurt Miller
table/state tail queue design. corrects ftp-proxy errors "server lookup failed (no rdr?)" okay henning@
2007-07-10implement -q to query a scsi disk for its inquiry data (vendor, model,Henning Brauer
revision, serial #) and print that. when the default bio ioctl fails with ENOTTY because the given disk is not on a bio-supported raid controller, fall back to -q. use strnvis to sanitize inquiry data so it is safe to use in scripts. ok deraadt
2007-07-10Don't brelse() a buf we don't own in readsgilabel() by mistake.Miod Vallat
2007-07-10fix the bug rev 1.56 uncovered and rev 1.62 worked around.Jacob Meuser
data is expanded before it goes in the buffer. all sizes and offsets used internally are of this expanded data. there's no need to compensate for this fact except when showing information to the user in case their actions depend on how many bytes are in the buffer.
2007-07-10update some capital cities (and spelling); from Daniel DickmanJason McIntyre
2007-07-10Revert previous commit, it probably was intended to come with matchingMiod Vallat
changes to uipc_mbuf.c, but right now all it causes is infinite recursion.
2007-07-09change the behaviour of the LED on the O2 so that it's red in user modeJasper Lievisse Adriaanse
and green when idling. from Joel Sing <joel at ionix.com.au> ok miod@
2007-07-09espie, you have got to be jokingTheo de Raadt
2007-07-09Replace the huge MFREE macro with a simple call to m_free(). On today'sClaudio Jeker
computer the resulting code is smaller and faster. Also remove the _MEXTREMOVE macro which was only used by MFREE. OK markus@ long time ago
2007-07-09correct a typo in an error message.Thordur I. Bjornsson
use realpath(3) to sanitize the path we're going to work with, prevents silly errors when passing ncheck_ffs paths from the shell with a trailing '/' since that doesnt match the entry in fstab. ok deraadt@,krw@
2007-07-09disable specific gcc optimization that triggers the gcc bugTodd C. Miller
2007-07-09Fix possible heap overflow in file(1), aka CVE-2007-1536.Dimitry Andric
When writing data into a buffer in the file_printf() function, the length of the unused portion of the buffer is not correctly tracked, resulting in a buffer overflow when processing certain files. Adapted from FreeBSD's SA-07:04.file fix, with ok and some minor tweaks from canacar@ and ray@.
2007-07-09Use -O1 for m68k to work around a gcc optimizer bugTodd C. Miller
2007-07-09Do not allow clustering read for filesystems which block size is smallerMiod Vallat
than the hardware page size, as was the case in the old clustering code. This fixes vnd reads on alpha and sparc64 On behalf of pedro@, ok art@
2007-07-09tweaks;Jason McIntyre
2007-07-09indent correctlyMarc Espie
2007-07-09remove -WallTodd C. Miller
2007-07-09take into account possible expansion and be more careful not toJacob Meuser
try to go past the end of the buffer. this and the last commit allow ffplay and gnash to work properly on devices that may need to do mono to stereo conversion, like auich(4). problem reported by and much debugging deanna@
2007-07-09give the user what they expect instead of what we're working withJacob Meuser
by taking into account expansion we may have done in cases such as playing monoaural media on a device that only plays stereo, like auich(4).
2007-07-09repair, sorry about that (obvious typo, duh)Marc Espie
2007-07-09Handle IPv6 on PPP printer, from Stuart HendersonCan Erkin Acar
2007-07-09don't always spew massive debug messages just because AUDIO_DEBUG isJacob Meuser
defined.
2007-07-08ansify/de-registerJasper Lievisse Adriaanse
ok krw@
2007-07-08rename variable to errorIsOkay. What does oldVars mean anyway ?Marc Espie
2007-07-08missed part: add check to avoid poison checking inexistent local vars,Marc Espie
and do for loops for real.
2007-07-08A set of big related changes. okay millert@, tested further by kettenis@Marc Espie
and matthieu@ This all revolves around putting ALL global variables into one single big hash, and using flags. This removes some impossible to understand stuff, like old varfind, and allows for some nice stuff. - each time we reference a global variable, we create it, possibly as a dummy variable. - each time we go to the environment, we remember it, thus we no longer go back to it. Lists of dependant changes: - isolate changes to oldVars and checkEnvFirst. - remove VAR_CMD and VAR_GLOBAL contexts. The only distinction is in parsevar. Split Parse_DoVar into Parse_DoVar and Parse_CmdlineVar - rework var modules around obtain_global_var, observe flags in various functions like Var_Value and Var_Seti. - Var_Seti/Var_Appendi are almost the same code, use that internally. - add magic to handle the very special SHELL variable. - introduce Var_Definedi for the cases where we don't want the actual value, to simplify tests. - add keyword .poison, parse it and set global flags accordingly. - do poison_checks where needed. - document poison. - in for loops, set variable temporarily, so that Var_SubstVar will also substitute it in varmodifiers expressions.
2007-07-08Process scan command results. Enable 'ifconfig -M'.Marcus Glocker
2007-07-08Report the correct stack size and top for the primordial thread inKurt Miller
pthread_stackseg_np(). With input and okay marc@
2007-07-08As pointed out by Mickey, "-I/usr/includes" is not required forKenneth R Westerback
successful compilation of assembler or generating microcode.
2007-07-07Restore missing '(' to allow successful compilation. Bad pyr@.Kenneth R Westerback
2007-07-07Make the scan command work, finally.Marcus Glocker
2007-07-07/altroot backup now documented in daily(8), not afterboot(8);Jason McIntyre
from Maximilian Gass