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/exec/libfs/src/imfs/imfs_directory.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/exec/libfs/src/imfs/imfs_directory.c')
-rw-r--r-- | c/src/exec/libfs/src/imfs/imfs_directory.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/c/src/exec/libfs/src/imfs/imfs_directory.c b/c/src/exec/libfs/src/imfs/imfs_directory.c index 9df4543909..dec1e0ec2d 100644 --- a/c/src/exec/libfs/src/imfs/imfs_directory.c +++ b/c/src/exec/libfs/src/imfs/imfs_directory.c @@ -28,6 +28,7 @@ #include "imfs.h" #include <rtems/libio_.h> +#include <rtems/seterr.h> /* * imfs_dir_open @@ -197,7 +198,7 @@ int imfs_dir_lseek( case SEEK_END: /* Movement past the end of the directory via lseek */ /* is not a permitted operation */ default: - set_errno_and_return_minus_one( EINVAL ); + rtems_set_errno_and_return_minus_one( EINVAL ); break; } @@ -293,21 +294,21 @@ int imfs_dir_rmnod( */ if ( ! Chain_Is_empty( &the_jnode->info.directory.Entries ) ) - set_errno_and_return_minus_one( ENOTEMPTY ); + rtems_set_errno_and_return_minus_one( ENOTEMPTY ); /* * You cannot remove the file system root node. */ if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access ) - set_errno_and_return_minus_one( EBUSY ); + rtems_set_errno_and_return_minus_one( EBUSY ); /* * You cannot remove a mountpoint. */ if ( the_jnode->info.directory.mt_fs != NULL ) - set_errno_and_return_minus_one( EBUSY ); + rtems_set_errno_and_return_minus_one( EBUSY ); /* * Take the node out of the parent's chain that contains this node |