openbsd
14 years ago* Comment poll support in conf.h
mglocker [Thu, 15 Jul 2010 04:46:33 +0000 (04:46 +0000)]
* Comment poll support in conf.h
* Comment why we call the video interrupt in the mmap interface now in
uvideo.c

14 years agoadd two new members to structs audio_encoding and audio_prinfo.
jakemsr [Thu, 15 Jul 2010 03:43:11 +0000 (03:43 +0000)]
add two new members to structs audio_encoding and audio_prinfo.
for both structs, the new members are 'bps' and 'msb', which
describe the number of bytes per sample and data alignment in the
sample, respectively.  drivers must properly set these fields in
the 'query_encoding', 'set_parameters' and 'get_default_params'
hardware interface methods.

discussed with ratchov, deraadt

14 years agolimit the pools from 14 bits down. We cannot use PAGE_SIZE because it
deraadt [Thu, 15 Jul 2010 03:20:47 +0000 (03:20 +0000)]
limit the pools from 14 bits down.  We cannot use PAGE_SIZE because it
is a variable on sparc.  This should be revisited... after the arguments
for pagesize vs 4K complete :)

14 years agothe uvm_km_putpage is calling into tangly uvm guts again on not pmap direct.
tedu [Thu, 15 Jul 2010 00:14:17 +0000 (00:14 +0000)]
the uvm_km_putpage is calling into tangly uvm guts again on not pmap direct.
go back to something more like the previous design, and have the thread do
the heavy lifting.  solves vmmaplk panics.
ok deraadt oga thib
[and even simple diffs are hard to get perfect. help from mdempsky and deraadt]

14 years agosync
sthen [Wed, 14 Jul 2010 23:54:14 +0000 (23:54 +0000)]
sync

14 years agosync from mirrors.dat
sthen [Wed, 14 Jul 2010 23:47:54 +0000 (23:47 +0000)]
sync from mirrors.dat

14 years agopass the correct af if not specified.
dhill [Wed, 14 Jul 2010 23:44:41 +0000 (23:44 +0000)]
pass the correct af if not specified.

fixes printing active connections twice.

ok claudio@

14 years agoReturn -1 on error as advertised.
ray [Wed, 14 Jul 2010 22:15:57 +0000 (22:15 +0000)]
Return -1 on error as advertised.
Handle case when only one stream failed.

OK otto, millert

14 years agoimplement poll() for video(4)
jakemsr [Wed, 14 Jul 2010 21:24:33 +0000 (21:24 +0000)]
implement poll() for video(4)
ok mglocker

14 years agoThe append side of a socketbuffer is not allowed to call sbflush().
claudio [Wed, 14 Jul 2010 20:56:35 +0000 (20:56 +0000)]
The append side of a socketbuffer is not allowed to call sbflush().
Learned the hard way. dlg@ confirmed that it is save to just remove them,
the desync will still work but the reader needs to dequeue all packets first.

14 years agoIn urndis_decap(), delay the memcpy() for as long as possible. There is
mk [Wed, 14 Jul 2010 20:44:17 +0000 (20:44 +0000)]
In urndis_decap(), delay the memcpy() for as long as possible.  There is
no point in copying before having done the final sanity check (we copied
before the last one).

ok armani

14 years agourndis_newbuf() is only called with NULL as it's third argument so just
mk [Wed, 14 Jul 2010 20:21:55 +0000 (20:21 +0000)]
urndis_newbuf() is only called with NULL as it's third argument so just
get rid of it.

ok armani

14 years agoNewer 8168x and 810x chipsets have a different way of stopping the chipset.
naddy [Wed, 14 Jul 2010 19:24:27 +0000 (19:24 +0000)]
Newer 8168x and 810x chipsets have a different way of stopping the chipset.
From FreeBSD via Brad.

