From a406236dc2b1ed616ef35436e0671aaa2ae373b3 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 3 Jul 2005 16:50:29 +0000 Subject: [PATCH] New error codes: - B_SHUTDOWN_CANCELLED: The shutdown process was cancelled (most likely by the user). - B_SHUTTING_DOWN: An operation cannot be performed, since the system is shutting down (e.g. BApplication creation). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13413 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/support/Errors.h | 4 +++- src/system/libroot/posix/string/strerror.c | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/headers/os/support/Errors.h b/headers/os/support/Errors.h index c2d88a006d..557d0a128e 100644 --- a/headers/os/support/Errors.h +++ b/headers/os/support/Errors.h @@ -106,7 +106,9 @@ enum B_LAUNCH_FAILED_NO_PREFERRED_APP, B_LAUNCH_FAILED_FILES_APP_NOT_FOUND, B_BAD_MIME_SNIFFER_RULE, - B_NOT_A_MESSAGE + B_NOT_A_MESSAGE, + B_SHUTDOWN_CANCELLED, + B_SHUTTING_DOWN }; diff --git a/src/system/libroot/posix/string/strerror.c b/src/system/libroot/posix/string/strerror.c index b5f18a145f..d26cd9ef3d 100644 --- a/src/system/libroot/posix/string/strerror.c +++ b/src/system/libroot/posix/string/strerror.c @@ -168,6 +168,10 @@ error_description(int error) return "Bad sniffer rule"; case B_NOT_A_MESSAGE: return "Data is not a message"; + case B_SHUTDOWN_CANCELLED: + return "System shutdown cancelled"; + case B_SHUTTING_DOWN: + return "System shutting down"; // Storage Kit Errors