diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-10 17:41:32 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-10 17:41:32 +0000 |
commit | 8f0b33466bac9105c1dc94506b4297c84e344a37 (patch) | |
tree | bf3f129cbc4ecd2e97cd4643826223eec294b844 /cpukit/libfs/src/pipe | |
parent | 2010-08-10 Bharath Suri <bharath.s.jois@gmail.com> (diff) | |
download | rtems-8f0b33466bac9105c1dc94506b4297c84e344a37.tar.bz2 |
2010-08-09 Bharath Suri <bharath.s.jois@gmail.com>
PR 1660/filesystem
* libfs/src/pipe/fifo.c, libfs/src/pipe/pipe.h: Changed
int pipe_release to void pipe_release.
* libfs/src/imfs/imfs_fifo.c: Corresponding change to
IMFS_fifo_close since pipe_release does not return any error.
* libfs/src/imfs/imfs_initsupp.c: Changes to improve
IMFS_determine_bytes_per_block
Diffstat (limited to 'cpukit/libfs/src/pipe')
-rw-r--r-- | cpukit/libfs/src/pipe/fifo.c | 9 | ||||
-rw-r--r-- | cpukit/libfs/src/pipe/pipe.h | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/cpukit/libfs/src/pipe/fifo.c b/cpukit/libfs/src/pipe/fifo.c index a19ef617a3..9579954611 100644 --- a/cpukit/libfs/src/pipe/fifo.c +++ b/cpukit/libfs/src/pipe/fifo.c @@ -241,7 +241,7 @@ out: * *pipep points to pipe control structure. When the last user releases pipe, * it will be set to NULL. */ -int pipe_release( +void pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) @@ -286,17 +286,16 @@ int pipe_release( #if 0 if (! delfile) - return 0; + return; if (iop->pathinfo.ops->unlink_h == NULL) - return 0; + return; /* This is safe for IMFS, but how about other FSes? */ iop->flags &= ~LIBIO_FLAGS_OPEN; if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) - return -errno; + return; #endif - return 0; } /* diff --git a/cpukit/libfs/src/pipe/pipe.h b/cpukit/libfs/src/pipe/pipe.h index 1c07e1a458..354cc9d130 100644 --- a/cpukit/libfs/src/pipe/pipe.h +++ b/cpukit/libfs/src/pipe/pipe.h @@ -52,7 +52,7 @@ extern int pipe_create( * *pipep points to pipe control structure. When the last user releases pipe, * it will be set to NULL. */ -extern int pipe_release( +extern void pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ); |