From owner-freebsd-hackers Wed May 26 23:55:38 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from linux.cca.usart.ru (linux.cca.usart.ru [194.226.230.161]) by hub.freebsd.org (Postfix) with ESMTP id 796B5151C6 for ; Wed, 26 May 1999 23:53:22 -0700 (PDT) (envelope-from max@cca.usart.ru) Received: from localhost (max@localhost) by linux.cca.usart.ru (8.9.1/8.9.1) with SMTP id LAA31526 for ; Thu, 27 May 1999 11:57:44 +0600 Date: Thu, 27 May 1999 11:57:41 +0600 (ESD) From: Max Gotlib To: hackers@freebsd.org Subject: Serial ports programming In-Reply-To: <374CB3D5.6F66ADC3@softweyr.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! Some days ago I've faced with the following problem: I need some kind of action (while coding user space program actively handling the serial port) to get sure all the bytes I've wrote to it are _transmitted_. I know about "ioctl(fd, TIOCDRAIN)", but this ioctl is accomplished with tty buffers draining to (probably) FIFO buffer of the serial port. Is there any (portable preferably) way to get an acknolege or to block until FIFO buffer is cleared? The situation is that I can't simply write additional 64 bytes (I did not see any serial ports with FIFO larger than 64 bytes) and drain the tty buffers - I have to catch the exact moment ... Thanks in advance, Max. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message