From owner-freebsd-bugs@FreeBSD.ORG Mon Apr 9 15:40:13 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CE59D106564A for ; Mon, 9 Apr 2012 15:40:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B97C38FC14 for ; Mon, 9 Apr 2012 15:40:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q39FeDqW096037 for ; Mon, 9 Apr 2012 15:40:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q39FeDgb096036; Mon, 9 Apr 2012 15:40:13 GMT (envelope-from gnats) Date: Mon, 9 Apr 2012 15:40:13 GMT Message-Id: <201204091540.q39FeDgb096036@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: John Baldwin Cc: Subject: Re: bin/166660: [libc] [patch] New util/shlib to change per-fd default stdio buffering mode X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Baldwin List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Apr 2012 15:40:13 -0000 The following reply was made to PR bin/166660; it has been noted by GNATS. From: John Baldwin 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