mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-13 08:54:59 +00:00
Fix typo: sterror -> strerror
llvm-svn: 16294
This commit is contained in:
parent
8496e508e2
commit
ab5442eccc
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user