POSIX requires that the 'b' flag of fmemopen have no effect. But the resolution to bug 6544 commandeered the 'b' flag to make fmemopen disobey POSIX. Please use a different flag than 'b', or get POSIX changed to leave the behavior of fmemopen and 'b' unspecified.
No, this is existing practice on which the standard was based.
(In reply to comment #1) > No, this is existing practice on which the standard was based. Actually, the standard was based on the fmemopen() behavior that existed in 2006, when glibc ignored 'b'. However, I've opened an Austin Group bug to see who needs to change (glibc, POSIX, or both). http://austingroupbugs.net/view.php?id=396 Based on the outcome of that POSIX bug, glibc may yet need to change its implementation to comply, so I'm reopening this glibc bug.
Stop reopening the bug. There will be no change. The existing behavior is common practice and the functionality is needed.