Re: inteldrm: HBR2 support for DisplayPort 1.2

2015-11-30 Thread Jonathan Gray
On Tue, Dec 01, 2015 at 07:00:19AM +, Scot Doyle wrote: > > Index: i915/intel_dp.c > > === > > RCS file: /cvs/src/sys/dev/pci/drm/i915/intel_dp.c,v > > retrieving revision 1.26 > > diff -u -p -r1.26 intel_dp.c > > --- i915/intel_dp

Re: inteldrm: HBR2 support for DisplayPort 1.2

2015-11-30 Thread Scot Doyle
On Tue, 1 Dec 2015, Jonathan Gray wrote: > On Tue, Dec 01, 2015 at 04:51:24AM +, Scot Doyle wrote: > > On Tue, 1 Dec 2015, Jonathan Gray wrote: > > > On Tue, Dec 01, 2015 at 01:32:24AM +, Scot Doyle wrote: > > > > from Todd Previte > > > > Enable 5.4Ghz (HBR2) link rate for Displayport 1.2-

pledge: ssh (the client)

2015-11-30 Thread Sebastien Marie
Hi, Here is an attempt to pledge ssh(1) - the client. There are two parts: - pledging a mux client, which is used when ControlMaster is in used, and your client reuse an existing connection. it ends with "stdio proc tty" (proc is to permit sending SIGWINCH to mux master on window r

Re: inteldrm: HBR2 support for DisplayPort 1.2

2015-11-30 Thread Jonathan Gray
On Tue, Dec 01, 2015 at 04:51:24AM +, Scot Doyle wrote: > On Tue, 1 Dec 2015, Jonathan Gray wrote: > > On Tue, Dec 01, 2015 at 01:32:24AM +, Scot Doyle wrote: > > > from Todd Previte > > > Enable 5.4Ghz (HBR2) link rate for Displayport 1.2-capable devices > > > 06ea66b6bb445043dc25a9626254d

make: don't know how to make linking.go (prerequisite of: libobjc_g.a)

2015-11-30 Thread Jiri Navratil
Hello, I'm trying to compile -current with debug info enabled. cat /etc/mk.conf DEBUG= DEBUGLIBS=yes I'm got this error during cd /usr/src && make build make: don't know how to make linking.go (prerequisite of: libobjc_g.a) Stop in gnu/usr.bin/cc/libobjc *** Error 2 in gnu/lib (:48 'all') ***

Re: inteldrm: HBR2 support for DisplayPort 1.2

2015-11-30 Thread Scot Doyle
On Tue, 1 Dec 2015, Jonathan Gray wrote: > On Tue, Dec 01, 2015 at 01:32:24AM +, Scot Doyle wrote: > > from Todd Previte > > Enable 5.4Ghz (HBR2) link rate for Displayport 1.2-capable devices > > 06ea66b6bb445043dc25a9626254d5c130093199 in mainline Linux > > > > refactored to only support the

Re: SOCKS strerrors for nc(1)

2015-11-30 Thread Michael McConville
Theo de Raadt wrote: > Please KNF. > > case 90: > return "Succeeded"; > case 91: > > etc. New diff: Index: socks.c === RCS file: /cvs/src/usr.bin/nc/socks.c,v retrieving revision 1.21 diff -u -p -r1.21 so

Re: inteldrm: HBR2 support for DisplayPort 1.2

2015-11-30 Thread Jonathan Gray
On Tue, Dec 01, 2015 at 01:32:24AM +, Scot Doyle wrote: > from Todd Previte > Enable 5.4Ghz (HBR2) link rate for Displayport 1.2-capable devices > 06ea66b6bb445043dc25a9626254d5c130093199 in mainline Linux > > refactored to only support the GPU's both capable of HBR2 and > currently supported

Re: SOCKS strerrors for nc(1)

2015-11-30 Thread Theo de Raadt
> +/* > + * Error strings adapted from the generally accepted SOCKSv4 spec: > + * > + * http://ftp.icm.edu.pl/packages/socks/socks4/SOCKS4.protocol > + */ > +static const char * > +socks4_strerror(int e) > +{ > + switch (e) { > + case 90: return "Succeeded"; > + case 91: return "Request

SOCKS strerrors for nc(1)

2015-11-30 Thread Michael McConville
When an nc SOCKS connection fails, you get an error message like this: > connection failed, SOCKS error 6 Obviously, this would be clearer with error strings. ok? Index: socks.c === RCS file: /cvs/src/usr.bin/nc/socks.c,v retrievi

inteldrm: HBR2 support for DisplayPort 1.2

2015-11-30 Thread Scot Doyle
from Todd Previte Enable 5.4Ghz (HBR2) link rate for Displayport 1.2-capable devices 06ea66b6bb445043dc25a9626254d5c130093199 in mainline Linux refactored to only support the GPU's both capable of HBR2 and currently supported by inteldrm: Broadwell and non-ULT Haswell ok? Index: sys/dev/pci/drm

Re: does openssl get to use dns?

2015-11-30 Thread Theo Buehler
On Fri, Nov 20, 2015 at 01:58:57PM +0100, Jérémie Courrèges-Anglas wrote: > "Todd T. Fries" writes: > > > To demonstrate: > > > > openssl s_client -connect www.google.com:443 > > Heh. > > > A fix, probably not the full or correct one: > > ok jca@ > > do_accept(), in s_socket.c calls gethost

Re: does openssl get to use dns?

2015-11-30 Thread Bob Beck
I think that's correct. I believe this may have been missed when "dns" was introduced in pledged - openssl got done early. On Mon, Nov 30, 2015 at 6:12 PM, Theo Buehler wrote: > On Fri, Nov 20, 2015 at 01:58:57PM +0100, Jérémie Courrèges-Anglas wrote: >> "Todd T. Fries" writes: >> >> > To demo

A couple man page tweaks

2015-11-30 Thread Michael McConville
1. A clearer wording of allocation failure 2. ksh has job control and is the default shell ok? Index: lib/libc/string/strdup.3 === RCS file: /cvs/src/lib/libc/string/strdup.3,v retrieving revision 1.21 diff -u -p -r1.21 strdup.3

Re: [Flex-devel] Index underflow in lex(1)

2015-11-30 Thread Serguey Parkhomovsky
On Mon, Nov 30, 2015 at 06:51:39PM -0500, Will Estes wrote: > Awesome. This applies cleanly albeit with fuzz and makes sense. > > Could you provide Serguey Parkhomovsky's email address so I can use it when > committing the change into git? Happy to help. :-) The address that I'm sending from ri

Re: UTF-8 support for ls(1)

2015-11-30 Thread Ingo Schwarze
Hi Dmitrij, Dmitrij D. Czarkoff wrote on Mon, Nov 30, 2015 at 11:37:12PM +0100: > Ingo Schwarze said: >> * I am resetting mbtowc(3) internal state after failure, >>even though that has no effect on OpenBSD, if only as a >>reminder that there be dragons. It costs almost nothing, >>ne

Re: UTF-8 support for ls(1)

2015-11-30 Thread Dmitrij D. Czarkoff
Ingo Schwarze said: > * I am resetting mbtowc(3) internal state after failure, >even though that has no effect on OpenBSD, if only as a >reminder that there be dragons. It costs almost nothing, >neither in terms of clutter nor in terms of performance. This doesn't make sense to me.

rtadvd: replace hand-rolled filter with ROUTE_MSGFILTER

2015-11-30 Thread Jérémie Courrèges-Anglas
rtadvd(8) reimplements in userland what setsockopt(ROUTE_MSGFILTER) does, with the additional drawback that it is uselessly woken up for routing messages it doesn't care about. The unreachable RTM_GET case in get_next_msg() can also go away. ok? Index: if.c =

Re: Index underflow in lex(1)

2015-11-30 Thread Michael McConville
Serguey Parkhomovsky wrote: > On Thu, Nov 26, 2015 at 01:03:22PM -0500, Michael McConville wrote: > > This nondeterministically underflows _sf_top_ix, causing a segfault: > > > > http://www.sccs.swarthmore.edu/users/16/mmcconv1/dump/crash.l > > > > Looks like _sf_top_ix always underflows whe

Re: Index underflow in lex(1)

2015-11-30 Thread Serguey Parkhomovsky
On Thu, Nov 26, 2015 at 01:03:22PM -0500, Michael McConville wrote: > This nondeterministically underflows _sf_top_ix, causing a segfault: > > http://www.sccs.swarthmore.edu/users/16/mmcconv1/dump/crash.l > Looks like _sf_top_ix always underflows whenever there are extra closing parenthese

pledge dhclient(8)

2015-11-30 Thread Ricardo Mestre
Hi, This one was difficult to get since SIOCGIFRDOMAIN is checked in a loop inside dispatch(). It needs "inet dns" for obvious reasons, then "route" because of the above. Additionally if "-d" parameter (no_daemon) is NOT used then it will by default run in the background and fire up a daemon(3) t

Re: rtadvd: useless argument/checks in if.c:get_next_msg()

2015-11-30 Thread Florian Obser
OK florian@ On Mon, Nov 30, 2015 at 01:58:16PM +0100, Jeremie Courreges-Anglas wrote: > > Hi, > > get_next_msg() takes an "ifindex" argument, and contains code to check > whether the interface affected by a routing message is "the correct > one". Those tests have always been meaningless since i

Re: rtadvd: remove router renumbering support

2015-11-30 Thread Florian Obser
yes please. while in there you should deleted the commented .Fl m from the man page, too. OK florian@ On Mon, Nov 30, 2015 at 08:12:32PM +0100, Jeremie Courreges-Anglas wrote: > > ie. https://tools.ietf.org/html/rfc2894 > > This code has been rotting since a long time, only activated during two

Re: serialise if_start calls

2015-11-30 Thread Hrvoje Popovski
On 30.11.2015. 12:55, David Gwynne wrote: > this tweaks the guts of if_start so it guarantees that there's only > ever one call to ifp->if_start running in the system at a time. > previously this was implicit because it could only be called with > the KERNEL_LOCK held. > > as we move forward it wo

rtadvd: remove router renumbering support

2015-11-30 Thread Jérémie Courrèges-Anglas
ie. https://tools.ietf.org/html/rfc2894 This code has been rotting since a long time, only activated during two months after the initial import from KAME. Since rtadvd.c rev.1.3, the -R command-line switch has no effect. This protocol is unsafe and assumes that communication between renumbered r

Re: just for safety

2015-11-30 Thread Alexander Bluhm
On Mon, Nov 30, 2015 at 06:13:04PM +0100, Martin Pieuchot wrote: > Considering the number of places where we do such iteration, if this > is still possible we're in big troubles, this is just a leftover of > old over engineering. The check is done inconsistenly only sometimes. Note that there i

Backward compat

2015-11-30 Thread Martin Pieuchot
I'm about to kill rt_mask() and I believe it's not worth keeping this old backward compatibility. Anybody disagree? Ok? Index: netinet/if_ether.c === RCS file: /cvs/src/sys/netinet/if_ether.c,v retrieving revision 1.190 diff -u -p -

just for safety

2015-11-30 Thread Martin Pieuchot
Considering the number of places where we do such iteration, if this is still possible we're in big troubles, this is just a leftover of old over engineering. ok? Index: netinet6/in6.c === RCS file: /cvs/src/sys/netinet6/in6.c,v re

Re: Only use emails in .Mt

2015-11-30 Thread Ingo Schwarze
Hi Jan, committed, thanks. That said, what's wrong with Andries' mail address? Does it bounce? Yours, Ingo Jan Stary wrote on Mon, Nov 30, 2015 at 03:16:11PM +0100: > Index: hack.6 > === > RCS file: /cvs/src/games/hack/hack.6,v

Re: Prefer LOGNAME over USER in snake(6) and tetris(6)

2015-11-30 Thread Todd C. Miller
On Sun, 29 Nov 2015 15:02:11 +0100, Theo Buehler wrote: > Prefer $LOGNAME over $USER, since the latter is deprecated, > see environ(7). Pointed out by millert@ > Fall back to getlogin() before defaulting to " ???". OK millert@ - todd

Re: [patch] gprof(1): fix incompatible pointer types

2015-11-30 Thread Serguey Parkhomovsky
Ping? On Mon, Nov 16, 2015 at 10:09:29AM -0800, Serguey Parkhomovsky wrote: > Hi Philip, > > Thanks for the detailed explanation on comparison functions for qsort. I > have looked through your changes, and have only found one issue: > > > 2) totalcmp(A,B) and totalcmp(B,A) both return <0 if both

UTF-8 support for ls(1)

2015-11-30 Thread Ingo Schwarze
Hi, here is a clean patch implementing full UTF-8 support including validation, sanitation, and columnation for ls(1). This integrates work done by tedu@, bentley@, and myself during u2k15 in Berlin. After several iterations, i now consider it ripe for commit, but would appreciate at least two O

Only use emails in .Mt

2015-11-30 Thread Jan Stary
Index: hack.6 === RCS file: /cvs/src/games/hack/hack.6,v retrieving revision 1.18 diff -u -p -r1.18 hack.6 --- hack.6 13 Mar 2015 19:58:40 - 1.18 +++ hack.6 30 Nov 2015 14:14:15 - @@ -211,7 +211,3 @@ wrote the or

wump(6) does not need to fork

2015-11-30 Thread Jan Stary
- put the game description in the manpage, showing The Wumpus some damn respect by making at least a .Bl list of pits, bats, and the wump. - remove wump.info, instructions(), and pathnames.h - pledge a simple "stdio" Jan Index: Makefile

Re: pledge fish(6) plus a few more things

2015-11-30 Thread Jan Stary
On Nov 30 14:36:37, theo.bueh...@math.ethz.ch wrote: > On Mon, Nov 30, 2015 at 02:26:38PM +0100, Jan Stary wrote: > > On Nov 30 14:16:02, h...@stare.cz wrote: > > > On Nov 23 13:17:43, ser...@helheim.mooo.com wrote: > > > > Declared usage() as __dead since it won't return, instructions() called > >

Re: pledge fish(6) plus a few more things

2015-11-30 Thread Theo Buehler
On Mon, Nov 30, 2015 at 02:26:38PM +0100, Jan Stary wrote: > On Nov 30 14:16:02, h...@stare.cz wrote: > > On Nov 23 13:17:43, ser...@helheim.mooo.com wrote: > > > Declared usage() as __dead since it won't return, instructions() called > > > a handrolled pager (/bin/cat) using fork which I replaced

Re: pledge fish(6) plus a few more things

2015-11-30 Thread Jan Stary
On Nov 30 14:16:02, h...@stare.cz wrote: > On Nov 23 13:17:43, ser...@helheim.mooo.com wrote: > > Declared usage() as __dead since it won't return, instructions() called > > a handrolled pager (/bin/cat) using fork which I replaced for a simple > > cicle of while(fgets) then fputs (greatly inspired

Re: pledge fish(6) plus a few more things

2015-11-30 Thread Jan Stary
On Nov 30 14:16:02, h...@stare.cz wrote: > On Nov 23 13:17:43, ser...@helheim.mooo.com wrote: > > Declared usage() as __dead since it won't return, instructions() called > > a handrolled pager (/bin/cat) using fork which I replaced for a simple > > cicle of while(fgets) then fputs (greatly inspired

Re: pledge fish(6) plus a few more things

2015-11-30 Thread Jan Stary
On Nov 23 13:17:43, ser...@helheim.mooo.com wrote: > Declared usage() as __dead since it won't return, instructions() called > a handrolled pager (/bin/cat) using fork which I replaced for a simple > cicle of while(fgets) then fputs (greatly inspired, to not saying it was > bluntly copied, by a pre

rtadvd: useless argument/checks in if.c:get_next_msg()

2015-11-30 Thread Jérémie Courrèges-Anglas
Hi, get_next_msg() takes an "ifindex" argument, and contains code to check whether the interface affected by a routing message is "the correct one". Those tests have always been meaningless since import, 'cause the "ifindex" argument passed to this function has always been 0 and the checks are n

serialise if_start calls

2015-11-30 Thread David Gwynne
this tweaks the guts of if_start so it guarantees that there's only ever one call to ifp->if_start running in the system at a time. previously this was implicit because it could only be called with the KERNEL_LOCK held. as we move forward it would be nice to run the queue without having to take th

Re: taskq_barrier(9)

2015-11-30 Thread David Gwynne
> On 30 Nov 2015, at 5:54 PM, Mark Kettenis wrote: > >> Date: Mon, 30 Nov 2015 16:28:55 +1000 >> From: David Gwynne >> >> while playing with some options around running an interfaces send >> queue, i came up with the following. if you've deferred work to a >> taskq and you're not reference cou