summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-11-08 20:08:52 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-11-08 20:08:52 +0000
commit331d9e3b91c21b3c592882ac90df0c6210868d8c (patch)
treedf295a5be77f983e1cf0c35263b62eff8739ebaf /cpukit
parentadded ENOSYS support (diff)
downloadrtems-331d9e3b91c21b3c592882ac90df0c6210868d8c.tar.bz2
Added asserts for unhandled conditions which need to result in error
statuses being returned to gnat runtime in order for it to raise use_errors. This was needed to identify the places in gnat's runtime which needed to be addressed.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libcsupport/src/libio.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/libcsupport/src/libio.c b/cpukit/libcsupport/src/libio.c
index 3ffce0f2fc..26448d20a4 100644
--- a/cpukit/libcsupport/src/libio.c
+++ b/cpukit/libcsupport/src/libio.c
@@ -10,6 +10,7 @@
#include <stdio.h> /* O_RDONLY, et.al. */
#include <fcntl.h> /* O_RDONLY, et.al. */
+#include <assert.h>
#if ! defined(O_NDELAY)
# if defined(solaris2)
@@ -252,8 +253,13 @@ __open(
rtems_driver_name_t *np;
rtems_libio_open_close_args_t args;
- if ((rc = rtems_io_lookup_name(pathname, &np)) != RTEMS_SUCCESSFUL)
+ if ((rc = rtems_io_lookup_name(pathname, &np)) != RTEMS_SUCCESSFUL) {
+ if ( rc == RTEMS_UNSATISFIED ) {
+ puts( "open -- ENOSYS case" );
+ assert( 0 );
+ }
goto done;
+ }
iop = rtems_libio_allocate();
if (iop == 0)
@@ -273,6 +279,7 @@ __open(
rc = rtems_io_open(np->major, np->minor, (void *) &args);
done:
+
if (rc != RTEMS_SUCCESSFUL)
{
if (iop)