Re: usblp not waiting for read data

2008-01-02 Thread Pete Zaitcev
On Wed, 2 Jan 2008 15:25:11 +0100, Martin Mares <[EMAIL PROTECTED]> wrote: > | open("/dev/usb/lp0", O_RDONLY|O_LARGEFILE) = 3 > | fstat64(3, {st_mode=S_IFCHR|0660, st_rdev=makedev(180, 0), ...}) = 0 > | read(3, "", 4096) = 0 > | close(3)= 0 Fi

Re: usblp not waiting for read data

2008-01-02 Thread Martin Mares
Hello! > You aren't opening it with O_NDELAY by any chance? Hopefully not :) Even plain cat exhibits the problem. > Please look with strace. | albireo:/home/mj# strace cat /dev/usb/lp0 | execve("/bin/cat", ["cat", "/dev/usb/lp0"], [/* 34 vars */]) = 0 | uname({sys="Linux", node="albireo", ...

Re: usblp not waiting for read data

2007-12-30 Thread Pete Zaitcev
On Sat, 29 Dec 2007 22:15:21 +0100, Martin Mares <[EMAIL PROTECTED]> wrote: > I am currently playing with HP LaserJet P2015D connected over USB and > I have a slight problem with the usblp driver there. Whenever I try to > read from /dev/usb/lp0 and no data are available, it immediately returns >

usblp not waiting for read data

2007-12-29 Thread Martin Mares
Hello, world! I am currently playing with HP LaserJet P2015D connected over USB and I have a slight problem with the usblp driver there. Whenever I try to read from /dev/usb/lp0 and no data are available, it immediately returns reporting EOF (0 bytes read) instead of waiting for the data. Does any