Fix typo: sterror -> strerror

llvm-svn: 16294
This commit is contained in:
Reid Spencer 2004-09-11 20:18:08 +00:00
parent fda2fe9f1e
commit 55a96ee8f5
5 changed files with 5 additions and 5 deletions

View File

@ -45,7 +45,7 @@ void* Memory::AllocateRWX(Memory& M, unsigned NumBytes) {
void Memory::ReleaseRWX(Memory& M) {
if (M.Address == 0 || M.AllocSize == 0) return;
if (0 != munmap(M.Address, M.AllocSize)) {
throw std::string("Can't release RWX Memory: ") + sterror(errno);
throw std::string("Can't release RWX Memory: ") + strerror(errno);
}
}

View File

@ -45,7 +45,7 @@ void* Memory::AllocateRWX(Memory& M, unsigned NumBytes) {
void Memory::ReleaseRWX(Memory& M) {
if (M.Address == 0 || M.AllocSize == 0) return;
if (0 != munmap(M.Address, M.AllocSize)) {
throw std::string("Can't release RWX Memory: ") + sterror(errno);
throw std::string("Can't release RWX Memory: ") + strerror(errno);
}
}

View File

@ -44,7 +44,7 @@ void* Memory::AllocateRWX(Memory& M, unsigned NumBytes) {
void Memory::ReleaseRWX(Memory& M) {
if (M.Address == 0 || M.AllocSize == 0) return;
if (0 != munmap(M.Address, M.AllocSize)) {
throw std::string("Can't release RWX Memory: ") + sterror(errno);
throw std::string("Can't release RWX Memory: ") + strerror(errno);
}
}

View File

@ -44,7 +44,7 @@ void* Memory::AllocateRWX(Memory& M, unsigned NumBytes) {
void Memory::ReleaseRWX(Memory& M) {
if (M.Address == 0 || M.AllocSize == 0) return;
if (0 != munmap(M.Address, M.AllocSize)) {
throw std::string("Can't release RWX Memory: ") + sterror(errno);
throw std::string("Can't release RWX Memory: ") + strerror(errno);
}
}

View File

@ -45,7 +45,7 @@ void* Memory::AllocateRWX(Memory& M, unsigned NumBytes) {
void Memory::ReleaseRWX(Memory& M) {
if (M.Address == 0 || M.AllocSize == 0) return;
if (0 != munmap(M.Address, M.AllocSize)) {
throw std::string("Can't release RWX Memory: ") + sterror(errno);
throw std::string("Can't release RWX Memory: ") + strerror(errno);
}
}