14 years agoMake pane/window wrapping more logical (so with 10 windows, +10 from
nicm [Wed, 14 Jul 2010 18:37:49 +0000 (18:37 +0000)]
Make pane/window wrapping more logical (so with 10 windows, +10 from
window 5 stays in the same place), and tidy the code. From Tiago Cunha.

14 years agoAnother hand knitted offsetof() that needs to die. This time steal the
claudio [Wed, 14 Jul 2010 17:09:13 +0000 (17:09 +0000)]
Another hand knitted offsetof() that needs to die. This time steal the
mask2prefixlen6 version from bgpd.

14 years agofinally ssh synopsis looks nice again! this commit just removes a ton of
jmc [Wed, 14 Jul 2010 17:06:58 +0000 (17:06 +0000)]
finally ssh synopsis looks nice again! this commit just removes a ton of
hacks we had in place to make it work with old groff;

14 years agouse offsetof() instead of self knitted version to please gcc4.
claudio [Wed, 14 Jul 2010 17:06:52 +0000 (17:06 +0000)]
use offsetof() instead of self knitted version to please gcc4.
stolen from ospf.h

14 years agoZero the pitem array so checking items after those used works as
nicm [Wed, 14 Jul 2010 13:13:42 +0000 (13:13 +0000)]
Zero the pitem array so checking items after those used works as
expected, also do not look beyond the size of the array.

ok otto deraadt

14 years agoLet vga_pci.c build in kernel configs without acpi. ok kettenis@
matthieu [Wed, 14 Jul 2010 11:21:53 +0000 (11:21 +0000)]
Let vga_pci.c build in kernel configs without acpi. ok kettenis@

14 years agoEliminate some unused malloc(9) type defines. Also get rid of the
matthew [Wed, 14 Jul 2010 10:31:54 +0000 (10:31 +0000)]
Eliminate some unused malloc(9) type defines.  Also get rid of the
mysterious and unused mbtypes[] array in mbuf.h.

ok tedu@, deraadt@

14 years agoFix a mrt fd leak by moving the block which closes finished dumps.
claudio [Wed, 14 Jul 2010 09:00:08 +0000 (09:00 +0000)]
Fix a mrt fd leak by moving the block which closes finished dumps.
The previous location also depended on poll results and in most cases was
therefor not entered because finished dumps are not added to the poll array.
Problem reported by Peter Haag, OK henning@

14 years agoadd regress tests for upcoming redirection changes to ftp
halex [Wed, 14 Jul 2010 06:19:26 +0000 (06:19 +0000)]
add regress tests for upcoming redirection changes to ftp

14 years agoSCSI HBA drivers need to report success/error through xs, not xs->bp.
matthew [Wed, 14 Jul 2010 06:16:04 +0000 (06:16 +0000)]
SCSI HBA drivers need to report success/error through xs, not xs->bp.
By trying to do the latter, ioprbs(4) was inadvertently always
signalling to the SCSI mid and upper layers that read/write requests
succeeded, even if they failed or only partially completed.

Light testing by claudio@, which is still way more effort than this
driver deserved.

14 years agohandle printing of RTM_DESYNC in route monitor.
dlg [Wed, 14 Jul 2010 01:23:04 +0000 (01:23 +0000)]
handle printing of RTM_DESYNC in route monitor.

reviewed by deraadt@
written by sthen@ who said i should commit it cos he was going to sleep.

14 years agohandle RTM_DESYNC. if the kernel says we're out of sync with the kernel
dlg [Wed, 14 Jul 2010 01:00:32 +0000 (01:00 +0000)]
handle RTM_DESYNC. if the kernel says we're out of sync with the kernel
routing table and interface list, do a reload of the kernel state.

ive been running this in production for 2 or 3 weeks.
tested by sthen@
ok sthen@ claudio@ deraadt@
code written by andrew sallaway at the univeristy of queensland.

14 years agoif we produce a lot of rtsock messages it is possible we will hit a
dlg [Wed, 14 Jul 2010 00:42:57 +0000 (00:42 +0000)]
if we produce a lot of rtsock messages it is possible we will hit a
condition that prevents us from queuing it, which in turn means that
processes listening on the routing socket for changes to the kernel state
will get out of sync. currently this is handled by the following comment:

/* should notify about lost packet */

this change introduces a new rtsock message called RTM_DESYNC that
notifies about lost packets and uses it instead of this comment.

when we detect loss we flush all the message in the routing socket and
attempt to queue an RTM_DESYNC message instead. to guarantee that we will
enqueue DESYNC we keep trying it when an attempt to enqueue or dequeue
any messages is made, and in the worst case a timeout tries to guarantee
that desync is added to the socket.

ive been running this in production for 2 or 3 weeks.
tested by sthen@
ok sthen@ claudio@ deraadt@
code written by andrew sallaway at the univeristy of queensland.

14 years agooops; Fred Crowson
deraadt [Wed, 14 Jul 2010 00:15:07 +0000 (00:15 +0000)]
oops; Fred Crowson

14 years agos/timing_safe_cmp/timingsafe_bcmp/g
djm [Tue, 13 Jul 2010 23:13:16 +0000 (23:13 +0000)]
s/timing_safe_cmp/timingsafe_bcmp/g

14 years agoupdate our recommended hash function to sha256 and note md5 is broken.
tedu [Tue, 13 Jul 2010 22:34:45 +0000 (22:34 +0000)]
update our recommended hash function to sha256 and note md5 is broken.
ok deraadt jmc millert sobrado

14 years agouse PHY semaphore on 8275/82576 adapters in addition to 80003es2lan.
jsg [Tue, 13 Jul 2010 21:55:52 +0000 (21:55 +0000)]
use PHY semaphore on 8275/82576 adapters in addition to 80003es2lan.
From SAITOH Masanobu.
Confirmed to fix pr 6427, and should fix 6301 as well.

Tested by a bunch of people, and discussed with claudio
during c2k10.

14 years agoDon't silently overwrite untracked local files with newly-added
nicm [Tue, 13 Jul 2010 21:33:44 +0000 (21:33 +0000)]
Don't silently overwrite untracked local files with newly-added
repository files.

slightly earlier version ok zinovik xsa

14 years agoTest for the awesome let's-silently-overwrite-local-files bug.
nicm [Tue, 13 Jul 2010 21:31:17 +0000 (21:31 +0000)]
Test for the awesome let's-silently-overwrite-local-files bug.

14 years agodelete unnccessary include
deraadt [Tue, 13 Jul 2010 21:10:50 +0000 (21:10 +0000)]
delete unnccessary include

14 years agorename some thread related interfaces so they are logical
deraadt [Tue, 13 Jul 2010 21:01:05 +0000 (21:01 +0000)]
rename some thread related interfaces so they are logical

14 years agoregress for merge bug.
nicm [Tue, 13 Jul 2010 20:47:56 +0000 (20:47 +0000)]
regress for merge bug.

14 years agoDo not put the file into conflict if it is no longer modified (user has
nicm [Tue, 13 Jul 2010 20:47:19 +0000 (20:47 +0000)]
Do not put the file into conflict if it is no longer modified (user has
edited it back to repository state).

ok zinovik

14 years agoPR 6423 fix for cvs too, requested by xsa@.
nicm [Tue, 13 Jul 2010 20:41:55 +0000 (20:41 +0000)]
PR 6423 fix for cvs too, requested by xsa@.

14 years agoDon't read before the beginning of the log message if it is zero-length
nicm [Tue, 13 Jul 2010 20:07:24 +0000 (20:07 +0000)]
Don't read before the beginning of the log message if it is zero-length
(possible when it comes from stdin).

Tweaked version of a fix from Peter Hendrickson in PR 6423.

ok deraadt

14 years agofix overflow of dirsize; from FreeBSD; PR 6426; ok beck@ millert@
otto [Tue, 13 Jul 2010 18:52:25 +0000 (18:52 +0000)]
fix overflow of dirsize; from FreeBSD; PR 6426; ok beck@ millert@

14 years agoDo not put a data buffer on the stack; malloc it (we will use dma_alloc
deraadt [Tue, 13 Jul 2010 16:50:26 +0000 (16:50 +0000)]
Do not put a data buffer on the stack; malloc it (we will use dma_alloc
later, when we trust it)
ok matthew

14 years agoneed pool.h to initialize the dma allocator
deraadt [Tue, 13 Jul 2010 16:49:16 +0000 (16:49 +0000)]
need pool.h to initialize the dma allocator

14 years agodma_alloc() and dma_free(). This is a thin shim on top of a bag of
deraadt [Tue, 13 Jul 2010 16:47:02 +0000 (16:47 +0000)]
dma_alloc() and dma_free().  This is a thin shim on top of a bag of
pools, sized by powers of 2, which are constrained to dma memory.
ok matthew tedu thib

14 years agohandle Tm, like in tiff2ps
espie [Tue, 13 Jul 2010 15:39:03 +0000 (15:39 +0000)]
handle Tm, like in tiff2ps

14 years agowork around a strange problem in locality of @_ by copying stuff.
espie [Tue, 13 Jul 2010 15:38:27 +0000 (15:38 +0000)]
work around a strange problem in locality of @_ by copying stuff.
okay millert@

14 years agoFix (pflow) display in rule printing. Spotted by dhill@, ok henning@
sthen [Tue, 13 Jul 2010 13:11:57 +0000 (13:11 +0000)]
Fix (pflow) display in rule printing. Spotted by dhill@, ok henning@

14 years agoFix dmesg printing.
kettenis [Tue, 13 Jul 2010 13:07:35 +0000 (13:07 +0000)]
Fix dmesg printing.

ok krw@, claudio@

14 years ago- find.fp_wsize *= find.fp_mss, 1;
henning [Tue, 13 Jul 2010 12:56:06 +0000 (12:56 +0000)]
-                       find.fp_wsize *= find.fp_mss, 1;
+                       find.fp_wsize *= find.fp_mss;
From: Ed Schouten <ed at FreeBSD.org>

14 years agoAvoid double free in ldap modify requests. The values received in the
martinh [Tue, 13 Jul 2010 12:54:51 +0000 (12:54 +0000)]
Avoid double free in ldap modify requests. The values received in the
modify request is linked into the stored ber structure, and then both are
freed. Fix this by unlinking the values from the request.

14 years agoWhen cleaning /tmp at boot, run the slower find unconditionally.
sthen [Tue, 13 Jul 2010 12:28:13 +0000 (12:28 +0000)]
When cleaning /tmp at boot, run the slower find unconditionally.
Previously if the quick rm -rf failed, find was not run, so some files
were not removed. Looks good to tedu@.

14 years agoimplement a timing_safe_cmp() function to compare memory without leaking
djm [Tue, 13 Jul 2010 11:52:06 +0000 (11:52 +0000)]
implement a timing_safe_cmp() function to compare memory without leaking
timing information by short-circuiting like memcmp() and use it for
some of the more sensitive comparisons (though nothing high-value was
readily attackable anyway); "looks ok" markus@

14 years agoFix a broken mask for core temperature 1 and 2, and bias properly for degC.
mlarkin [Tue, 13 Jul 2010 07:33:10 +0000 (07:33 +0000)]
Fix a broken mask for core temperature 1 and 2, and bias properly for degC.

Tested on Thinkpad T510.

14 years agono more rmd160(1);
jmc [Tue, 13 Jul 2010 07:01:23 +0000 (07:01 +0000)]
no more rmd160(1);

14 years agono need for userland to refer to section 2/3 pages;
jmc [Tue, 13 Jul 2010 06:57:37 +0000 (06:57 +0000)]
no need for userland to refer to section 2/3 pages;

14 years agosync
deraadt [Tue, 13 Jul 2010 06:03:59 +0000 (06:03 +0000)]
sync

14 years agoFix PR 6417: if we're starting a thread and there's no other threads
guenther [Tue, 13 Jul 2010 04:24:46 +0000 (04:24 +0000)]
Fix PR 6417: if we're starting a thread and there's no other threads
running, then we need to start a gc thread...except when this is
the very call to start a gc thread!

"This works for me" marc@

14 years agoFix PR 6376: restore more thread library state if execve fails,
guenther [Tue, 13 Jul 2010 03:10:29 +0000 (03:10 +0000)]
Fix PR 6376: restore more thread library state if execve fails,
including the scheduling timer, sigmask, fd nonblocking status, and
handling of the signals used by the thread library.

ok marc@, additional testing by ajacoutot@

14 years agoMerge release 1.10.4 (all code by kristaps@), providing four new features:
schwarze [Tue, 13 Jul 2010 01:09:12 +0000 (01:09 +0000)]
Merge release 1.10.4 (all code by kristaps@), providing four new features:
1) Proper .Bk support: allow output line breaks at input line breaks,
but keep input lines together in the output, finally fixing
synopses like aucat(1), mail(1) and tmux(1).
2) Mostly finished -Tps (PostScript) output.
3) Implement -Thtml output for .Nm blocks and .Bk -words.
4) Allow iterative interpolation of user-defined roff(7) strings.
Also contains some minor bugfixes and some performance improvements.

