🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Drew Mills Mon, 19 Aug 1991 20:18
what is 'setlinebuf' ?
#5947
Author: 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                      |
 \________________________________________________________________________/
Re: what is 'setlinebuf' ?
#5950
Author: Ronald Cole
Date: Tue, 20 Aug 1991 14:54
27 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads