Changeset 1332 for branches/0.4-stable/yat/utility/FileUtil.cc
- Timestamp:
- May 31, 2008, 11:36:27 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.4-stable/yat/utility/FileUtil.cc
r1329 r1332 71 71 break; 72 72 case 'd': 73 struct stat nodestat;74 stat (tryme.c_str(),&nodestat);73 struct stat64 nodestat; 74 stat64(tryme.c_str(),&nodestat); 75 75 if (!S_ISDIR(nodestat.st_mode)) 76 76 ok = false; … … 87 87 bool FileUtil::exists(void) const 88 88 { 89 struct stat statt;90 if ( stat (path_.c_str(),&statt) && (errno!=ENOENT) ) {89 struct stat64 statt; 90 if ( stat64(path_.c_str(),&statt) && (errno!=ENOENT) ) { 91 91 std::stringstream ss; 92 ss << "stat (2) call failed with errno: " << errno;92 ss << "stat64(2) call failed with errno: " << errno; 93 93 throw IO_error(ss.str()); 94 94 }
Note: See TracChangeset
for help on using the changeset viewer.