14 years agoCorrect comment. scsi_sense_data is now 18 bytes, not 32.
krw [Tue, 13 Jul 2010 00:30:30 +0000 (00:30 +0000)]
Correct comment. scsi_sense_data is now 18 bytes, not 32.

14 years agoreplace rmd160 links with sha256. it's way more popular and more better, too.
tedu [Mon, 12 Jul 2010 23:16:55 +0000 (23:16 +0000)]
replace rmd160 links with sha256.  it's way more popular and more better, too.
too many oks to enumerate.
while here, add Xr to the relevant libc functions in each page.

14 years agoexpand %h to the hostname in ssh_config Hostname options. While this
djm [Mon, 12 Jul 2010 22:41:13 +0000 (22:41 +0000)]
expand %h to the hostname in ssh_config Hostname options. While this
sounds useless, it is actually handy for working with unqualified
hostnames:

Host *.*
Hostname %h
Host *
Hostname %h.example.org

"I like it" markus@

14 years agoMake ExitOnForwardFailure work with fork-after-authentication ("ssh -f")
djm [Mon, 12 Jul 2010 22:38:52 +0000 (22:38 +0000)]
Make ExitOnForwardFailure work with fork-after-authentication ("ssh -f")
for protocol 2. ok markus@

14 years agoUpdate to 1.4.14b.
nicm [Mon, 12 Jul 2010 18:03:38 +0000 (18:03 +0000)]
Update to 1.4.14b.

