aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-09-11 20:18:08 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-09-11 20:18:08 +0000
commit714470716fb38f43a2b2186fb4044f83cebe6be9 (patch)
tree707b1603c1d4051679d5a44636ae6b8eec05c382 /lib/System
parentf51c8ea9de12ee498f41bd58038a6bb907e5f54b (diff)
downloadexternal_llvm-714470716fb38f43a2b2186fb4044f83cebe6be9.zip
external_llvm-714470716fb38f43a2b2186fb4044f83cebe6be9.tar.gz
external_llvm-714470716fb38f43a2b2186fb4044f83cebe6be9.tar.bz2
Fix typo: sterror -> strerror
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16294 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-rw-r--r--lib/System/AIX/Memory.cpp2
-rw-r--r--lib/System/Cygwin/Memory.cpp2
-rw-r--r--lib/System/FreeBSD/Memory.cpp2
-rw-r--r--lib/System/Interix/Memory.cpp2
-rw-r--r--lib/System/SunOS/Memory.cpp2
5 files changed, 5 insertions, 5 deletions
diff --git a/lib/System/AIX/Memory.cpp b/lib/System/AIX/Memory.cpp
index b4e9a9f..6ba57de 100644
--- a/lib/System/AIX/Memory.cpp
+++ b/lib/System/AIX/Memory.cpp
@@ -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);
}
}
diff --git a/lib/System/Cygwin/Memory.cpp b/lib/System/Cygwin/Memory.cpp
index 4c0123b..58e660c 100644
--- a/lib/System/Cygwin/Memory.cpp
+++ b/lib/System/Cygwin/Memory.cpp
@@ -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);
}
}
diff --git a/lib/System/FreeBSD/Memory.cpp b/lib/System/FreeBSD/Memory.cpp
index 16fa849..eeb22e9 100644
--- a/lib/System/FreeBSD/Memory.cpp
+++ b/lib/System/FreeBSD/Memory.cpp
@@ -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);
}
}
diff --git a/lib/System/Interix/Memory.cpp b/lib/System/Interix/Memory.cpp
index b0791ef..b79f8b6 100644
--- a/lib/System/Interix/Memory.cpp
+++ b/lib/System/Interix/Memory.cpp
@@ -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);
}
}
diff --git a/lib/System/SunOS/Memory.cpp b/lib/System/SunOS/Memory.cpp
index dd15f13..d6d871a 100644
--- a/lib/System/SunOS/Memory.cpp
+++ b/lib/System/SunOS/Memory.cpp
@@ -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);
}
}