Article View: gnu.chess
Article #5950Re: what is 'setlinebuf' ?
From: Ronald Cole
Date: Tue, 20 Aug 1991 14:54
Date: Tue, 20 Aug 1991 14:54
27 lines
1604 bytes
1604 bytes
In article <1991Aug19.201813.26297@infonode.ingr.com> drew@drew.ingr.com (Drew Mills) writes:
In the file nondsp.c, a call is made to 'setlinebuf()'. I don't have this
in SYSV. What does this routine do? Is there a SYSV equivalent?
The code is displayed here with setlinebuf commented out:
void
Initialize (void)
{
mycnt1 = mycnt2 = 0;
#ifdef CHESSTOOL
/*setlinebuf (stdout);*/
/* setvbuf(stdout,NULL,_IOLBF,BUFSIZ); */
printf ("Chess\n");
if (Level == 0 && !TCflag)
Level = 15;
#endif /* CHESSTOOL */
}
See that setvbuf() line under it? uncomment that.
--
Ronald Cole +----------------------+ internet: rjc@unify.com
Software Engineer II | This space for rent. | uucp: uunet!unify!rjc
Unify Corporation +----------------------+ voice: +1 916 928 6238
"Many people would sooner die than think. In fact, they do" - B. Russell
Technical Details
Message-ID:
<RJC.91Aug20165453@devo.unify.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wupost!csus.edu!csusac!unify!unify!rjcReferences:
<1991Aug19.201813.26297@infonode.ingr.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,b0a871b25d4c89b1 X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1991-08-21 00:23:15 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wupost!csus.edu!csusac!unify!unify!rjc From: rjc@devo.unify.com (Ronald Cole) Newsgroups: gnu.chess Subject: Re: what is 'setlinebuf' ? Message-ID: <RJC.91Aug20165453@devo.unify.com> Date: 20 Aug 91 14:54:53 GMT References: <1991Aug19.201813.26297@infonode.ingr.com> Sender: news@Unify.Com (news admin) Organization: Unify Corporation, Sacramento, California Lines: 27 In-Reply-To: drew@drew.ingr.com's message of Mon, 19 Aug 1991 20:18:13 GMT