Re: [patch] Path typo in FAQ

2015-07-12 Thread Antoine Jacoutot
Fixed, thank you. On Mon, Jul 13, 2015 at 01:01:32AM -0400, Michael McConville wrote: > Index: faq/faq15.html > === > RCS file: /cvs/www/faq/faq15.html,v > retrieving revision 1.109 > diff -u -p -r1.109 faq15.html > --- faq/faq15.html

[patch] Path typo in FAQ

2015-07-12 Thread Michael McConville
Index: faq/faq15.html === RCS file: /cvs/www/faq/faq15.html,v retrieving revision 1.109 diff -u -p -r1.109 faq15.html --- faq/faq15.html 2 Jul 2015 05:49:04 - 1.109 +++ faq/faq15.html 13 Jul 2015 04:56:40 - @@ -

Re: better run(4) fix (was: run(4): fix crash in run_task())

2015-07-12 Thread Stefan Sperling
On Sun, Jul 12, 2015 at 05:57:14PM +0200, Martin Pieuchot wrote: > > > run_newstate_cb SCAN -> INIT > > > run_newstate_cb SCAN -> SCAN > > How is this possible? Why it isn't INIT -> SCAN? I'm not entirely sure. I think one possible scenario is as follows: We're scanning. scan_to runs (every 2

Add support for SGR parameters 39 and 49

2015-07-12 Thread Matthew Martin
Currently on the console echo '\033[34mblue\033[39m white' will echo both words with a blue foreground. Add support for SGR 39 and 49 that reset the fg and bg color respectively back to default. - Matthew Martin Index: wsemul_vt100_subr.c =

Re: better run(4) fix (was: run(4): fix crash in run_task())

2015-07-12 Thread Martin Pieuchot
On 11/07/15(Sat) 15:16, Stefan Sperling wrote: > On Sat, Jul 11, 2015 at 09:54:34AM +0200, Stefan Sperling wrote: > > While run_task() iterates through the host command queue during a scan, > > the interface may get reset via run_stop() and run_init() when switching > > bands (2GHz -> 5GHz) in run_

Re: tcpdump -A: really printable characters

2015-07-12 Thread Sebastien Marie
On Sun, Jul 12, 2015 at 01:53:54PM +0200, Christian Weisgerber wrote: > Sebastien Marie: > > > > --- tcpdump.c 18 Apr 2015 18:28:38 - 1.70 > > > +++ tcpdump.c 11 Jul 2015 20:35:11 - > > > @@ -603,8 +603,10 @@ default_print_ascii(const u_char *cp, un > > > printf("\n"); > > >

[patch] xlocale part 12: add xlocale functions

2015-07-12 Thread Sebastien Marie
The patch add the following functions: - newlocale(3) - duplocale(3) - freelocale(3) - uselocale(3) Documentation is missing for now. A separate patch will be provided. uselocale(3): a locale state is installed only once per-thread. If the user pass the same locale_t object multiple t

[patch] xlocale part 11: make loadlocale() from setlocale.c reusable

2015-07-12 Thread Sebastien Marie
Change the loadlocale() prototype to be callable with specified locale_t parameter. It will permit to reuse the code path for uselocale(3). The current usage (with setlocale(3)) will just pass the global locale state to function call. -- Sebastien Marie Index: b/lib/libc/locale/setlocale.c =

[patch] xlocale part 10: localeconv(3)

2015-07-12 Thread Sebastien Marie
Remove the static/global variables from localeconv(3). - store the cached values inside struct _locale_t (like FreeBSD) - use flags (member of locale_t) to track changes in lc_monetary or lc_numeric. Note that currently these categories support only C locale, so there are no code that change

[patch] xlocale part 9: move others _Current*Locale variables to locale_t

2015-07-12 Thread Sebastien Marie
The patch integrate: - _CurrentMessagesLocale to locale_t (as lc_messages) - _CurrentMonetaryLocale to locale_t (as lc_monetary) - _CurrentNumericLocale to locale_t (as lc_numeric) - _CurrentTimeLocale to locale_t (as lc_time) The localeconv() function has static variable that will be addr

[patch] xlocale part 8: Switch _tolower_tab_ from global variable to per-thread function

2015-07-12 Thread Sebastien Marie
Same as before, but for _tolower_tab_ As _tolower_tab_ was the last initialized variable from __install_currentrunelocale_ctype(), remove the now empty function. -- Sebastien Marie Index: b/include/ctype.h === --- a/include/ctype.h

[patch] xlocale part 7: Switch _toupper_tab_ from global variable to per-thread function

2015-07-12 Thread Sebastien Marie
Same as previous, but for _toupper_tab_. -- Sebastien Marie Index: b/include/ctype.h === --- a/include/ctype.h 2015-06-30 12:19:07.342557440 +0200 +++ b/include/ctype.h 2015-06-30 12:19:31.892786432 +0200 @@ -55,7 +55,7 @@ ext

[patch] xlocale part 6: Switch _ctype_ from global variable to per-thread function

2015-07-12 Thread Sebastien Marie
_ctype_ is used in ctype.h header in order to define inline functions for determining character class: isalnum(3), isalpha(3), ... The character class comes from lc_ctype. Switch _ctype_ from global variable to function in order to retrieve the current locale state (global or per-thread). -- Se

[patch] xlocale part 5: Switch __mb_cur_max from global variable to per-thread function

2015-07-12 Thread Sebastien Marie
ctype.h header define MB_CUR_MAX macro to be the maximum number of bytes in a character specified by the current locale (category LC_CTYPE). Switch the implementation from global variable to function, in order to get the value from the current locale state (global or per-thread). -- Sebastien Ma

tail: -r mem leak with non-regular files

2015-07-12 Thread Tobias Stoeckmann
Sent this back in March, so maybe someone wants to review this time? :) tail -r has two memory leaks when handling non-regular files. You can easily see memory usage increasing with commands like $ mknod pipe p $ tail -r pipe pipe pipe > /dev/null And then writing a large file into the pipe thre

Re: tcpdump -A: really printable characters

2015-07-12 Thread Christian Weisgerber
Sebastien Marie: > > --- tcpdump.c 18 Apr 2015 18:28:38 - 1.70 > > +++ tcpdump.c 11 Jul 2015 20:35:11 - > > @@ -603,8 +603,10 @@ default_print_ascii(const u_char *cp, un > > printf("\n"); > > for (i = 0; i < length; i++) { > > c = cp[i]; > > -

Re: Microsoft Now OpenBSD Foundation Gold Contributor

2015-07-12 Thread Tom Smyth
Congratulatons Lads, On your new sponsorship It is good news for the OpenBSD usercommunity, great for funding of existing great initiatives or other new initiatives, It is good news for Microsoft users if Microsoft chooses to implement great stable software such as open SSH and Libre SSL in thei