summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-08-28 13:59:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-08-28 13:59:41 +0000
commit7d352a49b7268d94580b25e77d5028dd452fd2c9 (patch)
tree273381fbe96e9cf1e1b5f999f191b4165a68c617
parentAdded IO_Error status code and fixed No_Memory error number. (diff)
downloadrtems-7d352a49b7268d94580b25e77d5028dd452fd2c9.tar.bz2
Added RTEMS_IO_ERROR status code.
-rw-r--r--c/src/exec/libcsupport/src/libio.c1
-rw-r--r--c/src/exec/rtems/headers/status.h3
-rw-r--r--c/src/exec/rtems/include/rtems/rtems/status.h3
-rw-r--r--c/src/lib/libc/libio.c1
-rw-r--r--cpukit/libcsupport/src/libio.c1
-rw-r--r--cpukit/rtems/include/rtems/rtems/status.h3
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