Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!noao!asuvax!mcdphx!estinc!fnf From: fnf@estinc.UUCP (Fred Fish) Newsgroups: comp.unix.wizards Subject: Re: Help: close() returns -1 Message-ID: <56@estinc.UUCP> Date: 6 Feb 89 01:40:23 GMT References: <4369@jpl-devvax.JPL.NASA.GOV> Reply-To: fnf@estinc.UUCP (Fred Fish) Distribution: na Organization: Enhanced Software Technologies, Inc. Lines: 15 In article <4369@jpl-devvax.JPL.NASA.GOV> jackm@devvax.JPL.NASA.GOV (Jack Morrison) writes: >I have written a simple driver for a parallel port on a Sun 3/260. >Everything works except for one thing: close() returns an error >status (-1), with errno=1 (not owner). I don't know if it is related or not, but under SunOS 4.0 on a Sun-4, a close() on the tape device /dev/rst8, after writing data to the tape, returns a -1 with errno=EPERM. Apparently none of the standard UNIX utilities that write to the tape drive bother to check the return status of close()... :-( -Fred -- # Fred Fish, 1835 E. Belmont Drive, Tempe, AZ 85284, USA # 1-602-491-0048 asuvax!{nud,mcdphx}!estinc!fnf