🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #5947

what is 'setlinebuf' ?

#5947
From: Drew Mills
Date: Mon, 19 Aug 1991 20:18
29 lines
1727 bytes
--
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 */
}


  ________________________________________________________________________
 /                                    |                                   \
|   Drew Mills                        | Mail Stop: IW17A3                  |
|   Cartographic Applications         | E-Mail:    drew@drew.b17a.ingr.com |
|   Intergraph Corporation            | Telephone: (205) 730-1809          |
|   Huntsville, Alabama  35894-0001   | FAX:       (205) 730-7629          |
|--------------------------------------------------------------------------|
|                   ...Consider yourself a disclaimee                      |
 \________________________________________________________________________/
Technical Details
Message-ID: <1991Aug19.201813.26297@infonode.ingr.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!infonode!drew!drew

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,b0a871b25d4c89b1,start
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 1991-08-19 17:49:51 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!infonode!drew!drew
From: drew@drew.ingr.com (Drew Mills)
Newsgroups: gnu.chess
Subject: what is 'setlinebuf' ?
Message-ID: <1991Aug19.201813.26297@infonode.ingr.com>
Date: 19 Aug 91 20:18:13 GMT
Sender: usenet@infonode.ingr.com (Usenet Administrator)
Reply-To: drew@drew.b17a.ingr.com
Organization: Intergraph Corporation, Cartographic Applications
Lines: 29