[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.1 and 1.2

version 1.1, 2009/07/25 08:44:27 version 1.2, 2009/09/27 11:51:20
Line 72 
Line 72 
         hdl = mio_open(path, mode, 1);          hdl = mio_open(path, mode, 1);
         if (hdl == NULL)          if (hdl == NULL)
                 return NULL;                  return NULL;
         f = (struct miofile *)file_new(ops, "miohdl", mio_nfds(hdl));          f = (struct miofile *)file_new(ops, "hdl", mio_nfds(hdl));
         if (f == NULL)          if (f == NULL)
                 goto bad_close;                  goto bad_close;
         f->hdl = hdl;          f->hdl = hdl;
Line 92 
Line 92 
         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)) {
                         fprintf(stderr, "miofile_read: eof\n");  
                         file_eof(&f->file);                          file_eof(&f->file);
                 } else {                  } else {
                         DPRINTFN(3, "miofile_read: %s: blocking...\n",  
                             f->file.name);  
                 }                  }
                 return 0;                  return 0;
         }          }
Line 114 
Line 111 
         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)) {
                         fprintf(stderr, "miofile_write: %s: hup\n", f->file.name);  
                         file_hup(&f->file);                          file_hup(&f->file);
                 } else {                  } else {
                         DPRINTFN(3, "miofile_write: %s: blocking...\n",  
                             f->file.name);  
                 }                  }
                 return 0;                  return 0;
         }          }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2