Porting AT&T ioctl()'s to BSD???
egray at fthood.UUCP
egray at fthood.UUCP
Mon Jan 2 07:38:00 AEST 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
More information about the Comp.unix.questions
mailing list