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

Diff for /pegasus/src/Pegasus/Common/FileSystem.cpp between version 1.87 and 1.87.10.3

version 1.87, 2012/12/13 14:38:55 version 1.87.10.3, 2013/09/04 09:20:33
Line 447 
Line 447 
     return root;     return root;
 } }
  
   #ifdef PEGASUS_ENABLE_PROTOCOL_WEB
   
   String FileSystem::getAbsoluteFileName(
       const String& filename)
   {
   #ifdef PEGASUS_OS_LINUX
       char resolvedName[PATH_MAX+1];
   #endif
   #ifdef PEGASUS_OS_ZOS
       char resolvedName[_POSIX_PATH_MAX+1];
   #endif
   #ifdef PEGASUS_OS_TYPE_WINDOWS
       char resolvedName[MAX_PATH+1];
   #endif
   
       /*
        * ReturnValue:
        *    1) Upon successful completion, realpath() shall return a pointer to
        *        the buffer containing the resolved name. Otherwise, realpath()
        *        shall return a null pointer and set errno to indicate the error.
        *    2) If the resolved_name argument is a null pointer, the pointer
        *        returned by realpath() can be passed to free().
        *    3) If the resolved_name argument is not a null pointer and the
        *        realpath() function fails, the contents of the buffer pointed to
        *        by resolved_name are undefined.
        */
       char* result = realpath(filename.getCString(), resolvedName);
       if (!result)
       {// failed, resolvedName is undefined
           return String("");
       }
       return String(result);
   }
   
   #endif
   
 String FileSystem::buildLibraryFileName(const String &libraryName) String FileSystem::buildLibraryFileName(const String &libraryName)
 { {
     String fileName;     String fileName;


Legend:
Removed from v.1.87  
changed lines
  Added in v.1.87.10.3

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2