From owner-freebsd-hackers Sat Aug 22 07:48:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA07994 for freebsd-hackers-outgoing; Sat, 22 Aug 1998 07:48:15 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mail.camalott.com ([208.203.140.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA07987 for ; Sat, 22 Aug 1998 07:48:13 -0700 (PDT) (envelope-from joelh@gnu.org) Received: from detlev.UUCP (tex-114.camalott.com [208.229.74.114]) by mail.camalott.com (8.8.7/8.8.5) with ESMTP id JAA19739; Sat, 22 Aug 1998 09:49:07 -0500 Received: (from joelh@localhost) by detlev.UUCP (8.9.1/8.9.1) id SAA00620; Fri, 21 Aug 1998 18:04:05 -0500 (CDT) (envelope-from joelh) Date: Fri, 21 Aug 1998 18:04:05 -0500 (CDT) Message-Id: <199808212304.SAA00620@detlev.UUCP> To: igor@ns.online.samara.ru CC: freebsd-hackers@FreeBSD.ORG In-reply-to: (igor@ns.online.samara.ru) Subject: Re: read timeout From: Joel Ray Holveck Reply-to: joelh@gnu.org References: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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