Fix typo: sterror -> strerror

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16294 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2004-09-11 20:18:08 +00:00
parent f51c8ea9de
commit 714470716f
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);
}
}