def tcflush(space, w_fd, queue): fd = space.c_filedescriptor_w(w_fd) try: rtermios.tcflush(fd, queue) except OSError, e: raise convert_error(space, e)
def runs_tcall(): rtermios.tcsendbreak(2, 0) rtermios.tcdrain(2) rtermios.tcflush(2, rtermios.TCIOFLUSH) rtermios.tcflow(2, rtermios.TCOON) print "ok"