mv example fix

2010-12-25 Thread Ted Unangst
A 3 line example with 3 bugs. 1. destination and destination_path should be the same. 2. source_file doesn't have to be a file. 3. mv will also unlink a directory, ala rm -d. Index: mv.1 === RCS file: /home/tedu/cvs/src/bin/mv/mv.

correct mxcsr+mxcsr_mask handling (revised)

2010-12-25 Thread Philip Guenther
Here's a revised diff to correct the handling on amd64 and i386 of the MXCSR register in frames that could be altered by users, so that a user can't trick the kernel into faulting by trying to load an invalid MXCSR value during the return to userspace. Originally worked out by joshe@; this corr

Re: amd64 atomic macro naming cleanup

2010-12-25 Thread Ted Unangst
On Sat, Dec 25, 2010 at 2:12 PM, Philip Guenther wrote: > Fix the naming of the atomic macros on amd64: right now, the > x86_atomic_*_l() macros actually operate on unsigned 32bit integers > instead of longs, so: > 1) change the callers to use the _u32 versions > 2) update the _ul definitions to b

amd64 atomic macro naming cleanup

2010-12-25 Thread Philip Guenther
Fix the naming of the atomic macros on amd64: right now, the x86_atomic_*_l() macros actually operate on unsigned 32bit integers instead of longs, so: 1) change the callers to use the _u32 versions 2) update the _ul definitions to bew the 64bit versions 3) remove the _l macros Open question: per

cleanup directory sys/dev/pckbc

2010-12-25 Thread Alexandr Shadchin
remove file sys/dev/pckbc/Makefile This file is accidentally imported from NetBSD, and probably never used. -- Alexandr Shadchin Index: Makefile === RCS file: Makefile diff -N Makefile --- Makefile13 Nov 2000 20:12:34 -

Re: add back tcp sysctls

2010-12-25 Thread Ted Unangst
On Sat, Dec 25, 2010 at 6:03 AM, Mark Kettenis wrote: >> Date: Fri, 24 Dec 2010 22:50:22 -0500 (EST) >> From: Ted Unangst >> >> As I mentioned previously, the auto recv space scaling algorithm isn't >> optimized for all links. At list in my case, with the proverbial >> satellite link (high bandw

Re: add back tcp sysctls

2010-12-25 Thread Marco Peereboom
My cable modem works just like bad satellite so I'd love to see this go in as well. On Sat, Dec 25, 2010 at 12:03:27PM +0100, Mark Kettenis wrote: > > Date: Fri, 24 Dec 2010 22:50:22 -0500 (EST) > > From: Ted Unangst > > > > As I mentioned previously, the auto recv space scaling algorithm isn't

patch: register-plist should force package names to increase

2010-12-25 Thread Marc Espie
A bit McGyverish, since the tools we have usually deal with actual packages, so OpenBSD::Search is out of the question. This makes register-plist error out if it finds a newer packing-list with the exact same pkgpath in the PLIST_DB. So, if you use PLIST_DB (by default), it will notice if you bre

Re: add back tcp sysctls

2010-12-25 Thread Mark Kettenis
> Date: Fri, 24 Dec 2010 22:50:22 -0500 (EST) > From: Ted Unangst > > As I mentioned previously, the auto recv space scaling algorithm isn't > optimized for all links. At list in my case, with the proverbial > satellite link (high bandwidth, high latency), the window never appears to > grow.