Date: Fri, 21 Aug 1998 18:04:05 -0500 (CDT) From: Joel Ray Holveck <joelh@gnu.org> To: igor@ns.online.samara.ru Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: read timeout Message-ID: <199808212304.SAA00620@detlev.UUCP> In-Reply-To: <AAA6OtrODQ@ns.online.samara.ru> (igor@ns.online.samara.ru) References: <AAA6OtrODQ@ns.online.samara.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
> i read from tty: > fd = open(/dev/cuaa0, O_RDWR) > n = read(fd, &c, 1) > may I set timeout in which read wait data ? > if no data read must return 0 RTFM: select(2) Best, joelh -- Joel Ray Holveck - joelh@gnu.org - http://www.wp.com/piquan Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped 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?199808212304.SAA00620>