[gforth] / gforth / Attic / io.c  

gforth: gforth/Attic/io.c

Diff for /gforth/Attic/io.c between version 1.19 and 1.20

version 1.19, Sun Feb 16 20:51:08 1997 UTC version 1.20, Tue Mar 4 22:09:54 1997 UTC
Line 615 
Line 615 
   
   if(!terminal_prepped)  prep_terminal();    if(!terminal_prepped)  prep_terminal();
   
 #if defined (FIONREAD)  #ifndef _WIN32
   result = ioctl (tty, FIONREAD, &chars_avail);    result = ioctl (tty, FIONREAD, &chars_avail);
   #else
     {
        fd_set selin;
        static int now[2] = { 0 , 0 };
        int res;
   
        FD_ZERO(&selin);
        FD_SET(tty, &selin);
        chars_avail=select(1, &selin, NULL, NULL, now);
     }
 #endif  #endif
   
   if(chars_avail == -1L)    if(chars_avail == -1L)


Generate output suitable for use with a patch program
Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help