Re: kmsg: lseek errors confuse glibc's dprintf

2019-03-21 Thread Mike Crowe
On Thursday 21 March 2019 at 11:33:33 +0100, Arnd Bergmann wrote: > On Thu, Mar 21, 2019 at 10:47 AM Alexander Sverdlin > wrote: > > > > Hello Mike and all, > > > > On Thu, 15 Jan 2015 17:31:32 + > > Mike Crowe wrote: > > > > > glibc's dprintf implementation does not work correctly with /dev/

Re: Re: kmsg: lseek errors confuse glibc's dprintf

2019-03-21 Thread Sverdlin, Alexander (Nokia - DE/Ulm)
Hi! On 21/03/2019 13:38, Mike Crowe wrote: [...] > I don't mind rebasing my patch once I know which of my two solutions is > preferred. It seems that the -ESPIPE one is the current favourite. I think: 1. Since Linux v4.8 (!user) case in not possible any more if the device file was opened in wr

Re: kmsg: lseek errors confuse glibc's dprintf

2019-03-21 Thread Mike Crowe
On Thursday 21 March 2019 at 10:47:26 +0100, Alexander Sverdlin wrote: > Hello Mike and all, > > On Thu, 15 Jan 2015 17:31:32 + > Mike Crowe wrote: > > > glibc's dprintf implementation does not work correctly with /dev/kmsg file > > descriptors because glibc treats receiving EBADF and EINVAL

Re: kmsg: lseek errors confuse glibc's dprintf

2019-03-21 Thread Arnd Bergmann
On Thu, Mar 21, 2019 at 10:47 AM Alexander Sverdlin wrote: > > Hello Mike and all, > > On Thu, 15 Jan 2015 17:31:32 + > Mike Crowe wrote: > > > glibc's dprintf implementation does not work correctly with /dev/kmsg file > > descriptors because glibc treats receiving EBADF and EINVAL from lseek

Re: kmsg: lseek errors confuse glibc's dprintf

2019-03-21 Thread Alexander Sverdlin
Hello Mike and all, On Thu, 15 Jan 2015 17:31:32 + Mike Crowe wrote: > glibc's dprintf implementation does not work correctly with /dev/kmsg file > descriptors because glibc treats receiving EBADF and EINVAL from lseek when > trying to determine the current file position as errors. See > htt

Re: kmsg: lseek errors confuse glibc's dprintf

2015-01-30 Thread Mike Crowe
On Friday 23 January 2015 at 15:09:39 -0800, Andrew Morton wrote: > On Thu, 15 Jan 2015 17:31:32 + Mike Crowe wrote: > > > glibc's dprintf implementation does not work correctly with /dev/kmsg file > > descriptors because glibc treats receiving EBADF and EINVAL from lseek when > > trying to d

Re: kmsg: lseek errors confuse glibc's dprintf

2015-01-23 Thread Andrew Morton
On Thu, 15 Jan 2015 17:31:32 + Mike Crowe wrote: > glibc's dprintf implementation does not work correctly with /dev/kmsg file > descriptors because glibc treats receiving EBADF and EINVAL from lseek when > trying to determine the current file position as errors. See > https://sourceware.org/b

kmsg: lseek errors confuse glibc's dprintf

2015-01-15 Thread Mike Crowe
glibc's dprintf implementation does not work correctly with /dev/kmsg file descriptors because glibc treats receiving EBADF and EINVAL from lseek when trying to determine the current file position as errors. See https://sourceware.org/bugzilla/show_bug.cgi?id=17830 >From what I can tell prior to K