Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site codas.ATT.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!hjuxa!petsd!peora!codas!mikel From: mikel@codas.ATT.UUCP (Mikel Manitius) Newsgroups: net.unix,net.unix-wizards Subject: Re: Not a typewriter Message-ID: <564@codas.ATT.UUCP> Date: Wed, 18-Jun-86 10:10:44 EDT Article-I.D.: codas.564 Posted: Wed Jun 18 10:10:44 1986 Date-Received: Fri, 20-Jun-86 01:49:22 EDT References: <1683@homxb.UUCP> <542@codas.ATT.UUCP> <717@axis.UUCP> Organization: AT&T Information Systems, Altamonte Springs, FL Lines: 18 Xref: watmath net.unix:8231 net.unix-wizards:18462 >>>What does the sys_errlist message 'Not a typewriter' *really* mean?? >> >>I think there may be one or two system calls that will alter >>errno to be 25, without returning a non-zero value, when in >>fact there was no error. >> Mikel Manitius > >This is true. *However*, if you look at the documentation *carefully*, you >will find that it says that errno is only valid if the system call preceeding >it returned an error value. Well, there is an exception. If a read or write is interrupted by a signal, it will return 0 or number of bytes written before the interrupt occured. In this case errno = 4, and no error code is returned from the system call. -- Mikel Manitius @ AT&T-IS Altamonte Springs, FL ...{seismo!akgua|ihnp4|cbosgd}!codas!mikel.ATT.UUCP