Date: Thu, 27 Jul 2000 10:49:55 +1000 (EST) From: Bruce Evans <bde@zeta.org.au> To: Brian Dean <brdean@unx.sas.com> Cc: freebsd-arch@FreeBSD.ORG Subject: Re: isatty() reports false results Message-ID: <Pine.BSF.4.21.0007271038001.4809-100000@besplex.bde.org> In-Reply-To: <Pine.BSF.4.21.0007250857130.51871-100000@tribble.unx.sas.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 25 Jul 2000, Brian Dean wrote: > My question - does anyone know if this logic will break anything else, > i.e., a case where a call to 'tcgetattr()' with a descriptor that > *does not* refer to a tty will return EAGAIN? I haven't seen anything Probably not. POSIX.1 says that tcgetattr() shall return EBADF for non- open files and ENOTTY for non-terminals. These are the only errors mentioned in POSIX.1. Returning EAGAIN is probably a bug. OTOH, checking for only EAGAIN is a bug if there are any other undocumented error returns. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0007271038001.4809-100000>