(file) Return to DirPOSIX.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/DirPOSIX.cpp between version 1.5 and 1.6

version 1.5, 2007/06/06 19:54:34 version 1.6, 2007/06/14 11:37:29
Line 58 
Line 58 
  
     if (_dirRep.dir)     if (_dirRep.dir)
     {     {
           // ATTN: DOI NOT REMOVE THE ERRNO=0 assignment
   
           // Reason: On some platforms readdir_r is a wrapper around
           // readdir. Without errno set to 0, readdir reports a bad return
           // code even in the case that just the end of directory was reached.
           errno=0;
         // Need to use readdir_r since we are multithreaded         // Need to use readdir_r since we are multithreaded
         if (readdir_r(_dirRep.dir, &_dirRep.buffer, &_dirRep.entry) != 0)         if (readdir_r(_dirRep.dir, &_dirRep.buffer, &_dirRep.entry) != 0)
         {         {
Line 91 
Line 97 
 { {
     if (_more)     if (_more)
     {     {
           // ATTN: DOI NOT REMOVE THE ERRNO=0 assignment
   
           // Reason: On some platforms readdir_r is a wrapper around
           // readdir. Without errno set to 0, readdir reports a bad return
           // code even in the case that just the end of directory was reached.
           errno=0;
         // Need to use readdir_r since we are multithreaded         // Need to use readdir_r since we are multithreaded
         if (readdir_r(_dirRep.dir, &_dirRep.buffer, &_dirRep.entry) != 0)         if (readdir_r(_dirRep.dir, &_dirRep.buffer, &_dirRep.entry) != 0)
         {         {


Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2