Re: expr(1) diff 2 of 3, make it able to accept c-style radix prefixes in integers

2011-01-15 Thread Janjaap van Velthooven
On Fri, Jan 14, 2011 at 10:39:53PM -0800, Philip Guenther wrote: [snip relevant discussion to sidetrack a bit.] So, what's the answer for someone wanting to do base conversion? If they use sh/ksh, then the answer is $((...)): $ echo $((0x20)) 32 $ csh shmucks^Wusers can use bc or dc

Re: Workaround for data corruption issue with ALI M5229 IDE chip used with Sun Blade 100/Netra X1.

2011-01-15 Thread Mark Kettenis
Date: Fri, 14 Jan 2011 18:56:07 +0100 From: Alexander Schrijver alexander.schrij...@gmail.com The big question of course is whether it will survive a make build with the change that removes the restriction of only using Ultra-DMA up to mode 2, but without the fixes in pciide.c.

Re: Make expr(1) 64-bit capable and radix-aware

2011-01-15 Thread Benny Lofgren
On 2011-01-15 07.43, Otto Moerbeek wrote: On Fri, Jan 14, 2011 at 08:22:25PM -0700, Theo de Raadt wrote: + Makes it 64-bit capable on 64-bit architectures by changing relevant int:s to long:s. I think this is a problem. I would expect a unix utility of this importance to work exactly the same

Re: expr(1) diff 2 of 3, make it able to accept c-style radix prefixes in integers

2011-01-15 Thread Benny Lofgren
On 2011-01-15 08.29, Philip Guenther wrote: On Fri, Jan 14, 2011 at 10:39 PM, Philip Guentherguent...@gmail.com wrote: On Fri, Jan 14, 2011 at 8:11 PM, Benny Lofgrenbl-li...@lofgren.biz wrote: + Makes it able to use C-style radix prefixes to integers in order to do calculations in octal and

Re: expr(1) diff 1 of 3, make it 64-bit capable

2011-01-15 Thread Benny Lofgren
On 2011-01-15 07.05, Philip Guenther wrote: If you're going to email diffs, you MUST turn off 'format=flowed', as Thunderbird munged the whitespace on your diffs enough to make them break with patch -l. Thunderbird has an option for that; find it and use it. Check. for (i=0; i100; i++)

systat.1 - Interfaces correction

2011-01-15 Thread Mark Lumsden
The number of IPKTS and OPKTS in systat(1) is calculated by taking away the new total packets from the old total packets and dividing the result by the delay between refreshes (naptime). This calculation is performed in the macro UPDATE in if.c I think the current description is inaccurate.

Re: bioctl should retry passphrase

2011-01-15 Thread Alexander Hall
On 01/15/11 03:06, Ted Unangst wrote: On Thu, 13 Jan 2011, Ted Unangst wrote: If I type the wrong password into bioctl at boot, disks don't exist, filesystems don't get mounted, and generally lots of things go wrong. All I need is a second chance to remind me to type the right password.

Re: bioctl should retry passphrase

2011-01-15 Thread Ted Unangst
On Sat, Jan 15, 2011 at 11:49 AM, Alexander Hall ha...@openbsd.org wrote: I haven't looked very close but should not the handling differ between the key_disk vs passphrase cases? I bet there would be a way to make it loop... :-) I think you are right. I'll fix that.

Re: Make expr(1) 64-bit capable and radix-aware

2011-01-15 Thread Otto Moerbeek
On Sat, Jan 15, 2011 at 01:00:04PM +0100, Benny Lofgren wrote: On 2011-01-15 07.43, Otto Moerbeek wrote: On Fri, Jan 14, 2011 at 08:22:25PM -0700, Theo de Raadt wrote: + Makes it 64-bit capable on 64-bit architectures by changing relevant int:s to long:s. I think this is a problem. I would

Re: Make expr(1) 64-bit capable and radix-aware

2011-01-15 Thread Ted Unangst
On Sat, Jan 15, 2011 at 3:30 PM, Otto Moerbeek o...@drijf.net wrote: Additionally, i very much prefer to have as little as possible differecnes between expr(1) and the ksh builtin. Ehum, running the risk of looking like a complete fool I've got to ask, is there actually a ksh builtin version

Re: Make expr(1) 64-bit capable and radix-aware

2011-01-15 Thread Matthias Kilian
On Sat, Jan 15, 2011 at 03:35:43PM -0500, Ted Unangst wrote: On Sat, Jan 15, 2011 at 3:30 PM, Otto Moerbeek o...@drijf.net wrote: Ehum, running the risk of looking like a complete fool I've got to ask, is there actually a ksh builtin version of expr? I did actually double check that prior

Re: Workaround for data corruption issue with ALI M5229 IDE chip used with Sun Blade 100/Netra X1.

2011-01-15 Thread Alexander Schrijver
On Sat, Jan 15, 2011 at 12:17:54PM +0100, Mark Kettenis wrote: Date: Fri, 14 Jan 2011 18:56:07 +0100 From: Alexander Schrijver alexander.schrij...@gmail.com The big question of course is whether it will survive a make build with the change that removes the restriction of only using