Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!csd4.milw.wisc.edu!uxc!uxc.cso.uiuc.edu!fthood!egray From: egray@fthood.UUCP Newsgroups: comp.unix.questions Subject: Porting AT&T ioctl()'s to BSD??? Message-ID: <7300002@fthood> Date: 1 Jan 89 21:38:00 GMT Lines: 19 Nf-ID: #N:fthood:7300002:000:726 Nf-From: fthood.UUCP!egray Jan 1 15:38:00 1989 Howdy.. I've got some problems porting AT&T code to BSD that someone may have some experience with. I need the ability to flush the TTY input queue, output queue, or both similar to what AT&T does with ioctl(fd, TCFLSH, n). I can't use BSD's icotl(fd, TCIOFLUSH, 0) since it always flushed both queues. Also, I'd like a way to emulate AT&T's ioctl(fd, TCSBRK, 1) that waits for the output of the queue to drain. I suspect BSD's select() could be used? Examples and/or code fragments would be much appreciated! Emmet P. Gray US Army, HQ III Corps & Fort Hood ...!uunet!uiucuxc!fthood!egray Attn: AFZF-DE-ENV Directorate of Engineering & Housing Environmental Management Office Fort Hood, TX 76544-5057