[Libsysio-commit] HEAD: libsysio/include file.h
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2005-06-16 21:15:23
|
Update of /cvsroot/libsysio/libsysio/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13980/include Modified Files: file.h Log Message: Cease tracking the file opens by referencing the inode as well. F_INIT no longer takes the first reference. It must be done explicitly by the caller now. Index: file.h =================================================================== RCS file: /cvsroot/libsysio/libsysio/include/file.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -w -b -B -p -r1.10 -r1.11 --- file.h 27 Jul 2004 14:20:43 -0000 1.10 +++ file.h 16 Jun 2005 21:14:39 -0000 1.11 @@ -64,7 +64,6 @@ struct file { do { \ (fil)->f_ref++; \ assert((fil)->f_ref); \ - I_REF((fil)->f_ino); \ } while (0) /* @@ -79,7 +78,6 @@ struct file { ino = (fil)->f_ino; \ if (!(fil)->f_ref) \ _sysio_fgone(fil); \ - I_RELE(ino); \ } while (0) /* @@ -91,7 +89,7 @@ struct file { do { \ (fil)->f_ino = (ino); \ (fil)->f_pos = 0; \ - (fil)->f_ref = 1; \ + (fil)->f_ref = 0; \ (fil)->f_flags = (flags); \ } while (0) |