Article View: gnu.chess
Article #5741Re: Problem with FIONREAD on SPARC
From: Marco Chew
Date: Tue, 30 Jun 1992 01:22
Date: Tue, 30 Jun 1992 01:22
26 lines
1538 bytes
1538 bytes
In article <1992Jun29.122726.27816@cenaath.cena.dgac.fr>, desquine@stna.dgac.fr (Bruno Desquines STNA 7SU p8069 BD24) writes:
|>
|> First , thanks to Stuart Cracraft for his work on Gnuchess.
|>
|> I have a problem with gnuchess4.0.pl52 , I can't execute it .
|> I've got always the same message , error ioctl with FIONREAD.
|> I've tried to compile it with gcc1.40 , gcc2.0 and gcc2.2 without success.
|>
|> Anybody can help me ? Thanks a lot.
I ran dspcom.c through the c preprocessor (/usr/lib/cpp) with all the
compilation flags to determine what FIONREAD was finally defined to and then
inserted it into dspcom.c. The following is valid for Sparc SunOS4.1:
#ifdef FIONREAD
/* if (i = ioctl ((int) 0, FIONREAD, &nchar)) */
if (i = ioctl ((int) 0, (0x40000000|((sizeof( int)&0xff)<<16)|('f'<<8)| 127), &nchar))
...
--
Marko Chew
Actel Corporation
Sunnyvale, CA
Technical Details
Message-ID:
<1992Jun30.012216.18028@actel.sunnyvale.ca.us>Path:
arc1-ca.pugleaf.net!sparky!uunet!nntp1.radiomail.net!fernwood!actel!actel.com!mpcReferences:
<1992Jun29.122726.27816@cenaath.cena.dgac.fr>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,59953e5278b81dd8 X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1992-06-29 08:10:22 PST Newsgroups: gnu.chess Path: arc1-ca.pugleaf.net!sparky!uunet!nntp1.radiomail.net!fernwood!actel!actel.com!mpc From: mpc@actel.com (Marco Chew) Subject: Re: Problem with FIONREAD on SPARC Message-ID: <1992Jun30.012216.18028@actel.sunnyvale.ca.us> Sender: news@actel.sunnyvale.ca.us (USENET bboard) Organization: Actel Corporation References: <1992Jun29.122726.27816@cenaath.cena.dgac.fr> Distribution: na Date: Tue, 30 Jun 1992 01:22:16 GMT Lines: 26