From their change log:
 o Fix memory-leak of signal handler array with kqueue. [backport]
 o Make evutil_make_socket_nonblocking() leave any other flags alone.
 o Adjusted fcntl() retval comparison on evutil_make_socket_nonblocking().
 o Re-add event_siglcb; some old code _was_ still using it. :(
 o Fix a free(NULL) in min_heap.h
 o Clean up properly when adding a signal handler fails.

Also a local change to use an int rather than a long for fcntl().

ok guenther deraadt

14 years agodocument gcc4; requested by brad
jmc [Mon, 12 Jul 2010 16:28:29 +0000 (16:28 +0000)]
document gcc4; requested by brad

14 years agoksh.1: add ((, )), ]], and `name' to the list of reserved words for compounds
jmc [Mon, 12 Jul 2010 16:26:45 +0000 (16:26 +0000)]
ksh.1: add ((, )), ]], and `name' to the list of reserved words for compounds
sh.1: add ]] and `name' to the list; additionally document the commands
`select' (requested by Ross L Richardson) and [[

ok millert sobrado

14 years agomissed one next -> return, as noticed by marco@
espie [Mon, 12 Jul 2010 15:54:48 +0000 (15:54 +0000)]
missed one next -> return, as noticed by marco@

14 years agoMerge duplicate log messages into one log_warn().
bluhm [Mon, 12 Jul 2010 14:35:13 +0000 (14:35 +0000)]
Merge duplicate log messages into one log_warn().
ok claudio@

