two jot tweaks

2021-08-12 Thread Theo Buehler
If jot is run without arguments, prec will never be changed from -1. This results in the nonsensical format string "%.-1f" being produced in getformat(). __vfprintf() will misinterpret the - as a left adjustment flag and the precision used will be 0. The result is the samw as "%.0f", which is what

hw.setperf diff to test on i386

2021-08-12 Thread Theo Buehler
It would be nice if someone running i386 could apply this diff, run without apmd and check that setting sysctl hw.setperf to different values between 0 and 100 works and changes hw.cpuspeed as expected. hw.cpuspeed should take on the all the values reported in dmesg, e.g., cpu0: Enhanced

ure: Remove unused ure_stop_task

2021-08-12 Thread Christian Ludwig
Hi, The ure_stop_task is not scheduled anywhere. In fact, it has never been used. Remove it. So long, - Christian --- sys/dev/usb/if_ure.c| 3 --- sys/dev/usb/if_urereg.h | 1 - 2 files changed, 4 deletions(-) diff --git a/sys/dev/usb/if_ure.c b/sys/dev/usb/if_ure.c index

Re: fresh prompt after Ctrl-C in cdio(1)

2021-08-12 Thread Christian Weisgerber
Ingo Schwarze: > deraadt@ recently pointed out to me in private mail that it is good > for usability if interactive programs providing line editing > functionality are consistent what they do with Ctrl-C, ideally > discard the current input line and provide a fresh prompt. > > So i propose to do

Re: fresh prompt after Ctrl-C in cdio(1)

2021-08-12 Thread Ingo Schwarze
Hi Martijn, Martijn van Duren wrote on Thu, Aug 12, 2021 at 04:37:24PM +0200: > Maybe I've used cdio once or twice and I don't have a cd-player at hand > (at least connected to my workstation) to test this. So purely from code > inspection: You set the signal handler before entering el_gets and

Re: fresh prompt after Ctrl-C in cdio(1)

2021-08-12 Thread Martijn van Duren
On Thu, 2021-08-12 at 15:57 +0200, Ingo Schwarze wrote: > Hi, > > deraadt@ recently pointed out to me in private mail that it is good > for usability if interactive programs providing line editing > functionality are consistent what they do with Ctrl-C, ideally > discard the current input line

fresh prompt after Ctrl-C in cdio(1)

2021-08-12 Thread Ingo Schwarze
Hi, deraadt@ recently pointed out to me in private mail that it is good for usability if interactive programs providing line editing functionality are consistent what they do with Ctrl-C, ideally discard the current input line and provide a fresh prompt. At least that is what bc(1), ftp(1),

Re: missing newlines in est.c printfs

2021-08-12 Thread Jonathan Gray
On Thu, Aug 12, 2021 at 07:47:36AM +0200, Theo Buehler wrote: > On Thu, Aug 12, 2021 at 03:01:37PM +1000, Jonathan Gray wrote: > > On Thu, Aug 12, 2021 at 06:44:51AM +0200, Theo Buehler wrote: > > > There doesn't seem to be a good reason for omitting the newlines here. > > > If those are ever hit,