*BSD News Article 98605


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!uunet!in2.uu.net!206.154.70.8!news.webspan.net!ix.netcom.com!zdc-e!super.zippo.com!feed1.news.erols.com!howland.erols.net!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news-feed.inet.tele.dk!uninett.no!due.unit.no!usenet
From: Steinar Hamre <steinarh@fm.unit.no>
Newsgroups: comp.emulators.ms-windows.wine,comp.unix.bsd.freebsd.misc
Subject: Re: Wine970616 make problem under FreeBSD 2.2.1
Date: 27 Jun 1997 00:40:05 +0200
Organization: Norwegian University of Science and Technology
Lines: 35
Sender: steinarh@demokrit.fm.unit.no
Message-ID: <cn2zpsdf0oq.fsf@demokrit.fm.unit.no>
References: <cjqjo5.idh.ln@dolphin.neosoft.com> <5ok4vj$6qr$1@dismay.ucs.indiana.edu> <5omcrt$l7r@rznews.rrze.uni-erlangen.de> <ktdro5.o81.ln@dolphin.neosoft.com> <5oufis$ij0@rznews.rrze.uni-erlangen.de>
NNTP-Posting-Host: demokrit.fm.unit.no
X-Newsreader: Gnus v5.4.59/Emacs 19.34
Xref: euryale.cc.adfa.oz.au comp.emulators.ms-windows.wine:8443 comp.unix.bsd.freebsd.misc:43628

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.
> >>>
> >>>I looked for this in a bunch of different Unix systems and couldn't
> >>>find it anywhere.  It must be a Linuxism....   :(

[...]
> 
> 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...

	Steinar