Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!princeton!allegra!ulysses!sfmag!sfsup!mpl From: mpl@sfsup.UUCP Newsgroups: comp.unix.questions Subject: Re: How do I wait for Terminal IO to compleate?? Message-ID: <1333@sfsup.UUCP> Date: Mon, 20-Apr-87 09:54:33 EST Article-I.D.: sfsup.1333 Posted: Mon Apr 20 09:54:33 1987 Date-Received: Tue, 21-Apr-87 05:47:42 EST References: <245@uvicctr.UUCP> <740@mcgill-vision.UUCP> Organization: AT&T-IS, Summit N.J. USA Lines: 20 Summary: ioctl(... TCSBRK ...) In article <740@mcgill-vision.UUCP>, mouse@mcgill-vision.UUCP writes: > In article <245@uvicctr.UUCP>, sbanner1@uvicctr.UUCP (S. John Banner) writes: > You could look at the baud rate and calculate the delay time. > > > I know that there is an ioctl that will see if there is any pending > > input, but is there a similar one for output (I have looked, but I > > can't find it). > > You don't say what sort of system you are on. Presumably it is some > sort of UNIX. SysV? BSD4.2? BSD4.1? Xenix? what? > AT&T UNIX(Tm - UNIX is a trademark of AT&T Bell Laboratories, etc.) SYS V has the following (taken from the administraor's refernce manual): TCSBRK Wait for the output to drain. If arg is 0, then send a BREAK. Mike Lindner ihnp4!attunix!mpl