Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!lll-winken!lll-tis!ames!nrl-cmf!ukma!gatech!rutgers!att!chinet!les From: les@chinet.chi.il.us (Leslie Mikesell) Newsgroups: comp.unix.questions Subject: Re: input ready under UNIX ??!!?? Message-ID: <6851@chinet.chi.il.us> Date: 28 Oct 88 18:22:56 GMT Article-I.D.: chinet.6851 References: <771@necis.UUCP> <547@poseidon.ATT.COM> <320@auspex.UUCP> Reply-To: les@chinet.chi.il.us (Leslie Mikesell) Organization: Chinet - Public Access Unix Lines: 13 In article <320@auspex.UUCP> guy@auspex.UUCP (Guy Harris) writes: >>(1) Using fcntl(2), set file descriptor 0 to be non-blocking (what >>fcntl(5) calls O_NDELAY). If you want line-at-a-time input, keep >... >this means the bottom line is "'read()' will return 0 if no data has >been entered yet." On the AT&T 3b2 SysVr3.[01] logging in through the starlan network (streams based tty emulation) read() will return -1 when no data is available (and O_NDELAY is set). Les Mikesell