Article View: comp.sources.bugs
Article #823Re: cent problems (other than register)
From: Guy Harris
Date: Thu, 23 Jul 1987 06:50
Date: Thu, 23 Jul 1987 06:50
28 lines
1697 bytes
1697 bytes
> > I have tried to compile cent on both SysV (v3) and SCO Xenix sys V, and
> > both told me that TIOCOUTQ was undefined. How is it defined? I am sure
> > there's
> Use TIONREAD in place of the TIOCOUTQ define.
Not unless TIONREAD, despite its name, tells you how many characters are
buffered for output, rather than telling you how many are buffered
for input.
Furthermore, under vanilla S5, neither TIONREAD nor TIOCOUTQ are
defined at all.
> > SysV tells me that millitm isn't defined. I would guess this has something
> > to do with timeb.h and the timeb struct. Any ideas?
>
> You just have to munge the time processing since SYSV does not support time
> resolution finer than seconds. Since this is used for random number
> generation, you may just want to install your own random number seed
> function.
Actually, S5 does support time resolution finer than seconds, to some
degree; see TIMES(2). However, I've seen few game programs using any
finer-resolution time to seed random number generators, so it's
probably sufficient to use the result of "time".
Guy Harris
{ihnp4, decvax, seismo, decwrl, ...}!sun!guy
guy@sun.com
Technical Details
Message-ID:
<24033@sun.uucp>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!rochester!rutgers!labrea!aurora!ames!oliveb!sun!gorodish!guyReferences:
<85@auscso.UUCP> <337@rabbit1.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!rochester!rutgers!labrea!aurora!ames!oliveb!sun!gorodish!guy From: guy%gorodish@Sun.COM (Guy Harris) Newsgroups: comp.sources.bugs Subject: Re: cent problems (other than register) Message-ID: <24033@sun.uucp> Date: Thu, 23-Jul-87 02:50:40 EDT Article-I.D.: sun.24033 Posted: Thu Jul 23 02:50:40 1987 Date-Received: Sat, 25-Jul-87 05:36:08 EDT References: <85@auscso.UUCP> <337@rabbit1.UUCP> Sender: news@sun.uucp Lines: 28