From owner-freebsd-hackers Tue Jan 14 10:48:33 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id KAA29203 for hackers-outgoing; Tue, 14 Jan 1997 10:48:33 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id KAA29152 for ; Tue, 14 Jan 1997 10:47:58 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA00316; Tue, 14 Jan 1997 11:35:13 -0700 From: Terry Lambert Message-Id: <199701141835.LAA00316@phaeton.artisoft.com> Subject: Re: select() on a serial device--ignoring OS buffered chars? To: brandon@cold.org (Brandon Gillespie) Date: Tue, 14 Jan 1997 11:35:12 -0700 (MST) Cc: freebsd-hackers@freebsd.org In-Reply-To: from "Brandon Gillespie" at Jan 14, 97 10:48:47 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I have a function that does a read on a serial device that is set as > non-blocking. I have a monitor on the line and I KNOW the OS has the > characters sent to it, and they are likely buffered, but this function is > not behaving correctly. Are you sure? Are they buffered in an OS buffer, or are they buffered in the UART FIFO? If the UART FIFO, are you using a National 16550AF or better? Or are you using a UART that won't auto-flush it's FIFO to the host until the FIFO is full? Hopefully, answering these questions will help you understand the answer to yours... probably your request belongs on the -questions list, not -hackers. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.