diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-01-04 18:30:58 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2002-01-04 18:30:58 +0000 |
commit | b2709481ece1ccb8aa43b099d3a8e859a4cf68f6 (patch) | |
tree | 4c607208074cec24d060eb22431f9cc5e2165858 /c/src/libfs/src/imfs/linearfile.c | |
parent | 2002-01-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-b2709481ece1ccb8aa43b099d3a8e859a4cf68f6.tar.bz2 |
2002-01-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/imfs/imfs_eval.c: Include <rtems/seterr.h>.
Apply rtems_set_errno_and_return_minus_one.
* src/imfs/memfile.c: Include <rtems/seterr.h>.
Apply rtems_set_errno_and_return_minus_one.
* src/imfs/imfs_readlink.c: Include <rtems/seterr.h>.
Apply rtems_set_errno_and_return_minus_one.
* src/imfs/imfs_unlink.c: Include <rtems/seterr.h>.
Apply rtems_set_errno_and_return_minus_one.
* src/imfs/imfs_link.c: Include <rtems/seterr.h>.
Apply rtems_set_errno_and_return_minus_one.
* src/imfs/imfs_chown.c: Include <rtems/seterr.h>.
Apply rtems_set_errno_and_return_minus_one.
* src/imfs/ioman.c: Include <rtems/seterr.h>.
Apply rtems_set_errno_and_return_minus_one.
* src/imfs/imfs_mount.c: Include <rtems/seterr.h>.
Apply rtems_set_errno_and_return_minus_one.
* src/imfs/imfs_directory.c: Include <rtems/seterr.h>.
Apply rtems_set_errno_and_return_minus_one.
* src/imfs/imfs_stat.c: Include <rtems/seterr.h>.
Apply rtems_set_errno_and_return_minus_one.
* src/imfs/imfs_fchmod.c: Include <rtems/seterr.h>.
Apply rtems_set_errno_and_return_minus_one.
* src/imfs/imfs_symlink.c: Include <rtems/seterr.h>.
Apply rtems_set_errno_and_return_minus_one.
* src/imfs/imfs_mknod.c: Include <rtems/seterr.h>.
Apply rtems_set_errno_and_return_minus_one.
* src/imfs/linearfile.c: Include <rtems/seterr.h>.
Apply rtems_set_errno_and_return_minus_one.
* src/imfs/imfs_unmount.c: Include <rtems/seterr.h>.
Apply rtems_set_errno_and_return_minus_one.
* src/imfs/imfs.h: Apply rtems_set_errno_and_return_minus_one.
Comment out increment_and_check_linkcounts.
Diffstat (limited to 'c/src/libfs/src/imfs/linearfile.c')
-rw-r--r-- | c/src/libfs/src/imfs/linearfile.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/c/src/libfs/src/imfs/linearfile.c b/c/src/libfs/src/imfs/linearfile.c index 7a47c7c5ef..b3df9ba202 100644 --- a/c/src/libfs/src/imfs/linearfile.c +++ b/c/src/libfs/src/imfs/linearfile.c @@ -28,6 +28,7 @@ #include <rtems/libio.h> #include "imfs.h" #include <rtems/libio_.h> +#include <rtems/seterr.h> /* * linearfile_read @@ -55,11 +56,11 @@ int linearfile_read( assert( the_jnode ); if ( !the_jnode ) - set_errno_and_return_minus_one( EIO ); + rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_LINEAR_FILE ); if ( the_jnode->type != IMFS_LINEAR_FILE ) - set_errno_and_return_minus_one( EIO ); + rtems_set_errno_and_return_minus_one( EIO ); /* * Error checks on arguments @@ -68,7 +69,7 @@ int linearfile_read( dest = (unsigned char *)buffer; assert( dest ); if ( !dest ) - set_errno_and_return_minus_one( EINVAL ); + rtems_set_errno_and_return_minus_one( EINVAL ); /* * Perform a simple memory copy. |