Re: ttycreate from FreeBSD equivalent

2023-02-25 Thread Theo de Raadt
I think your process is difficult because it is backwards. Probably easier to take the closest openbsd driver, start removing wrong-device-specific parts from it and put your own device specific parts into it. It will difficult to ensure your driver-independent pieces are correct if you are picki

pf(4) drops valid IGMP/MLD messages

2023-02-25 Thread Alexandr Nedvedicky
Hello, the issue has been discovered and analyzed by Luca di Gregorio on bugs@ [1]. The thread [1] covers all details. People who wish to read brief summary can skip to Luca's email [2]. To wrap it up the current handling IGMP/MLD messages in pf(4) is exact opposite. I failed to translate English

atactl: Update common SMART attribute names

2023-02-25 Thread Brian Conway
The last times the attribute names were updated were 14 and 21 years ago. Modern drives, especially SSDs, get a lot of Unknown columns from the 'readattr' command. Attributes were coalesced from smartmontools, NetBSD's atactl, and Wikipedia's citations. Manufacturer-specific attributes and over

Re: ttycreate from FreeBSD equivalent

2023-02-25 Thread jon
Thanks for your reply. Yes, I'm using ttymalloc but I'm having a hard time telling where the terminal has attached to. For context, I'm working on adding support for a certain cardbus 3g modem. For a while I considered using puc at cardbus but it seems both the interrupt handling and the non stand

cwm: don't draw colors with alpha

2023-02-25 Thread Martin Wijk
Hello, When using a compositor within cwm, some programs (like chrome and firefox) get a percentage of transparency applied to their border, while others (like xterm) don't. This diff fixes that by explicitly setting the alpha channel value for each color to 0x. (If someone wants transparency

Re: Fix broken UTF-8 decoding

2023-02-25 Thread Crystal Kolipe
On Sat, Feb 25, 2023 at 08:29:54PM +0100, Steffen Nurpmeso wrote: > Crystal Kolipe wrote in > : > |Currently it is not possible to use unicode codepoints > 0xFF on the \ > |console, > |because our UTF-8 decoding logic is badly broken. > | > |The code in question is in wsemul_subr.c, wsemul_ge

Re: Fix broken UTF-8 decoding

2023-02-25 Thread Steffen Nurpmeso
Crystal Kolipe wrote in : |Currently it is not possible to use unicode codepoints > 0xFF on the \ |console, |because our UTF-8 decoding logic is badly broken. | |The code in question is in wsemul_subr.c, wsemul_getchar(). | |The problem is that we calculate the number of bytes in a multi-by

Fix broken UTF-8 decoding

2023-02-25 Thread Crystal Kolipe
Currently it is not possible to use unicode codepoints > 0xFF on the console, because our UTF-8 decoding logic is badly broken. The code in question is in wsemul_subr.c, wsemul_getchar(). The problem is that we calculate the number of bytes in a multi-byte sequence by just looking at the high bit

Re: ttycreate from FreeBSD equivalent

2023-02-25 Thread Stuart Henderson
On 2023/02/25 11:32, jon@elytron.openbsd.amsterdam wrote: > Hello, I'm in the process of adapting a driver from freebsd to > openbsd. I was wondering what I should use in place of a call like > ttycreate(tmptty, TS_CALLOUT, "N%r", i); > > any hints appreciated, tmptty is a struct tty from /sys/ker

ttycreate from FreeBSD equivalent

2023-02-25 Thread jon
Hello, I'm in the process of adapting a driver from freebsd to openbsd. I was wondering what I should use in place of a call like ttycreate(tmptty, TS_CALLOUT, "N%r", i); any hints appreciated, tmptty is a struct tty from /sys/kern/tty.c (openbsd)

Re: iwx(4) -77 firmware diff for testing

2023-02-25 Thread Sven Wolf
Hi Stefan, thanks for your work. I also can confirm your patch. Thanks, Sven On 2/24/23 10:36, Mikhail wrote: On Wed, Feb 22, 2023 at 03:31:28PM +0100, Stefan Sperling wrote: Below is my work-in-progress diff to update iwx(4) to latest firmware. Every system tracking -current should already