14 years agoneed to copy f() parameters, otherwise strange bugs with sub expressions
espie [Mon, 12 Jul 2010 09:31:52 +0000 (09:31 +0000)]
need to copy f() parameters, otherwise strange bugs with sub expressions
may occur (bug in locality in @_ ?)

Add missing bagage to State.pm to be able to interact directly with
Makewhatis, later.

14 years agoAfter forking, clear the 'thread joining this one' pointer in the child,
guenther [Mon, 12 Jul 2010 03:52:52 +0000 (03:52 +0000)]
After forking, clear the 'thread joining this one' pointer in the child,
as the child only has the one thread remaining.

ok marc@

14 years agoremove unused variable and unused static prototype.
chl [Sun, 11 Jul 2010 23:16:42 +0000 (23:16 +0000)]
remove unused variable and unused static prototype.

ok nicm@

14 years agoReturn the command client return code with MSG_EXIT now that MSG_ERROR and
nicm [Sun, 11 Jul 2010 17:06:45 +0000 (17:06 +0000)]
Return the command client return code with MSG_EXIT now that MSG_ERROR and
MSG_PRINT are unused.

New clients should be compatible with old tmux servers but vice versa may print
an error.

14 years agobcrypt_gensalt is already declared in pwd.h
dhill [Sun, 11 Jul 2010 15:53:12 +0000 (15:53 +0000)]
bcrypt_gensalt is already declared in pwd.h

