bin/166660: [libc] [patch] New util/shlib to change per-fd
default stdio buffering mode
John Baldwin
jhb at FreeBSD.org
Mon Apr 9 15:40:13 UTC 2012
The following reply was made to PR bin/166660; it has been noted by GNATS.
From: John Baldwin <jhb at FreeBSD.org>
To: bug-followup at FreeBSD.org, jeremie at le-hen.org
Cc:
Subject: Re: bin/166660: [libc] [patch] New util/shlib to change per-fd default
stdio buffering mode
Date: Mon, 09 Apr 2012 11:30:08 -0400
I think it would be fine to do this in libc directly rather than via
LD_PRELOAD. That would let it work for static binaries as well as
dynamic libraries. My understanding is that this is how stdbuf works on
Linux (glibc honors the relevant magic environment variables). To that
end, I think it would be ok to move this into libc directly.
One more question, do you use the same environment variable as glibc for
this, or do you use a different scheme?
--
John Baldwin
More information about the freebsd-bugs
mailing list