Re: save less

2015-11-06 Thread Theo de Raadt
>On Sat, Nov 07, 2015 at 12:12:55AM -0500, Michael McConville wrote: >> Ted Unangst wrote: >> > less has a peculiar estrdup function. unlike ecalloc etc., it only >> > prints an error but doesn't quit. But the callers don't seem to check >> > for null. And in many places they call a function called

Re: save less

2015-11-06 Thread Nicholas Marriott
On Sat, Nov 07, 2015 at 12:12:55AM -0500, Michael McConville wrote: > Ted Unangst wrote: > > less has a peculiar estrdup function. unlike ecalloc etc., it only > > prints an error but doesn't quit. But the callers don't seem to check > > for null. And in many places they call a function called save

Re: more utf8 less ebcdic

2015-11-06 Thread Nicholas Marriott
ok nicm On Fri, Nov 06, 2015 at 10:40:19PM -0500, Ted Unangst wrote: > Ted Unangst wrote: > > Oops, that was the big bomb diff. We want to keep the nl_langinfo and some > > charset support. Just remove the environment variable and pare down some of > > the stranger charsets. > > here's better w

Re: save less

2015-11-06 Thread Nicholas Marriott
Hmm I thought this was deliberate but looking at where estrdup is used it is obviously not. ok nicm On Fri, Nov 06, 2015 at 11:07:26PM -0500, Ted Unangst wrote: > less has a peculiar estrdup function. unlike ecalloc etc., it only prints an > error but doesn't quit. But the callers don't seem to

Re: save less

2015-11-06 Thread Michael McConville
Ted Unangst wrote: > less has a peculiar estrdup function. unlike ecalloc etc., it only > prints an error but doesn't quit. But the callers don't seem to check > for null. And in many places they call a function called save() > instead. > > It is clearer to make estrdup() quit and use it everywher

save less

2015-11-06 Thread Ted Unangst
less has a peculiar estrdup function. unlike ecalloc etc., it only prints an error but doesn't quit. But the callers don't seem to check for null. And in many places they call a function called save() instead. It is clearer to make estrdup() quit and use it everywhere. Index: cmdbuf.c ==

Re: more utf8 less ebcdic

2015-11-06 Thread Ted Unangst
Ted Unangst wrote: > Oops, that was the big bomb diff. We want to keep the nl_langinfo and some > charset support. Just remove the environment variable and pare down some of > the stranger charsets. here's better working second half of the big bomb. we can init the charset table with the ctype fun

[patch] armv7/imx/imxesdhc.c: add imxesdhc_dump_regs

2015-11-06 Thread kremlin
Hello, This patch adds a debugging function dumping the contents of all registers implicated in the armv7/imx specific sd/mmc controller. It only prints if the kernel is built with option SDHC_DEBUG and a call is inserted somewhere. I am trying to fix the outstanding bug causing the imxesdhc driv

cron: use __progname

2015-11-06 Thread Todd C. Miller
Use __progname in cron/crontab/at instead of the homegrown ProgramName. Also get rid of MAIN_PROGRAM and XTRN which are not needed in modern C. - todd Index: usr.bin/at/at.c === RCS file: /cvs/src/usr.bin/at/at.c,v retrieving revisi

Re: PC Engines APU2 coming soon - how is OpenBSD's support so far?

2015-11-06 Thread Brian Conway
Not much different to report with the 2 GB model, other than the expected changes in memory size and ethernet chips. Everything seems to work well. Taking into account Mr. Cappuccio's advice on using thermal paste between the CPU and heat spreader, and also positioning it bottom-up, this one stabi

Re: LibreSSL MIPS64 build with GCC5

2015-11-06 Thread Miod Vallat
> Thanks for feedback Michael! I wasn't aware of __GNUC_PREREQ. > I did a grep and found a few more places where it can be used. But __GNUC_PREREQ may not be available everywhere LibreSSL is built, so it is better to stick to explicit tests for the time being. I have fixed the test to handle gcc >

Re: fix CRYPTO_chacha_20() on BE32 platforms

2015-11-06 Thread Miod Vallat
> Hi, > > On Fri, Nov 06, 2015 at 05:39:03AM +, Miod Vallat wrote: > > Running regress/lib/libcrypto/aead fails on big-endian platforms without > > the following diff, for the ``Test vector from RFC7539 2.8.2'' test, due > > to 64-bit counters being truncated to size_t. > > > > Yes, the coun

Re: cwm users (M1 menu change)

2015-11-06 Thread Bryan Steele
On Fri, Nov 06, 2015 at 12:47:08PM -0500, Okan Demirmen wrote: > For 2 reasons, I'd like to change M1 (mouse-button1) menu from > displaying only hidden windows to showing all windows. > - this is the only menu that differs between mouse and keyboard > invocations (kbd one shows all)

cwm users (M1 menu change)

