From 283f39a765edae9e71012703da470f9c735d767b Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sun, 6 Apr 2025 21:59:57 +0200 Subject: [PATCH] string: add missing ENODEV message in strerror --- include/stdio.h | 2 +- src/string/strerror.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/stdio.h b/include/stdio.h index e489f7c..cdf092c 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -183,7 +183,7 @@ extern FILE *freopen( /* Use __buf as a buffer (of size BUFSIZ) for access to __fp. */ extern void setbuf(FILE * __restrict__ __fp, char * __restrict__ __buf); -/* Changer the buffering mode and buffer address for __fp. */ +/* Change the buffering mode and buffer address for __fp. */ extern int setvbuf(FILE * __restrict__ __fp, char * __restrict__ __buf, int __mode, size_t __size); diff --git a/src/string/strerror.c b/src/string/strerror.c index 1a372dc..ce39942 100644 --- a/src/string/strerror.c +++ b/src/string/strerror.c @@ -23,6 +23,7 @@ static char *errno_strings [] = { [EINTR] = "Interrupted system call", [EAGAIN] = "Resource temporarily unavailable", [EIO] = "Input/output error", + [ENODEV] = "No such device", [ENOMEDIUM] = "No medium found", [EMEDIUMTYPE] = "Wrong medium type", };