"sure" deraadt@

14 years agotypo
miod [Sun, 11 Jul 2010 14:09:10 +0000 (14:09 +0000)]
typo

14 years agomove compare into LibSpec, it's not so specific to Signature after all
espie [Sun, 11 Jul 2010 10:05:18 +0000 (10:05 +0000)]
move compare into LibSpec, it's not so specific to Signature after all

14 years agosort SEE ALSO;
jmc [Sun, 11 Jul 2010 07:37:30 +0000 (07:37 +0000)]
sort SEE ALSO;

14 years agodisplay updateset name alongside collisionreport (turns out it's not
espie [Sun, 11 Jul 2010 07:27:25 +0000 (07:27 +0000)]
display updateset name alongside collisionreport (turns out it's not
always obvious)

14 years agotie back to bsd.port.mk, to make REVISION and EPOCH more obvious.
espie [Sun, 11 Jul 2010 07:25:10 +0000 (07:25 +0000)]
tie back to bsd.port.mk, to make REVISION and EPOCH more obvious.

14 years agothinko (found by Daniel Dickman)
espie [Sun, 11 Jul 2010 07:19:05 +0000 (07:19 +0000)]
thinko (found by Daniel Dickman)

14 years agoFixup structures to be correct size
jordan [Sat, 10 Jul 2010 22:24:14 +0000 (22:24 +0000)]
Fixup structures to be correct size
ok claudio@

14 years agoA process on the zombie list can have a NULL p_pgrp if it sleeps when
guenther [Sat, 10 Jul 2010 21:29:37 +0000 (21:29 +0000)]
A process on the zombie list can have a NULL p_pgrp if it sleeps when
grabbing allproclk in proc_zap(); skip such processes in sysctl(KERN_PROC*)
and handle the NULL pointer in ddb's ps.

ok tedu@

14 years agoReduce the delays a bit in the miibus read/write routines.
naddy [Sat, 10 Jul 2010 21:00:34 +0000 (21:00 +0000)]
Reduce the delays a bit in the miibus read/write routines.

Although with aditional 20us delays added just before returning
from miibus read/writes as required by the hardware.

Based on the Linux r8169 driver; from Brad.

14 years agoAdd a bootstrap loader, this allow u-boot to auto-boot from the media
drahn [Sat, 10 Jul 2010 20:55:14 +0000 (20:55 +0000)]
Add a bootstrap loader, this allow u-boot to auto-boot from the media
without modifying the u-boot environment.

14 years agoRemove debug print left in on last commit.
drahn [Sat, 10 Jul 2010 20:47:10 +0000 (20:47 +0000)]
Remove debug print left in on last commit.

14 years agofields are incorrectly named in structure descriptions
gilles [Sat, 10 Jul 2010 20:40:34 +0000 (20:40 +0000)]
fields are incorrectly named in structure descriptions

"of course" deraadt@

14 years agoNo mention of compat_freebsd anymore.
miod [Sat, 10 Jul 2010 19:40:06 +0000 (19:40 +0000)]
No mention of compat_freebsd anymore.

14 years agosun4e bits
miod [Sat, 10 Jul 2010 19:38:36 +0000 (19:38 +0000)]
sun4e bits

14 years agosun4e (i.e. SPARCengine 1e) support. This platform is a mix between sun4 and
miod [Sat, 10 Jul 2010 19:32:20 +0000 (19:32 +0000)]
sun4e (i.e. SPARCengine 1e) support. This platform is a mix between sun4 and
sun4c, as it has a sun4c OpenPROM but a sun4 8KB pagesize. VME devices are
not supported yet.
ok deraadt@

14 years agoand cdboot must be linked with -N still, too. even more curious
deraadt [Sat, 10 Jul 2010 17:09:15 +0000 (17:09 +0000)]
and cdboot must be linked with -N still, too.  even more curious

14 years agoactually, pxeboot must remain linked with -N
deraadt [Sat, 10 Jul 2010 17:04:22 +0000 (17:04 +0000)]
actually, pxeboot must remain linked with -N

14 years agolink bootblocks with -Z instead of -N, to ensure that the file offset and
deraadt [Sat, 10 Jul 2010 16:11:43 +0000 (16:11 +0000)]
link bootblocks with -Z instead of -N, to ensure that the file offset and
addresses line up correctly.  Newer i386 gcc4 - for some reason -- is
prompting the linker with -N to not do this alignment which it used to do
(perhaps because the alignment of all .o's have dropped to very small
amounts??).  Using -Z wastes around a page of bootblock space which matters
even more on the small install media, so this definately needs revisiting.
Workaround from toby

14 years agoRetry requests when the btree is busy. Without this, clients will just hang
martinh [Sat, 10 Jul 2010 14:27:15 +0000 (14:27 +0000)]
Retry requests when the btree is busy. Without this, clients will just hang
waiting for a response if the btree was being reopened when the request was
received.

14 years agoWhen a file is created, initialize its ``busy cycles'' counter to zero.
ratchov [Sat, 10 Jul 2010 12:32:45 +0000 (12:32 +0000)]
When a file is created, initialize its ``busy cycles'' counter to zero.

14 years agoIn midi server mode, don't terminate the midi thru box if there are
ratchov [Sat, 10 Jul 2010 12:28:17 +0000 (12:28 +0000)]
In midi server mode, don't terminate the midi thru box if there are
no connections anymore.

14 years agofix parameter handling: don't try to open a ``default'' midi port
ratchov [Sat, 10 Jul 2010 11:56:28 +0000 (11:56 +0000)]
fix parameter handling: don't try to open a ``default'' midi port
if no files are given on the command line

14 years agotweak;
jmc [Sat, 10 Jul 2010 10:49:15 +0000 (10:49 +0000)]
tweak;

14 years agodocument EPOCH/REVISION
espie [Sat, 10 Jul 2010 09:12:02 +0000 (09:12 +0000)]
document EPOCH/REVISION

14 years agowhitespace cleanup from Brad, no change with diff -w
sthen [Sat, 10 Jul 2010 07:59:33 +0000 (07:59 +0000)]
whitespace cleanup from Brad, no change with diff -w

14 years agoVerify _ADR bdf is correct (some systems return 0xffff)
jordan [Sat, 10 Jul 2010 04:59:55 +0000 (04:59 +0000)]
Verify _ADR bdf is correct (some systems return 0xffff)
Works on Dell x9xx and Studio 1555

14 years agoEliminate two of the remaining three instances of drivers passing
matthew [Sat, 10 Jul 2010 03:06:51 +0000 (03:06 +0000)]
Eliminate two of the remaining three instances of drivers passing
their own buf to physio(9).

compiler tested by nick@ and miod@; ok miod@
general approval thib@, deraadt@

14 years agoEliminate some unnecessary #include lines.
matthew [Sat, 10 Jul 2010 02:56:16 +0000 (02:56 +0000)]
Eliminate some unnecessary #include lines.

"sure" marco@

14 years agoLimit SCIOCCOMMAND and ATAIOCCOMMAND requests to transferring MAXPHYS
matthew [Sat, 10 Jul 2010 02:52:38 +0000 (02:52 +0000)]
Limit SCIOCCOMMAND and ATAIOCCOMMAND requests to transferring MAXPHYS
bytes worth of data.  Also, pass M_CANFAIL to malloc(9) and handle
allocation failures by returning ENOMEM.

Prevents user space from causing a kernel panic by passing
ridiculously large datalen values.

ok dlg@, krw@