From owner-freebsd-hackers Fri Aug 21 07:48:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA14539 for freebsd-hackers-outgoing; Fri, 21 Aug 1998 07:48:49 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from bright.fx.genx.net (bright.fx.genx.net [206.64.4.154]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA14512 for ; Fri, 21 Aug 1998 07:48:44 -0700 (PDT) (envelope-from bright@www.hotjobs.com) Received: from localhost (bright@localhost) by bright.fx.genx.net (8.9.1/8.8.8) with SMTP id KAA00749; Fri, 21 Aug 1998 10:48:48 -0500 (EST) (envelope-from bright@hotjobs.com) X-Authentication-Warning: bright.fx.genx.net: bright owned process doing -bs Date: Fri, 21 Aug 1998 10:48:48 -0500 (EST) From: Alfred Perlstein X-Sender: bright@bright.fx.genx.net To: System Administrator cc: freebsd-hackers@FreeBSD.ORG Subject: Re: read timeout In-Reply-To: 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 man select man poll yes it's quite possible ;) Alfred Perlstein - Programmer, HotJobs Inc. - www.hotjobs.com -- There are operating systems, and then there's FreeBSD. -- http://www.freebsd.org/ 3.0-current On Fri, 21 Aug 1998, System Administrator wrote: > 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 > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message