This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/17830] dprintf fails when file descriptor is connected to /dev/kmsg
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 30 Jan 2015 15:19:06 +0000
- Subject: [Bug stdio/17830] dprintf fails when file descriptor is connected to /dev/kmsg
- Auto-submitted: auto-generated
- References: <bug-17830-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17830
--- Comment #8 from Rich Felker <bugdal at aerifal dot cx> ---
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.