This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug stdio/17830] dprintf fails when file descriptor is connected to /dev/kmsg


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]