*BSD News Article 26569


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!decwrl!envoy.wl.com!caen!spool.mu.edu!howland.reston.ans.net!pipex!sunic!trane.uninett.no!news.eunet.no!nuug!news.eunet.fi!KremlSun!kiae!relcom!newsserv
From: "Andrew A. Chernov, Black Mage" <ache@astral.msk.su>
Newsgroups: comp.os.386bsd.bugs
Subject: Re: termios' VMIN/VTIME: is it implemented at all?
Date: Wed, 26 Jan 94 02:26:37 +0300
Distribution: world
Organization: Olam HaYetzirah
Message-ID: <FXjgQHj8J1@astral.msk.su>
Sender: news-service@kiae.su
Reply-To: ache@astral.msk.su
Keywords: VTIME VMIN termios.h read() timeout [mv]getty
X-Return-Path: kiae!astral!astral.msk.su!ache
Lines: 31
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1656

In comp.os.386bsd.bugs Gunther Shadow writes:

>I run into problems with a very useful package, called
>`mgetty+sendfax' (and `vgetty` on top of it), which is developed by
>Linux folks (who are enourmously productive BTW), and which will make
>a data/fax and answer machine from my modem, so far it's fine. But it
>is unable to run correctly, because it makes the right assumption from
>what a read() in raw mode with VMIN=0 and VTIME=1 should do. In fact
>it doesnt. No timeout is happening for the read(), and this is
>essential.
>  So I tried to scan (grep) the kernel code for the passage, where
>VTIME and VMIN functionality is provided, I greped for "VMIN",
>"VTIME", "termios.h", "[ct]_cc", but I've found nothing appropriate.
>So what? Either I've searched for the wrong keywords, not knowing that
>kernel code is completely independant from the /usr/include/sys/*.h
>files, or the timeout functionality is simply not implemented. I can't
>believe neither of them. So can somebody explain me what's up here?
>BTW, The bug is encountered on both, FreeBSD (that's what I use) and
>NetBSD (that's what I've heard before).

Historycally, *BSD implements only VMIN=1 VTIME=0 case.
In lastest FreeBSD sources I implement VMIN=<any> VTIME=0 case.
Bruce Evans in addition implements VMIN=0 VTIME=<any> case,
but he is too busy right now to send me this changes.

-- 
Andrew A. Chernov        : And I rest so composedly,  /Now, in my bed,
ache@astral.msk.su       : That any beholder  /Might fancy me dead -
FidoNet: 2:5020/134.32   : Might start at beholding me,  /Thinking me dead.
RELCOM Team,FreeBSD Team :         E.A.Poe         From "For Annie" 1849