Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Aug 98 14:17:46 +0000
From:      "System Administrator" <igor@ns.online.samara.ru>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   read timeout
Message-ID:  <AAA6OtrODQ@ns.online.samara.ru>

next 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

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?AAA6OtrODQ>