summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-07-26syncTheo de Raadt
2010-07-26Make sure we stop DMA before suspend instead of doing it as the first thingMark Kettenis
we do upon resume and failing to cope with the fact that the state has changed under our feet. Fixes watchdog timeout issues in at least one case. ok deraadt@, tested by thib@
2010-07-26Some machines include VID devices for hardware that doesn't exist. AvoidMark Kettenis
attaching those devices by checking whether the PCI bus on which they are supposed to sit exists. Fixes issues with brightness controls on my Dell laptop. ok marco@, pirofti@
2010-07-26remove merge error which was commitedTheo de Raadt
2010-07-26- replace SP with sp calls. this was defined within cvs.1, but unsupportedJason McIntyre
by mandoc; diff from kristaps - while here, fix a bad width specifier
2010-07-26sync description of acpisony w/ man page;Jason McIntyre
2010-07-26last item of SEE ALSO should not have a comma;Jason McIntyre
2010-07-26Xr acpisony, and make the name betterTheo de Raadt
2010-07-26fix the Cecil Beaton quote; from Rob Farmer, freebsd pr #148916Jason McIntyre
2010-07-26Add support for Sony ACPI hotkeys via a new driver: acpisony(4).Paul Irofti
Currently it only works for the suspend button and tries to do right for the brightness events, but I haven't found a Sony laptop that like to do right so far. In the future I want to make the brightness keys work on all Sony's and also add support for the zoom hotkeys and whatever other funky keys I can find on those things. Okay deraadt@.
2010-07-26even if you write signal handlers to not do anything stupid when you'reMarc Espie
not on a terminal, they STILL interrupt long system calls and cause sysread to fail, so disable them when they're not needed. problem found by mlarkin@ this is just a band-aid, I guess I really need to "reset" non-needed signals globally whenever I fork... sigh.
2010-07-26- use warnx instead of warn when skipping large lines, as errno isMiod Vallat
nonsensical in that case (and usually zero). - when altering the groups file, preserve a single "+" line instead of complaining it is incorrect and removing it. ok fgsch@ millert@ ray@
2010-07-26Fix a sigbus due to unaligned memory access, found when compacting onMartin Hedenfal
sparc64. reads ok to gilles@
2010-07-26typo (canacar@)Marc Espie
2010-07-26Fix some spacing / comment.Marcus Glocker
2010-07-26Always force GNU inline semantics here as well.Mark Kettenis
2010-07-26Make one more Sonix chipset cam work with 640x480 by a) adding it to theMarcus Glocker
UVIDEO_FLAG_FIX_MAX_VIDEO_FRAME_SIZE quirk list and b) cranking the manually calculated frame size by pixels * 4 bytes (discussed with jakemsr@).
2010-07-26Correct the links between threads, processes, pgrps, and sessions,Philip Guenthe
so that the process-level stuff is to/from struct process and not struct proc. This fixes a bunch of problem cases in rthreads. Based on earlier work by blambert and myself, but mostly written at c2k10. Tested by many: deraadt, sthen, krw, ray, and in snapshots
2010-07-25Add missing braces so a loop will function as intended.Jonathan Gray
ok dlg@
2010-07-25basic regress tests (based on test-19.c) for _Bool and _Complex supportPhilip Guenthe
2010-07-25In pmsi_setintellimode(), make sure we send commands withMiod Vallat
pckbc_enqueue_cmd() if interrupts are enabled at this point.
2010-07-25in the clock drivers, seperate the soft-state and hard-state which wasTheo de Raadt
all jumbled up in the same functions. the rtc (mc chip) and clock (i8243) startup was also mixed up. they the soft state and hardware state can be started in the right order, and it is easy to restart just the neccessary parts upon resume. tested in numerous cases: (apic, pic) * (GENERIC.MP, GENERIC) * (mp, non-mp) * (i386, amd64) ok kettenis
2010-07-25^U scrolls backwards, not forwards; from marrob at lavabit comJason McIntyre
2010-07-25Sync to bsd.lv; in particular, pull in lots of bug fixes.Ingo Schwarze
new features: * support the .in macro in man(7) * support minimal PDF output * support .Sm in mdoc(7) HTML output * support .Vb and .nf in man(7) HTML output * complete the mdoc(7) manual bug fixes: * do not let mdoc(7) .Pp produce a newline before/after .Sh; reported by jmc@ * avoid double blank lines related to man(7) .sp and .br * let man(7) .nf and .fi flush the line; reported by jsg@ and naddy@ * let "\ " produce a non-breaking space; reported by deraadt@ * discard \m colour escape sequences; reported by J.C. Roberts * map undefined 1-character-escapes to the literal character itself maintenance: * express mdoc(7) arguments in terms of an enum for additional type-safety * simplify mandoc_special() and a2roffdeco() * use strcspn in term_word() in place of a manual loop * minor optimisations in the -Tps and -Thtml formatting frontends
2010-07-25Missing SCSI_DATA_IN flag in dvd_read_copyright() causedKenneth R Westerback
confusion. Fixes at least my usb DVD reader and The Blue Tick.
2010-07-25Restore previous behaviour of always bzero()'ing the buf passed toKenneth R Westerback
scsi_inquire_vpd(). scsi_inquire_vpd() oddness noted by jsg@ after report of macppc problems by kili@.
2010-07-25When using GCC, we always want GNU inline semantics. Fixes issues withMark Kettenis
-Wsystem-headers and -std=c99, where GCC 4.2 would warn that it couldn't give us C99 inline semantics. ok guenther@, dcoppa@, millert@, deraadt@
2010-07-25syncMarcus Glocker
2010-07-25Add another uvideo(4) device which needs theMarcus Glocker
UVIDEO_FLAG_FIX_MAX_VIDEO_FRAME_SIZE quirk.
2010-07-25handle portslock. reminded by antoine@Marc Espie
2010-07-25echo behaves differently in sh and csh, only handling C-style escapesPhilip Guenthe
in the former, so switch an example that needs them to use printf instead. From bcr at freebsd.org. ok halex@
2010-07-25Let DVD's play again. Logic reversal prevented copyright reading.Kenneth R Westerback
Symptoms noted by oga@. actual bug spotted by dlg@
2010-07-25oopsMarc Espie
2010-07-24Add a newline to the input we feed to cpp to get rid of its 'no newlinePhilip Guenthe
at end of file' warnings. Simplify the shell quoting to make it easier to read while we're at it "looks allright" beck@
2010-07-24missed a couple indents in previousJacob Meuser
2010-07-24Mention that acpidock(4) sets up a sensor and that it can be used withMichael Knudsen
sensorsd to do actions when docking or undocking. ok jordan
2010-07-24Teach lint about C99's _Bool and _Complex, plus some related gccPhilip Guenthe
extensions: __real__ and __imag__ operators, the use of '~' for complex conjugation, and 'i' or 'j' as a suffix for complex constants. While this doesn't handle folding and overflow detection for complex constants correctly, it's good enough to make it through libm...and found several bugs once it could do so. "no objections" miod@, krw@
2010-07-24Switch hppa64 to timecounters.Mark Kettenis
2010-07-24Restore a needed 'return' removed in the last commit, and stylisticMatthew Dempsky
tweak to eliminate an 'else' clause.
2010-07-24When changing so that the client passes its stdout and stderr as well asNicholas Marriott
stdin up to the server, I forgot one essential point - the tmux server could now be both the producer and consumer. This happens when tmux is run inside tmux, as well as when piping tmux commands together. So, using stdio(3) was a bad idea - if sufficient data was written, this could block in write(2). When that happened and the server was both producer and consumer, it deadlocks. Change to use libevent bufferevents for the client stdin, stdout and stderr instead. This is trivial enough for output but requires a callback mechanism to trigger when stdin is finished. This relies on the underlying polling mechanism for libevent to work with whatever devices to which the user could redirect stdin, stdout or stderr, hence the change to use poll(2) over kqueue(2) for tmux.
2010-07-24Convert PCI addresses to proper 64-bit physical addresses.Mark Kettenis
2010-07-24kqueue(2) is currently broken when used with /dev/null and a few otherNicholas Marriott
devices. An upcoming fix for some problems with the client stdout/stderr handling relies on it working, so make tmux force libevent to use poll(2) via EVENT_NOKQUEUE, until we have fixed kqueue.
2010-07-24Make pmap_extract() work for large pages.Mark Kettenis
2010-07-24Don't sleep while holding the uvm_psel_lck mutex. Should fix "locking againstMark Kettenis
myself" panics that some people have seen over the last year-and-a-half. Cherry picked from a more complex (and therefore scarier) diff from oga@. ok tedu@, oga@
2010-07-24syncTheo de Raadt
2010-07-24move to 4.8-betaTheo de Raadt
2010-07-24Fix PTE_PAGE().Mark Kettenis
2010-07-24One the -> On theMiod Vallat
2010-07-24fix another race. vscsi_cmd checked if the adapter was running atDavid Gwynne
the start and queued the command for processing by userland later. the adapter could stop running between the check and the queue. this merges the state and queue mutexes and combines the check and queue ops in vscsi_cmd into the same critical section. tweaked by and ok matthew@
2010-07-24pass state to Makewhatis. With new hooks in there, that means displayMarc Espie
will integrate with pkg_add output (no more disturbed error messages from wrong subject lines)