Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Apr 2012 15:40:13 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/166660: [libc] [patch] New util/shlib to change per-fd default stdio buffering mode
Message-ID:  <201204091540.q39FeDgb096036@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/166660; it has been noted by GNATS.

From: John Baldwin <jhb@FreeBSD.org>
To: bug-followup@FreeBSD.org, jeremie@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204091540.q39FeDgb096036>