On 2026-06-21 20:49, Martin Storsjö wrote:
On Sun, 21 Jun 2026, Pali Rohár wrote:
Both mingw-w64 implementations are just wrapper around CRT _pipe()
function.
---
I don't think we should start implementing new POSIX functions (even if
they exist in the CRT as underscore prefixed versions) unless we really
have a strong reason for it.
Changing which functions exist and which don't, especially for
functions which user code might be providing if missing, easily can
break user code. (Yes, ideally such code shouldn't check if the
functions exist or not before providing them. But this doesn't always
happen.) This already happened e.g. with busybox for the mkdtemp
addition a couple months ago - where the addition of the new function
wasn't motivated other than for sharing code for testcases.
So I'm hesitant about this unless I hear a good motivation.
I learned about this the hard way when my patch broke tons of codebases
by adding strndup.
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public