espie [Wed, 28 Jul 2010 12:19:54 +0000 (12:19 +0000)]
pass state to Ustar objects, use it to display those pesky error and
fatal messages.
zap $opt_x from pkg_mklocated, do things like other commands do.
martinh [Wed, 28 Jul 2010 10:06:19 +0000 (10:06 +0000)]
Revert parts of previous change leading to assertion failure for
certain modify operations. Also fix logic error when replacing an attribute
with the empty set.
ray [Wed, 28 Jul 2010 09:07:11 +0000 (09:07 +0000)]
Make BUFs autoextend by default. This was already done in OpenCVS
a while ago.
OK zinovik nicm
ray [Wed, 28 Jul 2010 09:00:20 +0000 (09:00 +0000)]
Sync hcreate(3) with NetBSD, adding some caveats.
OK jmc
mlarkin [Wed, 28 Jul 2010 07:32:16 +0000 (07:32 +0000)]
Delay a little longer on suspend before giving up. Fixes machines that
sometimes don't suspend because the sleep transition takes too long
(symptoms like failing to sleep but the backlight stays on).
ok deraadt@
dlg [Wed, 28 Jul 2010 06:52:05 +0000 (06:52 +0000)]
pfsync_bulk_fail was mucking around with pfsync_softc and sending packets
without holding splsoftnet. this adds the necessary protection.
reported by patrick coleman
krw [Wed, 28 Jul 2010 01:53:12 +0000 (01:53 +0000)]
No need to bzero() malloc'd memory if we used M_ZERO.
ok matthew@
deraadt [Tue, 27 Jul 2010 23:36:35 +0000 (23:36 +0000)]
remove an ancient XXX
deraadt [Tue, 27 Jul 2010 23:33:21 +0000 (23:33 +0000)]
remove XXX; EC can now be attached early when needed; ok jordan
deraadt [Tue, 27 Jul 2010 22:58:48 +0000 (22:58 +0000)]
more brackets feels good
deraadt [Tue, 27 Jul 2010 22:57:48 +0000 (22:57 +0000)]
XXX annotate a block in acpi_enter_sleep_state() that is pretty worrying
deraadt [Tue, 27 Jul 2010 22:57:22 +0000 (22:57 +0000)]
do not match a 2nd EC if something horrible happens; ok marco
deraadt [Tue, 27 Jul 2010 22:39:59 +0000 (22:39 +0000)]
ca_activate handler for suspend/resume. untested -- if someone tests
this let me know.
marco [Tue, 27 Jul 2010 22:32:51 +0000 (22:32 +0000)]
Spaces vs tab
marco [Tue, 27 Jul 2010 22:29:09 +0000 (22:29 +0000)]
Remove a stray space. No binary change.
deraadt [Tue, 27 Jul 2010 22:11:44 +0000 (22:11 +0000)]
horrific indentation that nearly made me puke
todd [Tue, 27 Jul 2010 21:56:11 +0000 (21:56 +0000)]
spacing; ok deraadt@
marco [Tue, 27 Jul 2010 21:55:54 +0000 (21:55 +0000)]
Revert 1.34 certain systems need the parent ec pointer initialized earlier.
This fixes acpi interrupts on the latitude e6500.
Tested on e6500 and x61.
debugged with, and ok jordan
deraadt [Tue, 27 Jul 2010 21:40:40 +0000 (21:40 +0000)]
spacing
todd [Tue, 27 Jul 2010 21:35:51 +0000 (21:35 +0000)]
add bce_activate(), suspends and resumes on my laptop
ok deraadt@
kettenis [Tue, 27 Jul 2010 20:53:39 +0000 (20:53 +0000)]
Make sure we stop DMA before we suspend. Remove unused argument to re_stop()
to avoid the dilemma what meaningless value to pass.
ok deraadt@
guenther [Tue, 27 Jul 2010 20:07:56 +0000 (20:07 +0000)]
Fix compilation on gcc2 platforms, where _Bool and _Complex aren't
built into the compiler and instead have to be gotten from stdbool.h
and complex.h
Problem noted by miod@, fix by deraadt@
kettenis [Tue, 27 Jul 2010 19:38:18 +0000 (19:38 +0000)]
Make sure we stop DMA before we suspend.
ok deraadt@
deraadt [Tue, 27 Jul 2010 19:28:03 +0000 (19:28 +0000)]
sync
deraadt [Tue, 27 Jul 2010 17:34:26 +0000 (17:34 +0000)]
ca_activate function for suspend/resume
tested by mlarkin
stsp [Tue, 27 Jul 2010 16:59:03 +0000 (16:59 +0000)]
Replace the single-byte placeholders for the multi-byte/wide-character
conversion interfaces of libc (mbrtowc(3) and friends) with new
implementations that internally call an API based on NetBSD's citrus.
This allows us to support locales with multi-byte character encodings.
Provide two implementations of the citrus-based API: one based on the old
single-byte placeholders for use with our existing single-byte character
locales (C, ISO8859-*, KOI8, CP1251, etc.), and one that provides support
for UTF-8 encoded characters (code based on FreeBSD's implementation).
Install the en_US.UTF-8 ctype locale support file, and allow the UTF-8
ctype locale to be enabled via setlocale(3) (export LC_CTYPE='en_US.UTF-8').
A lot of programs, especially from ports, will now start using UTF-8 if the
UTF-8 locale is enabled. Use at your own risk, and please report any breakage.
Note that ncurses-based programs cannot display UTF-8 right now, this is being
worked on.
To prevent install media growth, add vfprintf(3) and mbrtowc(3) to libstubs.
The mbrtowc stub was copied unchanged from its old single-byte placeholder.
vfprintf.c doesn't need to be copied, just put in .PATH (hint by fgsch@).
Testing by myself, naddy, sthen, nicm, espie, armani, Dmitrij D. Czarkoff.
ok matthieu espie millert sthen nicm deraadt
deraadt [Tue, 27 Jul 2010 16:53:10 +0000 (16:53 +0000)]
delete a #if 0 chunk which was used for early development and will never
be reused
ok jordan
mlarkin [Tue, 27 Jul 2010 16:20:17 +0000 (16:20 +0000)]
Set the sleeping indicator light on machines that support it, in case SMI
doesn't do it for us. Shows the 'moon' LED on older Thinkpads when
sleeping.
Tested on T43p, W500, T510 by me and on X61s by deraadt@.
ok deraadt@
jmc [Tue, 27 Jul 2010 09:27:35 +0000 (09:27 +0000)]
properly escape some "!"; reported by kristaps
espie [Tue, 27 Jul 2010 09:09:43 +0000 (09:09 +0000)]
print these better
martinh [Tue, 27 Jul 2010 08:37:33 +0000 (08:37 +0000)]
Add ldapd to rc and rc.conf. Enable it at boot with ldapd_flags=.
ok deraadt@ gilles@
mlarkin [Tue, 27 Jul 2010 07:42:34 +0000 (07:42 +0000)]
Repost ATI Radeon HD4500 on HP Pavilion dv7-3160us using the emulator,
in the same style we have done for all other ATI Radeon devices found so
far. Fixes video on said machine on resume.
jmc [Tue, 27 Jul 2010 07:04:04 +0000 (07:04 +0000)]
fix some spacing issues; noted by kristaps
deraadt [Tue, 27 Jul 2010 06:12:50 +0000 (06:12 +0000)]
annoying spaces getting in the way
jordan [Tue, 27 Jul 2010 05:17:36 +0000 (05:17 +0000)]
Early initialization of acpiec if ECDT table exists
Fixes hang when booting thinkpads while docked
ok deraadt
matthew [Tue, 27 Jul 2010 04:41:56 +0000 (04:41 +0000)]
Add scsi_cmd_rw_decode() for decoding any SCSI READ or WRITE command,
and update atascsi(4) to make use of it. (Other HBAs will be updated
post-release.) Should allow for use of SATA drives with >2^32 LBAs.
ok deraadt@, dlg@, krw@
marco [Tue, 27 Jul 2010 04:28:36 +0000 (04:28 +0000)]
replace acpitz_getreading goo with proper aml_evalinteger.
From jordan.
dlg [Tue, 27 Jul 2010 04:17:10 +0000 (04:17 +0000)]
the queue entry and state variables in the xsh and ioh structs are part
of a separate struct which the ioh struct includes for no good reason
anymore. just put the vars directly in the ioh.
this removes this useless abstraction.
ok krw@ matthew@
canacar [Tue, 27 Jul 2010 04:13:34 +0000 (04:13 +0000)]
Properly handle the size field in pflog link header
when generating the filter. This will allow the pflog
header to be extended without adding a new link type.
No change to generated code for other link types.
ok henning@
krw [Tue, 27 Jul 2010 02:00:36 +0000 (02:00 +0000)]
Fix #ifdef DDB/#ifdef SMALL_KERNEL uses so all four combinations
(DDB/SMALL_KERNEL, DDB/!SMALL_KERNEL, !DDB/!SMALL_KERNEL,
!DDB/SMALL_KERNEL) can compile. A DDB bsd.rd is thus possible again.
Correction to my original diff from miod@
"If it compiles, commit" deraadt@
jordan [Tue, 27 Jul 2010 01:21:19 +0000 (01:21 +0000)]
Add additional Notify handler for dock devices, according to ACPI spec
ok marco
krw [Tue, 27 Jul 2010 00:49:42 +0000 (00:49 +0000)]
Align FFS filesystem start and end sectors so the start is on a
bsize boundary and the end fills up the last bsize chunk.
Don't change the start sector if it is the first sector of the
OpenBSD portion of the disk.
Don't attempt to align on SUN_CYLCHECK architectures. They are
attempting a different alignment.
This is an attempt to ensure that FFS i/o's are aligned for optimal
performance on newer disks that lie about their sector size.
deraadt [Tue, 27 Jul 2010 00:40:19 +0000 (00:40 +0000)]
acpiasus for amd64 too, Henri Kemppainen
krw [Tue, 27 Jul 2010 00:07:26 +0000 (00:07 +0000)]
Nuke 'sectoffset'. A stub variable no longer used except to supply
the value 0 to one function call. Use 0 there, eliminate the
variable and the pointless verbose verbiage that always displayed
the same value.
ok deraadt@ matthew@
deraadt [Tue, 27 Jul 2010 00:03:03 +0000 (00:03 +0000)]
ca_activate function brings eeepc 1000HE back after resume.
tested by krw
espie [Mon, 26 Jul 2010 23:28:06 +0000 (23:28 +0000)]
better progress_message
espie [Mon, 26 Jul 2010 23:27:28 +0000 (23:27 +0000)]
typo in message
jakemsr [Mon, 26 Jul 2010 23:17:19 +0000 (23:17 +0000)]
recording/full-duplex support
ok kettenis
deraadt [Mon, 26 Jul 2010 22:21:59 +0000 (22:21 +0000)]
ca_activate function brings eeepc701 network back after resume.
tested by oga
mk [Mon, 26 Jul 2010 22:17:13 +0000 (22:17 +0000)]
Microsoft LifeCam needs the framesize quirk as well.
ok mglocker
mk [Mon, 26 Jul 2010 22:15:50 +0000 (22:15 +0000)]
sync
mk [Mon, 26 Jul 2010 22:15:19 +0000 (22:15 +0000)]
Add Microsoft LifeCam.
jmc [Mon, 26 Jul 2010 21:31:34 +0000 (21:31 +0000)]
fix SYNOPSIS (yes, there are still some issues here);
jmc [Mon, 26 Jul 2010 21:14:39 +0000 (21:14 +0000)]
- fix a spacing issue in SYNOPSIS
- occurence -> occurrence
jmc [Mon, 26 Jul 2010 20:49:12 +0000 (20:49 +0000)]
various small fixes; kristaps has committed this upstream already
ok schwarze
jakemsr [Mon, 26 Jul 2010 20:06:12 +0000 (20:06 +0000)]
simplify the mixer(4) code and interface. document the interface.
ok kettenis
guenther [Mon, 26 Jul 2010 19:58:58 +0000 (19:58 +0000)]
Turn on -Wsystem-headers by default, so that glitches in our headers
aren't silently ignored but rather get warned about and fixed. Purely
stylistic warnings like -Wredundant-decls are your own problem however.
testing help from landry@, header fixes from kettenis@
ok deraadt@
jordan [Mon, 26 Jul 2010 19:54:06 +0000 (19:54 +0000)]
Remove unused structure members
deraadt [Mon, 26 Jul 2010 19:50:20 +0000 (19:50 +0000)]
sync
kettenis [Mon, 26 Jul 2010 19:21:24 +0000 (19:21 +0000)]
Make sure we stop DMA before suspend instead of doing it as the first thing
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@
kettenis [Mon, 26 Jul 2010 17:46:29 +0000 (17:46 +0000)]
Some machines include VID devices for hardware that doesn't exist. Avoid
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@
deraadt [Mon, 26 Jul 2010 17:25:44 +0000 (17:25 +0000)]
remove merge error which was commited
jmc [Mon, 26 Jul 2010 16:43:59 +0000 (16:43 +0000)]
- replace SP with sp calls. this was defined within cvs.1, but unsupported
by mandoc; diff from kristaps
- while here, fix a bad width specifier
jmc [Mon, 26 Jul 2010 16:34:53 +0000 (16:34 +0000)]
sync description of acpisony w/ man page;
jmc [Mon, 26 Jul 2010 16:20:15 +0000 (16:20 +0000)]
last item of SEE ALSO should not have a comma;
deraadt [Mon, 26 Jul 2010 15:00:43 +0000 (15:00 +0000)]
Xr acpisony, and make the name better
jmc [Mon, 26 Jul 2010 14:53:59 +0000 (14:53 +0000)]
fix the Cecil Beaton quote; from Rob Farmer, freebsd pr #148916
pirofti [Mon, 26 Jul 2010 11:29:23 +0000 (11:29 +0000)]
Add support for Sony ACPI hotkeys via a new driver: acpisony(4).
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@.
espie [Mon, 26 Jul 2010 10:59:32 +0000 (10:59 +0000)]
even if you write signal handlers to not do anything stupid when you're
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.
miod [Mon, 26 Jul 2010 10:55:17 +0000 (10:55 +0000)]
- use warnx instead of warn when skipping large lines, as errno is
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@
martinh [Mon, 26 Jul 2010 09:27:14 +0000 (09:27 +0000)]
Fix a sigbus due to unaligned memory access, found when compacting on
sparc64.
reads ok to gilles@
espie [Mon, 26 Jul 2010 07:28:29 +0000 (07:28 +0000)]
typo (canacar@)
mglocker [Mon, 26 Jul 2010 07:12:21 +0000 (07:12 +0000)]
Fix some spacing / comment.
kettenis [Mon, 26 Jul 2010 07:08:22 +0000 (07:08 +0000)]
Always force GNU inline semantics here as well.
mglocker [Mon, 26 Jul 2010 07:01:08 +0000 (07:01 +0000)]
Make one more Sonix chipset cam work with 640x480 by a) adding it to the
UVIDEO_FLAG_FIX_MAX_VIDEO_FRAME_SIZE quirk list and b) cranking the
manually calculated frame size by pixels * 4 bytes (discussed with
jakemsr@).
guenther [Mon, 26 Jul 2010 01:56:27 +0000 (01:56 +0000)]
Correct the links between threads, processes, pgrps, and sessions,
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
jsg [Sun, 25 Jul 2010 23:36:31 +0000 (23:36 +0000)]
Add missing braces so a loop will function as intended.
ok dlg@
guenther [Sun, 25 Jul 2010 23:00:05 +0000 (23:00 +0000)]
basic regress tests (based on test-19.c) for _Bool and _Complex support
miod [Sun, 25 Jul 2010 22:46:17 +0000 (22:46 +0000)]
In pmsi_setintellimode(), make sure we send commands with
pckbc_enqueue_cmd() if interrupts are enabled at this point.
deraadt [Sun, 25 Jul 2010 21:43:35 +0000 (21:43 +0000)]
in the clock drivers, seperate the soft-state and hard-state which was
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
jmc [Sun, 25 Jul 2010 20:23:41 +0000 (20:23 +0000)]
^U scrolls backwards, not forwards; from marrob at lavabit com
schwarze [Sun, 25 Jul 2010 18:05:54 +0000 (18:05 +0000)]
Sync to bsd.lv; in particular, pull in lots of bug fixes.
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
krw [Sun, 25 Jul 2010 16:34:41 +0000 (16:34 +0000)]
Missing SCSI_DATA_IN flag in dvd_read_copyright() caused
confusion. Fixes at least my usb DVD reader and The Blue Tick.
krw [Sun, 25 Jul 2010 15:39:32 +0000 (15:39 +0000)]
Restore previous behaviour of always bzero()'ing the buf passed to
scsi_inquire_vpd(). scsi_inquire_vpd() oddness noted by jsg@ after
report of macppc problems by kili@.
kettenis [Sun, 25 Jul 2010 15:35:29 +0000 (15:35 +0000)]
When using GCC, we always want GNU inline semantics. Fixes issues with
-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@
mglocker [Sun, 25 Jul 2010 11:20:37 +0000 (11:20 +0000)]
sync
mglocker [Sun, 25 Jul 2010 11:20:06 +0000 (11:20 +0000)]
Add another uvideo(4) device which needs the
UVIDEO_FLAG_FIX_MAX_VIDEO_FRAME_SIZE quirk.
espie [Sun, 25 Jul 2010 08:49:03 +0000 (08:49 +0000)]
handle portslock. reminded by antoine@
guenther [Sun, 25 Jul 2010 07:51:39 +0000 (07:51 +0000)]
echo behaves differently in sh and csh, only handling C-style escapes
in the former, so switch an example that needs them to use printf instead.
From bcr at freebsd.org.
ok halex@
krw [Sun, 25 Jul 2010 05:35:42 +0000 (05:35 +0000)]
Let DVD's play again. Logic reversal prevented copyright reading.
Symptoms noted by oga@. actual bug spotted by dlg@
espie [Sun, 25 Jul 2010 05:20:34 +0000 (05:20 +0000)]
oops
guenther [Sat, 24 Jul 2010 23:32:52 +0000 (23:32 +0000)]
Add a newline to the input we feed to cpp to get rid of its 'no newline
at end of file' warnings. Simplify the shell quoting to make it easier
to read while we're at it
"looks allright" beck@
jakemsr [Sat, 24 Jul 2010 22:48:28 +0000 (22:48 +0000)]
missed a couple indents in previous
mk [Sat, 24 Jul 2010 22:18:58 +0000 (22:18 +0000)]
Mention that acpidock(4) sets up a sensor and that it can be used with
sensorsd to do actions when docking or undocking.
ok jordan
guenther [Sat, 24 Jul 2010 22:17:03 +0000 (22:17 +0000)]
Teach lint about C99's _Bool and _Complex, plus some related gcc
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@
kettenis [Sat, 24 Jul 2010 21:27:57 +0000 (21:27 +0000)]
Switch hppa64 to timecounters.
matthew [Sat, 24 Jul 2010 20:15:31 +0000 (20:15 +0000)]
Restore a needed 'return' removed in the last commit, and stylistic
tweak to eliminate an 'else' clause.
nicm [Sat, 24 Jul 2010 20:11:59 +0000 (20:11 +0000)]
When changing so that the client passes its stdout and stderr as well as
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.
kettenis [Sat, 24 Jul 2010 19:34:54 +0000 (19:34 +0000)]
Convert PCI addresses to proper 64-bit physical addresses.
nicm [Sat, 24 Jul 2010 19:25:31 +0000 (19:25 +0000)]
kqueue(2) is currently broken when used with /dev/null and a few other
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.