From 68145d0df82d60cc5284a6c94e99b3f5c1ebbebe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 16 Jun 2003 20:37:43 +0000 Subject: [PATCH] Added some new B_* names for existing POSIX error codes - please review. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3547 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/support/Errors.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/headers/os/support/Errors.h b/headers/os/support/Errors.h index bd006305af..c14e496c38 100644 --- a/headers/os/support/Errors.h +++ b/headers/os/support/Errors.h @@ -180,6 +180,7 @@ enum { #define ENOTSOCK (B_POSIX_ERROR_BASE + 44) #define EHOSTDOWN (B_POSIX_ERROR_BASE + 45) +/*---- POSIX errors that can be mapped to BeOS error codes ----*/ #define ENOMEM B_NO_MEMORY #define EACCES B_PERMISSION_DENIED #define EINTR B_INTERRUPTED @@ -206,6 +207,14 @@ enum { #define ENOEXEC B_NOT_AN_EXECUTABLE #define EPIPE B_BUSTED_PIPE +/*---- new error codes that can be mapped to POSIX errors ----*/ +#define B_BUFFER_OVERFLOW EOVERFLOW +#define B_NOT_SUPPORTED EOPNOTSUPP +#define B_TOO_MANY_ARGS E2BIG +#define B_FILE_TOO_LARGE EFBIG +#define B_RESULT_TOO_LARGE ERANGE +#define B_DEVICE_NOT_FOUND ENODEV + /*-------------------------------------------------------------*/ /*----- Media Kit Errors --------------------------------------*/ enum {