Re: dkwedge: checksum before swapping?

2023-05-07 Thread Michael van Elst
mo...@rodents-montreal.org (Mouse) writes: >But that comment clearly indicates that _someone_ thought it >reasonable to checksum before swapping, so I can't help wondering what >use case that's appropriate for. It's a checksum over the 16bit words in native byte order. So when you access the word

dkwedge: checksum before swapping?

2023-05-07 Thread Mouse
In sys/dev/dkwedge/dkwedge_bsdlabel.c, I find (and I see more or less the same code in 5.2 and what cvsweb.n.o shows me) static int validate_label(mbr_args_t *a, daddr_t label_sector, size_t label_offset) { ... /* * We have validated the partition count. Checksum

Re: Per-descriptor state

2023-05-07 Thread Johnny Billquist
On 2023-05-08 02:09, Johnny Billquist wrote: On 2023-05-08 01:30, David Holland wrote> On Fri, May 05, 2023 at 09:44:25PM -0400, Mouse wrote:   > not nearly as   > horrible as, say, the hack I once implemented where calling   > wait4(0x456d756c,(int *)0x61746f72,0x4d616769,(struct rusage *)0x

Re: Per-descriptor state

2023-05-07 Thread David Holland
On Mon, May 08, 2023 at 12:36:21AM +, David Holland wrote: > I... completely failed to recognize it as an emoji and assumed it was > supposed to be -9 to forcibly shut something down. emoji. smiley. yeah -- David A. Holland dholl...@netbsd.org

Re: Per-descriptor state

2023-05-07 Thread David Holland
On Mon, May 08, 2023 at 02:09:07AM +0200, Johnny Billquist wrote: > > > not nearly as > > > horrible as, say, the hack I once implemented where calling > > > wait4(0x456d756c,(int *)0x61746f72,0x4d616769,(struct rusage > > > *)0x633a2d29) > >

Re: Per-descriptor state

2023-05-07 Thread Johnny Billquist
On 2023-05-08 01:30, David Holland wrote> On Fri, May 05, 2023 at 09:44:25PM -0400, Mouse wrote: > not nearly as > horrible as, say, the hack I once implemented where calling > wait4(0x456d756c,(int *)0x61746f72,0x4d616769,(struct rusage *)0x633a2d29)

Re: Per-descriptor state

2023-05-07 Thread David Holland
On Fri, May 05, 2023 at 09:44:25PM -0400, Mouse wrote: > >>> But I kind of think it'd be preferable to make a way to clone a > >>> second independent struct file for the same socket than to start > >>> mucking with per-descriptor state. > >> [...] it should be easy to extend dup3() to make that

Re: Per-descriptor state

2023-05-07 Thread David Holland
On Thu, May 04, 2023 at 08:40:49AM -0400, Mouse wrote: > >> I can't think of any at all; to begin with it's limited to forks > >> that don't exec > [...] > > Well, except for libraries that open fds internally, without exposing > them to the calling code. Depending on the user case, they ma

Re: How to submit patches?

2023-05-07 Thread Robert Nestor
Like the OP I’ve experienced similar issues with X on some of my systems. Earlier versions of NetBSD (and Xorg) worked a bit better on configuring some of my setups. When Xorg was modified to try and reduce the need for an xorg.conf file things really messed up for me, but as Xorg has evolved

Re: How to submit patches?

2023-05-07 Thread tlaronde
Le Sun, May 07, 2023 at 06:14:35PM +0200, Martin Husemann a écrit : > On Sun, May 07, 2023 at 04:56:33PM +0200, tlaro...@polynum.com wrote: > > I'm a bit reluctant to put all the platform lists in copy, since this > > is typically generic: it deals with the monitor capacities, updating > > the VESA

Re: How to submit patches?

2023-05-07 Thread Martin Husemann
On Sun, May 07, 2023 at 04:56:33PM +0200, tlaro...@polynum.com wrote: > I'm a bit reluctant to put all the platform lists in copy, since this > is typically generic: it deals with the monitor capacities, updating > the VESA DMT specs... I pointed a few people at your mail, but maybe you could desc

Re: How to submit patches?

2023-05-07 Thread tlaronde
Le Sun, May 07, 2023 at 09:40:56AM -0400, Thor Lancelot Simon a écrit : > On Sat, May 06, 2023 at 12:12:54PM +0200, tlaro...@polynum.com wrote: > > > > How to submit patches without wasting time? (mine included) > > It might be that you get quicker response on one of the mailing lists > for platf

Re: How to submit patches?

2023-05-07 Thread Thor Lancelot Simon
On Sat, May 06, 2023 at 12:12:54PM +0200, tlaro...@polynum.com wrote: > > How to submit patches without wasting time? (mine included) It might be that you get quicker response on one of the mailing lists for platforms where the patches are particularly useful. It might not, too - but the set of