From b6b19c88fd47da937b49e99d63f96d51ef41a813 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 3 Aug 2014 13:40:35 +0200 Subject: [PATCH] Use the word invalid instead of illegal. --- kernel/include/sortix/signal.h | 2 +- libc/string/strerror.cpp | 2 +- libc/string/strsignal.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/include/sortix/signal.h b/kernel/include/sortix/signal.h index d1213e76..a0a24fb2 100644 --- a/kernel/include/sortix/signal.h +++ b/kernel/include/sortix/signal.h @@ -32,7 +32,7 @@ __BEGIN_DECLS #define SIGHUP 1 /* Hangup */ #define SIGINT 2 /* Interrupt */ #define SIGQUIT 3 /* Quit */ -#define SIGILL 4 /* Illegal instruction */ +#define SIGILL 4 /* Invalid instruction */ #define SIGTRAP 5 /* Trace/breakpoint trap */ #define SIGABRT 6 /* Aborted */ #define SIGBUS 7 /* Bus Error */ diff --git a/libc/string/strerror.cpp b/libc/string/strerror.cpp index 003a0bfa..22ab619e 100644 --- a/libc/string/strerror.cpp +++ b/libc/string/strerror.cpp @@ -58,7 +58,7 @@ extern "C" const char* sortix_strerror(int errnum) case ENOTEMPTY: return "Directory not empty"; case EBUSY: return "Device or resource busy"; case EPIPE: return "Broken pipe"; - case EILSEQ: return "Illegal byte sequence"; + case EILSEQ: return "Invalid byte sequence"; case ELAKE: return "Sit by a lake"; case EMFILE: return "Too many open files"; case EAGAIN: return "Resource temporarily unavailable"; diff --git a/libc/string/strsignal.cpp b/libc/string/strsignal.cpp index 255c5a6a..56981ab6 100644 --- a/libc/string/strsignal.cpp +++ b/libc/string/strsignal.cpp @@ -33,7 +33,7 @@ extern "C" const char* sortix_strsignal(int signum) case SIGHUP: return "Hangup"; case SIGINT: return "Interrupt"; case SIGQUIT: return "Quit"; - case SIGILL: return "Illegal instruction"; + case SIGILL: return "Invalid instruction"; case SIGTRAP: return "Trace/breakpoint trap"; case SIGABRT: return "Aborted"; case SIGBUS: return "Bus Error";