Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!rpi!zaphod.mps.ohio-state.edu!usc!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!mcsun!unido!rwthinf!cip-s01.informatik.rwth-aachen.de!u31b3hs From: u31b3hs@cip-s01.informatik.rwth-aachen.de (Michael Haardt) Newsgroups: comp.os.minix Subject: A bug in MINIX PC 1.5.10 printer driver ? Message-ID: <3711@rwthinf.UUCP> Date: 28 Nov 90 09:56:30 GMT Sender: news@rwthinf.UUCP Reply-To: u31b3hs@cip-s01.informatik.rwth-aachen.de (Michael Haardt) Organization: Informatik RWTH Aachen Lines: 24 Hello world! I don't know if I am right, but in my opinion, there is a bug in the MINIX PC 1.5.10 printer driver. If a write(2) sends data to the printer (I use blocks of 1024 bytes) and a io error occurs (no paper etc...), write should return the number of bytes it has written. The next time, you call write with a number of bytes greater zero, it should return -1 and errno should be set to EIO. This is what I am thinking about it, but its not the way MINIX does it. If an io error occurs while write sends data to the printer, it returns -1 and sets errno. There seems to be no way to adept the number of bytes the printer got before this error! I need to write blocks of data, because one write for each character is very slow. I need help, because this is the last bug, I have to remove from my own pretty nice lineprinter spooler before I can post it. This lineprinter spooler consists of a deamon lpd, a frontend lpr and a lpq. It is very small, but exactly what is missing in MINIX. It can print text and graphics, which is neccesary for a text formatter I am writing (announcement in a few weeks). Please help and post advice Michael (u31b3hs@cip-s01.informatik.rwth-aachen.de) ------------------------------------ Namaskaar ------------------------------------------