From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15322 invoked by alias); 30 Jan 2015 15:19:23 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 15083 invoked by uid 48); 30 Jan 2015 15:19:10 -0000 From: "bugdal at aerifal dot cx" To: glibc-bugs@sourceware.org Subject: [Bug stdio/17830] dprintf fails when file descriptor is connected to /dev/kmsg Date: Fri, 30 Jan 2015 15:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: stdio X-Bugzilla-Version: 2.19 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugdal at aerifal dot cx X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg00280.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17830 --- Comment #8 from Rich Felker --- Yes. Presumably the seek is part of setting up the general-case FILE for glibc's libio stdio ops to know about, but it's completely irrelevant to a single write-only operation on a temporary FILE structure. dprintf should be operating more like the virtual FILEs used for snprintf, fmemopen, fopencookie, etc. rather than using the same ops as fopen so it doesn't pull in all this overhead to every write. -- You are receiving this mail because: You are on the CC list for the bug.