Re: missing FreeBSD stdio patch

2023-10-04 Thread enh
On Wed, Oct 4, 2023 at 12:46 PM Todd C. Miller wrote: > > On Wed, 04 Oct 2023 11:53:51 -0600, Todd C. Miller wrote: > > > Yes, this should be fixed. One difference is that in FreeBSD, > > __swsetup() sets errno whereas in OpenBSD we set errno in the caller > > when cantwrite() is true. I think i

Re: missing FreeBSD stdio patch

2023-10-04 Thread Todd C . Miller
On Wed, 04 Oct 2023 11:53:51 -0600, Todd C. Miller wrote: > Yes, this should be fixed. One difference is that in FreeBSD, > __swsetup() sets errno whereas in OpenBSD we set errno in the caller > when cantwrite() is true. I think it makes sense to set both errno > and the __SERR flag in the same

Re: missing FreeBSD stdio patch

2023-10-04 Thread Todd C . Miller
On Tue, 03 Oct 2023 16:09:12 -0700, enh wrote: > looks like OpenBSD is missing this patch from FreeBSD? llvm libc++ hit > this (a test worked on other OSes, including FreeBSD-based macOS) but > failed on OpenBSD-based Android. > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=127335 was the > or