Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Nov 1999 00:48:12 -0800
From:      Mike Smith <mike@smith.net.au>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        Mike Nowlin <mike@argos.org>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: serial (std & rocketport) ioctl? 
Message-ID:  <199911100848.AAA00489@dingo.cdrom.com>
In-Reply-To: Your message of "Wed, 10 Nov 1999 01:11:57 PST." <Pine.BSF.4.05.9911100109290.12797-100000@fw.wintelcom.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
> I'm not a serial expert, but maybe the direction you need to take
> is looking at /usr/include/sys/ttycom.h, several ioctl's seem to
> be what you're looking for, noteably:
> 
> #define	TIOCDRAIN	 _IO('t', 94)		/* wait till output drained */
> 
> maybe that's incorrect, but i'm sure one or a combination of a few
> ioctls from that header will help you out.

The default behaviour for most serial adapters is also to defer 
returning from close until the port has drained.  (or timed out after 
an insane period).  We do support waiting on drain as a general 
principle.

-- 
\\ Give a man a fish, and you feed him for a day. \\  Mike Smith
\\ Tell him he should learn how to fish himself,  \\  msmith@freebsd.org
\\ and he'll hate you for a lifetime.             \\  msmith@cdrom.com




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911100848.AAA00489>