summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/errlst.c2
-rw-r--r--lib/libc/stdlib/malloc.c6
-rw-r--r--lib/libc/sys/intro.22
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/gen/errlst.c b/lib/libc/gen/errlst.c
index 493a778..374f316 100644
--- a/lib/libc/gen/errlst.c
+++ b/lib/libc/gen/errlst.c
@@ -148,7 +148,7 @@ const char *const sys_errlist[] = {
"Attribute not found", /* 87 - ENOATTR */
/* General */
- "Programming error", /* 88 - EDOFUS */
+ "Programming error", /* 88 - EDOOFUS */
};
int errno;
const int sys_nerr = sizeof(sys_errlist) / sizeof(sys_errlist[0]);
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c
index d97e872..fdcc751 100644
--- a/lib/libc/stdlib/malloc.c
+++ b/lib/libc/stdlib/malloc.c
@@ -1093,7 +1093,7 @@ malloc(size_t size)
wrtwarning("recursive call\n");
malloc_active--;
THREAD_UNLOCK();
- errno = EDOFUS;
+ errno = EDOOFUS;
return (0);
}
if (!malloc_started)
@@ -1123,7 +1123,7 @@ free(void *ptr)
wrtwarning("recursive call\n");
malloc_active--;
THREAD_UNLOCK();
- errno = EDOFUS;
+ errno = EDOOFUS;
return;
}
if (ptr != ZEROSIZEPTR)
@@ -1146,7 +1146,7 @@ realloc(void *ptr, size_t size)
wrtwarning("recursive call\n");
malloc_active--;
THREAD_UNLOCK();
- errno = EDOFUS;
+ errno = EDOOFUS;
return (0);
}
if (ptr && !malloc_started) {
diff --git a/lib/libc/sys/intro.2 b/lib/libc/sys/intro.2
index ea9d734..c461242 100644
--- a/lib/libc/sys/intro.2
+++ b/lib/libc/sys/intro.2
@@ -453,7 +453,7 @@ invalid or an incomplete sequence of bytes or the given wide
character is invalid.
.It Er 87 ENOATTR Em "Attribute not found" .
The specified extended attribute does not exist.
-.It Er 88 EDOFUS Em "Programming error" .
+.It Er 88 EDOOFUS Em "Programming error" .
A function or API is being abused in a way which could only be detected
at run-time.
OpenPOWER on IntegriCloud