2015-11-06 Thread Okan Demirmen
For 2 reasons, I'd like to change M1 (mouse-button1) menu from displaying only hidden windows to showing all windows. - this is the only menu that differs between mouse and keyboard invocations (kbd one shows all) - allows using this menu to switch to unhidden/showing wind

Re: more utf8 less ebcdic

2015-11-06 Thread Nicholas Marriott
ok nicm The no_error argument to icharset() is now unused and could go too. On Fri, Nov 06, 2015 at 11:47:46AM -0500, Ted Unangst wrote: > Ted Unangst wrote: > > Having to define LESSCHARSET to print the special characters doesn't seem > > that > > useful. It doesn't do translation. So settin

Re: more utf8 less ebcdic

2015-11-06 Thread Ted Unangst
Ted Unangst wrote: > Having to define LESSCHARSET to print the special characters doesn't seem that > useful. It doesn't do translation. So setting it to ebcdic isn't going to > magically make such files appear correctly in my xterm. > > There seem to be two possibilities: > 1. You have LESSCHARSE

more utf8 less ebcdic

2015-11-06 Thread Ted Unangst
Having to define LESSCHARSET to print the special characters doesn't seem that useful. It doesn't do translation. So setting it to ebcdic isn't going to magically make such files appear correctly in my xterm. There seem to be two possibilities: 1. You have LESSCHARSET and LC_CTYPE set to the same

Re: less less chardef

2015-11-06 Thread Nicholas Marriott
yes please... ok nicm On Fri, Nov 06, 2015 at 10:18:20AM -0500, Ted Unangst wrote: > This removes the "rarely" used LESSCHARDEF env. The next diff will be for > LESSCHARSET, but I'm content to ax one branch at a time. > > > Index: charset.c >

less less chardef

2015-11-06 Thread Ted Unangst
This removes the "rarely" used LESSCHARDEF env. The next diff will be for LESSCHARSET, but I'm content to ax one branch at a time. Index: charset.c === RCS file: /cvs/src/usr.bin/less/charset.c,v retrieving revision 1.12 diff -u -p -

Re: execless wump

2015-11-06 Thread Ted Unangst
Christian Weisgerber wrote: > "Ted Unangst": > > > here's a nickel kid, get a terminal with scrollback... > > We could have just deleted less(1)! > I think you are going overboard here. If you really want to delete > the exec, at least replace it with a minimal built-in pager like > ddb's. Well

patch: top cpu stats default display

2015-11-06 Thread Benny Lofgren
Hi tech@, I want to suggest a small convenience (for me at least) change to top(1): - Always start with combined cpu stats view (one line) Supporting changes: - Invert behaviour of "top -1" accordingly - Remove then unnecessary "if cpus > 8 then combined_view = 1" - Adjust man page accordingly -

Re: chgrp(1) & chown(8): mark -h and -R as mutually exclusive

2015-11-06 Thread Ingo Schwarze
Hi Frederic, Frederic Nowak wrote on Fri, Nov 06, 2015 at 08:58:14AM +0100: > On 05 November 2015 at 19:02 Ingo Schwarze wrote: >> http://mdocml.bsd.lv/mdoc/ > Thanks, I hadn't seen that resource before. Looks very interesting! > Would it make sense to include a link, e.g. in the description

Re: execless wump

2015-11-06 Thread Christian Weisgerber
"Ted Unangst": > here's a nickel kid, get a terminal with scrollback... We could have just deleted less(1)! I think you are going overboard here. If you really want to delete the exec, at least replace it with a minimal built-in pager like ddb's. -- Christian "naddy" Weisgerber

remove IF_PREPEND in src/sys/dev/pci, was Re: IFQ_PREPEND

2015-11-06 Thread David Gwynne
On Wed, Nov 04, 2015 at 08:18:48AM +0100, Martin Pieuchot wrote: > On 04/11/15(Wed) 10:39, David Gwynne wrote: > > im working on making the interface send queue mpsafe. > > > > part of that involced deprecating the IFQ_POLL api because it allows the > > caller to get a reference an mbuf that is s

Re: fix CRYPTO_chacha_20() on BE32 platforms

2015-11-06 Thread Reyk Floeter
Hi, On Fri, Nov 06, 2015 at 05:39:03AM +, Miod Vallat wrote: > Running regress/lib/libcrypto/aead fails on big-endian platforms without > the following diff, for the ``Test vector from RFC7539 2.8.2'' test, due > to 64-bit counters being truncated to size_t. > Yes, the counter should be unsi

Re: chgrp(1) & chown(8): mark -h and -R as mutually exclusive

2015-11-06 Thread Frederic Nowak
Hi Ingo, > On 05 November 2015 at 19:02 Ingo Schwarze wrote: > > > Hi Frederic, > > Theo de Raadt wrote on Thu, Nov 05, 2015 at 10:53:55AM -0700: > > Frederic Nowak wrote: > > >> the command line arguments -h and -R for chgrp and chown are > >> mutually > >> exclusive. The patch below changes