Changeset 901
- Timestamp:
- 03/19/08 18:52:53
- Files:
-
- trunk/applications/osgdem/osgdem.cpp (modified) (2 diffs)
- trunk/applications/vpbmaster/vpbmaster.cpp (modified) (1 diff)
- trunk/include/vpb/FileUtils (modified) (1 diff)
- trunk/src/vpb/FileUtils.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/applications/osgdem/osgdem.cpp
r887 r901 56 56 if (arguments.read("--run-path",runPath)) 57 57 { 58 chdir(runPath.c_str());58 vpb::chdir(runPath.c_str()); 59 59 } 60 60 … … 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 ( getcwd( str, sizeof(str) ))102 if (vpb::getcwd( str, sizeof(str) )) 103 103 { 104 104 osg::notify(osg::NOTICE)<<" current working directory at time of error = "<<str<<std::endl; trunk/applications/vpbmaster/vpbmaster.cpp
r887 r901 53 53 if (arguments.read("--run-path",runPath)) 54 54 { 55 chdir(runPath.c_str());55 vpb::chdir(runPath.c_str()); 56 56 } 57 57 trunk/include/vpb/FileUtils
r865 r901 70 70 extern VPB_EXPORT int getdtablesize(); 71 71 extern VPB_EXPORT int mkdir(const char *path, int mode); 72 extern VPB_EXPORT int chdir(const char *path); 73 extern VPB_EXPORT char *getcwd(char *path, int len); 72 74 73 75 extern VPB_EXPORT int mkpath(const char *path, int mode); trunk/src/vpb/FileUtils.cpp
r885 r901 43 43 return status; 44 44 } 45 int vpb::chdir(const char *path) { return ::_chdir(path); } 46 char * vpb::getcwd(char *path, int nbyte) { return ::_getcwd(path, nbyte); } 45 47 46 48 #else // WIN32 … … 65 67 int vpb::getdtablesize() { return ::getdtablesize(); } 66 68 int vpb::mkdir(const char *path, int mode) { return ::mkdir(path,mode); } 69 int vpb::chdir(const char *path) { return ::chdir(path); } 70 char * vpb::getcwd(char *path, int nbyte) { return ::getcwd(path, nbyte); } 67 71 68 72 #endif // WIN32
