Changeset 903
- Timestamp:
- 03/19/08 21:57:59
- Files:
-
- trunk/applications/osgdem/osgdem.cpp (modified) (1 diff)
- trunk/include/vpb/FileUtils (modified) (1 diff)
- trunk/src/vpb/FileUtils.cpp (modified) (2 diffs)
- trunk/src/vpb/TaskManager.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/applications/osgdem/osgdem.cpp
r901 r903 100 100 osg::notify(osg::NOTICE)<<"Error: osgdem running on \""<<vpb::getLocalHostName()<<"\", could not find source file \""<<sourceName<<"\""<<std::endl; 101 101 char str[2048]; 102 if (vpb::get cwd( str, sizeof(str) ))102 if (vpb::getCurrentWorkingDirectory( str, sizeof(str) )) 103 103 { 104 104 osg::notify(osg::NOTICE)<<" current working directory at time of error = "<<str<<std::endl; trunk/include/vpb/FileUtils
r901 r903 71 71 extern VPB_EXPORT int mkdir(const char *path, int mode); 72 72 extern VPB_EXPORT int chdir(const char *path); 73 extern VPB_EXPORT char *get cwd(char *path, int len);73 extern VPB_EXPORT char *getCurrentWorkingDirectory(char *path, int len); 74 74 75 75 extern VPB_EXPORT int mkpath(const char *path, int mode); trunk/src/vpb/FileUtils.cpp
r901 r903 44 44 } 45 45 int vpb::chdir(const char *path) { return ::_chdir(path); } 46 char * vpb::get cwd(char *path, int nbyte){ return ::_getcwd(path, nbyte); }46 char * vpb::getCurrentWorkingDirectory(char *path, int nbyte){ return ::_getcwd(path, nbyte); } 47 47 48 48 #else // WIN32 … … 68 68 int vpb::mkdir(const char *path, int mode) { return ::mkdir(path,mode); } 69 69 int vpb::chdir(const char *path) { return ::chdir(path); } 70 char * vpb::get cwd(char *path, int nbyte){ return ::getcwd(path, nbyte); }70 char * vpb::getCurrentWorkingDirectory(char *path, int nbyte){ return ::getcwd(path, nbyte); } 71 71 72 72 #endif // WIN32 trunk/src/vpb/TaskManager.cpp
r902 r903 38 38 39 39 char str[2048]; 40 _runPath = vpb::get cwd( str, sizeof(str));40 _runPath = vpb::getCurrentWorkingDirectory( str, sizeof(str)); 41 41 42 42 _defaultSignalAction = COMPLETE_RUNNING_TASKS_THEN_EXIT;
