Re: diff: get rid the "out of static map entries" problem

2011-04-17 Thread Anton Maksimenkov
2011/4/18 Ted Unangst : > +if (uvm.numof_free_kentries < 1) /*check to be safe*/ > +panic("uvm.numof_free_kentries[%d] < 1\n", uvm.numof_free_kentries); >>> This diff would take us back to the bad old days when running out of entries led >>> to a panic. >> Totally conversely. As It was

make ahci reserve a ccb for error recovery

2011-04-17 Thread David Gwynne
since atascsi screws it up... Index: ahci.c === RCS file: /cvs/src/sys/dev/pci/ahci.c,v retrieving revision 1.174 diff -u -p -r1.174 ahci.c --- ahci.c 7 Apr 2011 15:30:16 - 1.174 +++ ahci.c 18 Apr 2011 01:39:19 -00

Re: usermod and -G option patch

2011-04-17 Thread Ted Unangst
On Sun, Apr 17, 2011 at 2:52 PM, Steve Clarke wrote: > I've modified the user.c and changed the append_group function to become the > modify_group function, and in the function, changed the code to remove the > user from the given groups (and append him as before if he is supposed to be > there).

Re: wol for xl(4)

2011-04-17 Thread Tobias Ulmer
On Sun, Apr 17, 2011 at 11:05:38AM +0200, Stefan Sperling wrote: > On Thu, Mar 31, 2011 at 06:54:44PM +0200, Stefan Sperling wrote: > > This is an attempt to add wol support to xl(4). > > > > Unfortunately, while I have an xl(4) card to test with none of the > > motherboards I have will do WOL with

Re: diff: get rid the "out of static map entries" problem

2011-04-17 Thread Ted Unangst
On Sun, Apr 17, 2011 at 12:49 AM, Anton Maksimenkov wrote: +if (uvm.numof_free_kentries < 1) /*check to be safe*/ +panic("uvm.numof_free_kentries[%d] < 1\n", uvm.numof_free_kentries); >> This diff would take us back to the bad old days when running out of entries led >> to a panic.

Re: fenv.h support for libm

2011-04-17 Thread Philip Guenther
I only see one remaining namespace glitch: On Sun, Apr 17, 2011 at 4:11 AM, Martynas Venckus wrote: ... > +/* > + * fenv_t represents the entire floating-point environment > + */ > +typedef struct { > + struct { > + unsigned int __control; /* Control word register */ >

Re: isprint() needs setlocale(); for usr.bin

2011-04-17 Thread Philip Guenther
On Sun, Apr 17, 2011 at 1:56 AM, Stefan Sperling wrote: > On Tue, Apr 05, 2011 at 12:25:37AM +0200, Stefan Sperling wrote: >> For isprint() to work correctly in a UTF-8 locale applications must >> set up the LC_CTYPE locale before using isprint(). >> >> As done for hexdump and tcpdump already. >>

Re: wprintf and friends

2011-04-17 Thread Stefan Sperling
On Sun, Apr 17, 2011 at 11:06:09AM +0100, Stuart Henderson wrote: > What's the current status of this diff? I have received no negative comments, but no explicit OKs either. My plan is to fix the wxWidgets and minicom ports before this goes in because they fail to build with it. I haven't found t

Re: disklabel -F|-f should print swap partitions too.

2011-04-17 Thread Jason McIntyre
On Sun, Apr 17, 2011 at 12:34:54PM -0400, Kenneth R Westerback wrote: > > I am uncomfortable with removing the swapctl verbiasge, but I think it is much > more digestable if broken up and distributed as below. I moved the swap > lines in the example to the top, where they are likely to have been p

usermod and -G option patch

2011-04-17 Thread Steve Clarke
As posted to the openbsd forum in March, the usermod program only appends users to secondary groups with the -G switch, rather than setting the secondary groups. As mentioned previously, this problem has been around for some 10 years. http://marc.info/?l=openbsd-misc&m=109088617022480&w=2 http:/

Re: disklabel -F|-f should print swap partitions too.

2011-04-17 Thread Kenneth R Westerback
On Sun, Apr 17, 2011 at 07:26:28AM +0100, Jason McIntyre wrote: > On Sat, Apr 16, 2011 at 07:29:27PM -0400, Kenneth R Westerback wrote: > > > > My suggested man page tweaks are below. > > > > Ken > > > > Index: share/man/man5/fstab.5 > > =

isakmpd, one of two tunnels broken, extra SAs

2011-04-17 Thread Stuart Henderson
I have various isakmpd clients behind NAT, connecting to a central isakmpd box. They have two tunnels to the same central box for different networks; occasionally one of them stops functioning correctly. I managed to catch one today before the user rebooted it and noticed something odd so I though

Re: fenv.h support for libm

2011-04-17 Thread Martynas Venckus
The diff I sent before has been corrupted by Gmail (wrapped diff lines). I'm re-attaching it below. Index: include/Makefile === RCS file: /cvs/src/include/Makefile,v retrieving revision 1.157 diff -u -r1.157 Makefile --- include/Make

Re: wol for xl(4)

2011-04-17 Thread Stefan Sperling
On Thu, Mar 31, 2011 at 06:54:44PM +0200, Stefan Sperling wrote: > This is an attempt to add wol support to xl(4). > > Unfortunately, while I have an xl(4) card to test with none of the > motherboards I have will do WOL with it since they all lack an > on-board WOL connector :( > > So test report

Re: isprint() needs setlocale(); for usr.bin

2011-04-17 Thread Stefan Sperling
On Tue, Apr 05, 2011 at 12:25:37AM +0200, Stefan Sperling wrote: > For isprint() to work correctly in a UTF-8 locale applications must > set up the LC_CTYPE locale before using isprint(). > > As done for hexdump and tcpdump already. > > This diff covers all offenders in usr.bin. Todd Miller sugg

Re: if_ath oerrors with multicast traffic

2011-04-17 Thread Stefan Sperling
On Wed, Apr 06, 2011 at 10:41:14PM +0200, Stefan Sperling wrote: > There is a correlation between netstat -I ath0 showing more Oerrs and > multicast packets (e.g. CARP) leaving the interface. There is no apparent > real problem since these frames are received just fine at the other end. > The diff