*BSD News Article 26485


Return to BSD News archive

Newsgroups: comp.os.386bsd.bugs
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!decwrl!nic.hookup.net!news.kei.com!sol.ctr.columbia.edu!howland.reston.ans.net!EU.net!Germany.EU.net!netmbx.de!zrz.TU-Berlin.DE!math.fu-berlin.de!fub46!gusw
From: gusw@zedat.fu-berlin.de (Gunther Shadow)
Subject: termios' VMIN/VTIME: is it implemented at all?
Message-ID: <CWDLBFNW@math.fu-berlin.de>
Keywords: VTIME VMIN termios.h read() timeout [mv]getty
Sender: news@math.fu-berlin.de (Math Department)
Nntp-Posting-Host: fub46.zedat.fu-berlin.de
Organization: Free University of Berlin, Germany
Date: Tue, 25 Jan 1994 18:46:56 GMT
Lines: 23

Hi all,

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).

any hint is greatly appreciated
regards,
-Gunther