*BSD News Article 98633


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!newsfeed.internetmci.com!uuneo.neosoft.com!not-for-mail
From: conrads@neosoft.com (Conrad Sabatier)
Newsgroups: comp.emulators.ms-windows.wine,comp.unix.bsd.freebsd.misc
Subject: Re: Wine970616 make problem under FreeBSD 2.2.1
Date: Fri, 27 Jun 1997 17:29:55 -0500
Organization: NeoSoft, Inc.  
Lines: 38
Message-ID: <3te1p5.p6.ln@dolphin.neosoft.com>
References: <cjqjo5.idh.ln@dolphin.neosoft.com> <ktdro5.o81.ln@dolphin.neosoft.com> <5oufis$ij0@rznews.rrze.uni-erlangen.de> <cn2zpsdf0oq.fsf@demokrit.fm.unit.no>
Reply-To: conrads@neosoft.com (Conrad Sabatier)
NNTP-Posting-Host: as5200-port-254.no.neosoft.com
X-Newsreader: trn 4.0-test58 (13 May 97)
Originator: conrads@neosoft.com (Conrad Sabatier)
Xref: euryale.cc.adfa.oz.au comp.emulators.ms-windows.wine:8455 comp.unix.bsd.freebsd.misc:43656

In article <cn2zpsdf0oq.fsf@demokrit.fm.unit.no>,
Steinar Hamre  <steinarh@fm.unit.no> wrote:
>msmeissn@cip.informatik.uni-erlangen.de (Marcus Meißner) writes:
>
>> In article <ktdro5.o81.ln@dolphin.neosoft.com>,
>> Conrad Sabatier <conrads@neosoft.com> wrote:
>> >In article <5omcrt$l7r@rznews.rrze.uni-erlangen.de>,
>> >Marcus Meißner <msmeissn@cip.informatik.uni-erlangen.de> wrote:
>> >>In article <5ok4vj$6qr$1@dismay.ucs.indiana.edu>,
>> >>John Fieber <jfieber@indiana.edu> wrote:
>> >>>In article <cjqjo5.idh.ln@dolphin.neosoft.com>,
>> >>>	conrads@neosoft.com (Conrad Sabatier) writes:
>> >>>
>> >>>> ./comm.c:801: `TIOCINQ' undeclared (first use this function)
>> >>>> *** Error code 1
>> >>>> 
>> >>>> I can't find a definition for TIOCINQ anywhere on my system.  I do have
>> >>>> TIOCOUTQ.
>> 
>> TIOCINQ (after the linux kernel sources) return the number of characters
>> readable on the specified filedescriptor (belonging to a terminal or a 
>> network connection).
>> 
>> Probably that BSD has an equivalent for it, which we can use.
>
>On a linuxbox:
>/usr/include/asm/ioctls.h:#define TIOCINQ               FIONREAD
>
>I looks like bouth most BSD and SYSV-variants has FIONREAD defined. So
>that might be a better choice...

Cool.  I defined TIOCINQ in terms of FIONREAD.  Fixed *that* error.

Now, on to the others...  :-)
-- 
Conrad Sabatier
http://www.neosoft.com/~conrads