[BACK]Return to miofile.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / aucat

Diff for /src/usr.bin/aucat/Attic/miofile.c between version 1.3 and 1.4

version 1.3, 2009/11/05 08:36:48 version 1.4, 2010/01/10 21:47:41
Line 27 
Line 27 
 #include "conf.h"  #include "conf.h"
 #include "file.h"  #include "file.h"
 #include "miofile.h"  #include "miofile.h"
   #ifdef DEBUG
   #include "dbg.h"
   #endif
   
 struct miofile {  struct miofile {
         struct file file;          struct file file;
Line 94 
Line 97 
         if (n == 0) {          if (n == 0) {
                 f->file.state &= ~FILE_ROK;                  f->file.state &= ~FILE_ROK;
                 if (mio_eof(f->hdl)) {                  if (mio_eof(f->hdl)) {
   #ifdef DEBUG
                           dbg_puts(f->file.name);
                           dbg_puts(": failed to read from device\n");
   #endif
                         file_eof(&f->file);                          file_eof(&f->file);
                 } else {                  } else {
   #ifdef DEBUG
                           if (debug_level >= 4) {
                                   file_dbg(&f->file);
                                   dbg_puts(": reading blocked\n");
                           }
   #endif
                 }                  }
                 return 0;                  return 0;
         }          }
Line 113 
Line 126 
         if (n == 0) {          if (n == 0) {
                 f->file.state &= ~FILE_WOK;                  f->file.state &= ~FILE_WOK;
                 if (mio_eof(f->hdl)) {                  if (mio_eof(f->hdl)) {
   #ifdef DEBUG
                           dbg_puts(f->file.name);
                           dbg_puts(": failed to write on device\n");
   #endif
                         file_hup(&f->file);                          file_hup(&f->file);
                 } else {                  } else {
   #ifdef DEBUG
                           if (debug_level >= 4) {
                                   file_dbg(&f->file);
                                   dbg_puts(": writing blocked\n");
                           }
   #endif
                 }                  }
                 return 0;                  return 0;
         }          }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4