From 7d352a49b7268d94580b25e77d5028dd452fd2c9 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 28 Aug 1997 13:59:41 +0000 Subject: Added RTEMS_IO_ERROR status code. --- c/src/exec/libcsupport/src/libio.c | 1 + c/src/exec/rtems/headers/status.h | 3 ++- c/src/exec/rtems/include/rtems/rtems/status.h | 3 ++- c/src/lib/libc/libio.c | 1 + cpukit/libcsupport/src/libio.c | 1 + cpukit/rtems/include/rtems/rtems/status.h | 3 ++- 6 files changed, 9 insertions(+), 3 deletions(-) diff --git a/c/src/exec/libcsupport/src/libio.c b/c/src/exec/libcsupport/src/libio.c index 8ba65ee6b2..cd66b3d1d4 100644 --- a/c/src/exec/libcsupport/src/libio.c +++ b/c/src/exec/libcsupport/src/libio.c @@ -160,6 +160,7 @@ rtems_assoc_t errno_assoc[] = { { "NO DEVICE", RTEMS_UNSATISFIED, ENOSYS }, { "INVALID NUMBER", RTEMS_INVALID_NUMBER, EBADF}, { "NOT RESOURCE OWNER", RTEMS_NOT_OWNER_OF_RESOURCE, EPERM}, + { "IO ERROR", RTEMS_IO_ERROR, EIO}, { 0, 0, 0 }, }; diff --git a/c/src/exec/rtems/headers/status.h b/c/src/exec/rtems/headers/status.h index cff32c0f83..b0895bda8d 100644 --- a/c/src/exec/rtems/headers/status.h +++ b/c/src/exec/rtems/headers/status.h @@ -53,7 +53,8 @@ typedef enum { RTEMS_NOT_IMPLEMENTED = 24, /* directive not implemented */ RTEMS_INTERNAL_ERROR = 25, /* RTEMS inconsistency detected */ RTEMS_NO_MEMORY = 26, /* could not get enough memory */ - RTEMS_PROXY_BLOCKING = 27 /* internal error only */ + RTEMS_IO_ERROR = 27, /* driver IO error */ + RTEMS_PROXY_BLOCKING = 28 /* internal error only */ } rtems_status_code; #define RTEMS_STATUS_CODES_FIRST RTEMS_SUCCESSFUL diff --git a/c/src/exec/rtems/include/rtems/rtems/status.h b/c/src/exec/rtems/include/rtems/rtems/status.h index cff32c0f83..b0895bda8d 100644 --- a/c/src/exec/rtems/include/rtems/rtems/status.h +++ b/c/src/exec/rtems/include/rtems/rtems/status.h @@ -53,7 +53,8 @@ typedef enum { RTEMS_NOT_IMPLEMENTED = 24, /* directive not implemented */ RTEMS_INTERNAL_ERROR = 25, /* RTEMS inconsistency detected */ RTEMS_NO_MEMORY = 26, /* could not get enough memory */ - RTEMS_PROXY_BLOCKING = 27 /* internal error only */ + RTEMS_IO_ERROR = 27, /* driver IO error */ + RTEMS_PROXY_BLOCKING = 28 /* internal error only */ } rtems_status_code; #define RTEMS_STATUS_CODES_FIRST RTEMS_SUCCESSFUL diff --git a/c/src/lib/libc/libio.c b/c/src/lib/libc/libio.c index 8ba65ee6b2..cd66b3d1d4 100644 --- a/c/src/lib/libc/libio.c +++ b/c/src/lib/libc/libio.c @@ -160,6 +160,7 @@ rtems_assoc_t errno_assoc[] = { { "NO DEVICE", RTEMS_UNSATISFIED, ENOSYS }, { "INVALID NUMBER", RTEMS_INVALID_NUMBER, EBADF}, { "NOT RESOURCE OWNER", RTEMS_NOT_OWNER_OF_RESOURCE, EPERM}, + { "IO ERROR", RTEMS_IO_ERROR, EIO}, { 0, 0, 0 }, }; diff --git a/cpukit/libcsupport/src/libio.c b/cpukit/libcsupport/src/libio.c index 8ba65ee6b2..cd66b3d1d4 100644 --- a/cpukit/libcsupport/src/libio.c +++ b/cpukit/libcsupport/src/libio.c @@ -160,6 +160,7 @@ rtems_assoc_t errno_assoc[] = { { "NO DEVICE", RTEMS_UNSATISFIED, ENOSYS }, { "INVALID NUMBER", RTEMS_INVALID_NUMBER, EBADF}, { "NOT RESOURCE OWNER", RTEMS_NOT_OWNER_OF_RESOURCE, EPERM}, + { "IO ERROR", RTEMS_IO_ERROR, EIO}, { 0, 0, 0 }, }; diff --git a/cpukit/rtems/include/rtems/rtems/status.h b/cpukit/rtems/include/rtems/rtems/status.h index cff32c0f83..b0895bda8d 100644 --- a/cpukit/rtems/include/rtems/rtems/status.h +++ b/cpukit/rtems/include/rtems/rtems/status.h @@ -53,7 +53,8 @@ typedef enum { RTEMS_NOT_IMPLEMENTED = 24, /* directive not implemented */ RTEMS_INTERNAL_ERROR = 25, /* RTEMS inconsistency detected */ RTEMS_NO_MEMORY = 26, /* could not get enough memory */ - RTEMS_PROXY_BLOCKING = 27 /* internal error only */ + RTEMS_IO_ERROR = 27, /* driver IO error */ + RTEMS_PROXY_BLOCKING = 28 /* internal error only */ } rtems_status_code; #define RTEMS_STATUS_CODES_FIRST RTEMS_SUCCESSFUL -- cgit v1.2.3